MCP server for GlitchTip error monitoring integration
npm install glitchtip-mcpMCP server for integrating GlitchTip error monitoring with AI assistants like Claude.
Install in Cursor
1. Cursor IDE installed
2. GlitchTip API token or session ID
3. Your GlitchTip organization slug

Click the button above and follow the installation flow, or manually configure:
1. Open your MCP configuration file:
- Global (all projects): ~/.cursor/mcp.json
- Project-specific: .cursor/mcp.json in project root
2. Add the following configuration:
``json`
{
"mcpServers": {
"glitchtip": {
"command": "npx",
"args": ["-y", "glitchtip-mcp"],
"env": {
"GLITCHTIP_TOKEN": "your-api-token",
"GLITCHTIP_ORGANIZATION": "your-org-slug",
"GLITCHTIP_BASE_URL": "https://app.glitchtip.com"
}
}
}
}
3. Replace the environment variables with your actual values
4. Save the file and restart Cursor
For better security, store credentials in a .env file:
1. Create .env in your project root:
`bash`
GLITCHTIP_TOKEN=your-api-token
GLITCHTIP_ORGANIZATION=your-org-slug
GLITCHTIP_BASE_URL=https://app.glitchtip.com
2. Update .cursor/mcp.json:
`json`
{
"mcpServers": {
"glitchtip": {
"command": "npx",
"args": ["-y", "glitchtip-mcp"]
}
}
}
3. Add .env to .gitignore:
`bash`
echo ".env" >> .gitignore
1. Restart Cursor completely
2. Check for green dot in Settings ā Tools & Integrations ā MCP Tools
3. In chat/composer, check "Available Tools"
4. Test with: "Show me GlitchTip errors"
Install in Claude Desktop
1. Claude Desktop installed
2. GlitchTip API token or session ID
3. Your GlitchTip organization slug
1. Open your Claude Desktop configuration file:
- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json
- Windows: ~/.config/Claude/claude_desktop_config.json
- Linux:
2. Add the following configuration:
`json`
{
"mcpServers": {
"glitchtip": {
"command": "npx",
"args": ["-y", "glitchtip-mcp"],
"env": {
"GLITCHTIP_TOKEN": "your-api-token",
"GLITCHTIP_ORGANIZATION": "your-org-slug",
"GLITCHTIP_BASE_URL": "https://app.glitchtip.com"
}
}
}
}
3. Replace the environment variables with your actual values
4. Save the file and restart Claude Desktop
For better security, store credentials in a .env file:
1. Create .env in your project root:
`bash`
GLITCHTIP_TOKEN=your-api-token
GLITCHTIP_ORGANIZATION=your-org-slug
GLITCHTIP_BASE_URL=https://app.glitchtip.com
2. Update claude_desktop_config.json:
`json`
{
"mcpServers": {
"glitchtip": {
"command": "npx",
"args": ["-y", "glitchtip-mcp"]
}
}
}
3. Add .env to .gitignore:
`bash`
echo ".env" >> .gitignore
1. Restart Claude Desktop completely
2. Look for the š icon in the bottom right
3. Click it to see available MCP servers
4. Test with: "Show me GlitchTip errors"
Install in Claude Code CLI
1. Claude Code CLI installed
2. GlitchTip API token or session ID
3. Your GlitchTip organization slug
Run the following command in your terminal:
`bash`
claude mcp add glitchtip -e GLITCHTIP_TOKEN=your-api-token -e GLITCHTIP_ORGANIZATION=your-org-slug -e GLITCHTIP_BASE_URL=https://app.glitchtip.com -- npx -y glitchtip-mcp
For better security, store credentials in a .env file:
1. Create .env in your project root:
`bash`
GLITCHTIP_TOKEN=your-api-token
GLITCHTIP_ORGANIZATION=your-org-slug
GLITCHTIP_BASE_URL=https://app.glitchtip.com
2. Add the MCP server:
`bash`
claude mcp add glitchtip -e GLITCHTIP_TOKEN=$(grep GLITCHTIP_TOKEN .env | cut -d '=' -f2) -e GLITCHTIP_ORGANIZATION=$(grep GLITCHTIP_ORGANIZATION .env | cut -d '=' -f2) -e GLITCHTIP_BASE_URL=$(grep GLITCHTIP_BASE_URL .env | cut -d '=' -f2) -- npx -y glitchtip-mcp
3. Add .env to .gitignore:
`bash`
echo ".env" >> .gitignore
- -s user: Available across all projects-s project
- : Shared via .mcp.json file (committed to repo)local
- Default: (current project only)
`bash`
claude mcp list
claude mcp get glitchtip
Test with: "Show me GlitchTip errors"
Install in Cline (VS Code Extension)
1. VS Code installed
2. Cline extension installed
3. GlitchTip API token or session ID
4. Your GlitchTip organization slug
1. Open VS Code
2. Click the MCP Servers icon (š) in the Cline extension
3. Click the "Installed" tab
4. Click "Configure MCP Servers"
5. Add the following to cline_mcp_settings.json:
`json`
{
"mcpServers": {
"glitchtip": {
"command": "npx",
"args": ["-y", "glitchtip-mcp"],
"env": {
"GLITCHTIP_TOKEN": "your-api-token",
"GLITCHTIP_ORGANIZATION": "your-org-slug",
"GLITCHTIP_BASE_URL": "https://app.glitchtip.com"
}
}
}
}
6. Replace the environment variables with your actual values
7. Save the file
8. Restart VS Code or reload the Cline extension
For better security, store credentials in a .env file:
1. Create .env in your project root:
`bash`
GLITCHTIP_TOKEN=your-api-token
GLITCHTIP_ORGANIZATION=your-org-slug
GLITCHTIP_BASE_URL=https://app.glitchtip.com
2. Update cline_mcp_settings.json:
`json`
{
"mcpServers": {
"glitchtip": {
"command": "npx",
"args": ["-y", "glitchtip-mcp"]
}
}
}
3. Add .env to .gitignore:
`bash`
echo ".env" >> .gitignore
1. Restart VS Code or reload Cline
2. Check the MCP Servers panel in Cline
3. Look for "glitchtip" in the list of connected servers
4. Test with: "Show me GlitchTip errors"
API Token (Recommended)
1. Log in to GlitchTip
2. Go to https://app.glitchtip.com/profile/auth-tokens
3. Create a new API token
4. Copy the token
Session ID (Alternative)
1. Log in to GlitchTip
2. Open browser DevTools (F12)
3. Go to Application/Storage ā Cookies
4. Copy the sessionid cookie value
| Variable | Required | Description | Default |
|----------|----------|-------------|---------|
| GLITCHTIP_TOKEN | Yes* | API token | - |GLITCHTIP_SESSION_ID
| | Yes* | Session cookie | - |GLITCHTIP_ORGANIZATION
| | Yes | Organization slug | - |GLITCHTIP_BASE_URL
| | No | Instance URL | https://app.glitchtip.com |
*Either GLITCHTIP_TOKEN or GLITCHTIP_SESSION_ID is required
Fetches issues from GlitchTip.
Parameters:
- status (optional): 'resolved', 'unresolved', or 'all' (default: 'unresolved')
Examples:
- "Show me all GlitchTip errors"
- "Get resolved issues"
- "Show all issues including resolved"
Gets the latest event for a specific issue with full context.
Parameters:
- issueId: The issue ID
Example: "Get details for issue #123"
Resource endpoint providing all current issues in JSON format.
Get overview of recent production errors with analysis and prioritization.
Use case: Quick triage of production issues
Example: "Use the recent_errors prompt"
Deep-dive into a specific error with full context and suggested fixes.
Parameters:
- issueId: The issue ID to debug
Use case: Detailed investigation of a specific error
Example: "Use the debug_issue prompt for issue 12345"
`
User: "Check GlitchTip for recent 500 errors"
AI: I found 3 recent 500 errors:
1. DatabaseConnectionError in /api/users
2. TimeoutError in payment processing
3. ValidationError in checkout flow
User: "Show me details about the payment timeout"
AI: [Analyzes event] The TimeoutError occurs when...
[Provides stack trace and suggested fixes]
`
`
User: "What are the most frequent errors?"
AI: Top errors by frequency:
1. CORS policy errors (145 occurrences)
2. Missing auth token (89 occurrences)
3. Rate limit exceeded (67 occurrences)
`
`
User: "Use the recent_errors prompt"
AI: [Analyzes all unresolved issues]
Summary:
- 23 unresolved errors across 5 projects
- Critical: DatabaseConnectionError (89 occurrences)
- High: TimeoutError in payment flow (45 occurrences)
- Medium: ValidationErrors (12 occurrences)
Recommended prioritization:
1. Fix database connection pooling
2. Investigate payment timeout root cause
3. Add validation for edge cases
User: "Use the debug_issue prompt for issue 12345"
AI: [Deep-dives into specific error with stack trace and fix suggestions]
`
- Verify your token/session ID is valid
- Check organization slug is correct
- Ensure token has appropriate permissions
- Verify GLITCHTIP_BASE_URL is correct
- Check network connectivity
- Ensure GlitchTip instance is accessible
- Verify issues exist in GlitchTip
- Check organization slug
- Ensure you have permission to view issues
- Never commit .mcp.json, .cursor/mcp.json, or .env to version control.env
- Use files for storing secrets (automatically ignored by git if added to .gitignore)
- Use API tokens instead of session IDs for team usage
- Each developer should use their own credentials
---
`bash`
npm install
`bash`
npm run build
`bash`
npm run watch
`bash`
export GLITCHTIP_TOKEN="your-token"
export GLITCHTIP_ORGANIZATION="your-org"
npm run inspector
```
glitchtip-mcp/
āāā src/
ā āāā types.ts # TypeScript type definitions
ā āāā client.ts # GlitchTip API client
ā āāā index.ts # MCP server implementation
āāā package.json
āāā tsconfig.json
āāā README.md
MIT
---
Based on mcp-glitchtip