An MCP (Model Context Protocol) server that integrates GlitchTip error monitoring with AI assistants like Claude. This allows AI to analyze and help resolve errors from your GlitchTip instance.
This MCP server enables AI assistants to:
- Fetch and analyze current issues from your GlitchTip instance
- Get detailed error context including stack traces, user data, and breadcrumbs
- Help debug and suggest solutions based on error patterns
User: "Check GlitchTip for any payment-related errors"
AI Assistant:
- Fetches all unresolved issues from GlitchTip
- Identifies payment component errors
- Analyzes stack traces and error patterns
- Suggests specific fixes based on the error context
You'll need:
- Authentication: Either an API token (recommended) or Session ID Cookie
- Organization Slug: Your organization identifier in GlitchTip
- Base URL (optional): Your GlitchTip instance URL if self-hosted
Option 1: API Token (Recommended)
- Log in to your GlitchTip instance
- Go to /profile/auth-tokens
- Create a new API token with appropriate permissions
- Copy the token for use as GLITCHTIP_TOKEN
Option 2: Session ID
- Log in to your GlitchTip instance
- Open browser developer tools (F12)
- Go to Application/Storage > Cookies
- Find the sessionidcookie value
- Copy this value for use as GLITCHTIP_SESSION_ID
Create a .mcp.json file in your project root:
{
  "mcpServers": {
    "glitchtip": {
      "command": "npx",
      "args": ["-y", "mcp-glitchtip"],
      "env": {
        "GLITCHTIP_TOKEN": "your-api-token-here",
        "GLITCHTIP_ORGANIZATION": "your-org-slug",
        "GLITCHTIP_BASE_URL": "https://app.glitchtip.com"
      }
    }
  }
}Note: Add .mcp.json to your .gitignore to keep credentials secure:
echo ".mcp.json" >> .gitignoreWhen you open your project folder in Claude Desktop, it will automatically detect the .mcp.json configuration and connect to your GlitchTip instance.
| Environment Variable | Required | Description | Default | 
|---|---|---|---|
| GLITCHTIP_TOKEN | Yes* | Your GlitchTip API token (recommended) | - | 
| GLITCHTIP_SESSION_ID | Yes* | Your GlitchTip session cookie | - | 
| GLITCHTIP_ORGANIZATION | Yes | Organization slug from GlitchTip URL | - | 
| GLITCHTIP_BASE_URL | No | GlitchTip instance URL | https://app.glitchtip.com | 
*Either GLITCHTIP_TOKEN or GLITCHTIP_SESSION_ID is required. If both are provided, GLITCHTIP_TOKEN takes priority.
If you're using a self-hosted GlitchTip instance, update the GLITCHTIP_BASE_URL:
"GLITCHTIP_BASE_URL": "https://glitchtip.your-domain.com"Fetches all issues from GlitchTip (unresolved by default).
Usage: "Show me all GlitchTip errors"
Gets the most recent event for a specific issue with full error context.
Parameters:
- issueId: The issue ID to get details for
Usage: "Get details for GlitchTip issue #123"
A resource endpoint that provides all current issues in JSON format.
User: "Check GlitchTip for recent 500 errors"
AI: [Fetches issues] 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: [Gets latest event] The TimeoutError occurs when...
[Provides stack trace analysis and suggested fixes]
User: "What are the most frequent errors in GlitchTip?"
AI: [Analyzes issue counts] The top errors by frequency are:
1. CORS policy errors (145 occurrences)
2. Missing authentication token (89 occurrences)
3. Rate limit exceeded (67 occurrences)
git clone https://github.com/coffebar/mcp-glitchtip.git
cd mcp-glitchtip
npm install
npm run buildnpm run watch  # Auto-rebuild on changesnpm run inspectorSet the required environment variables before running the inspector:
export GLITCHTIP_TOKEN="your-api-token"
# OR export GLITCHTIP_SESSION_ID="your-session-id"
export GLITCHTIP_ORGANIZATION="your-org"
npm run inspectorIf you see "Authentication failed. Check your token or session ID":
- If using a token: Verify it's valid and has appropriate permissions
- If using a session ID: Your session may have expired - get a new session ID from GlitchTip
- Verify you're using the correct organization slug
- Check if your GlitchTip instance requires additional authentication headers
If you see "Failed to connect to GlitchTip":
- Verify your GLITCHTIP_BASE_URLis correct
- Check if you're behind a proxy or firewall
- Ensure your GlitchTip instance is accessible from your network
If the tool returns empty results:
- Verify there are actually issues in your GlitchTip project
- Check if your organization slug is correct
- Ensure your session has permission to view the issues
- Never commit .mcp.jsonto version control - it contains sensitive credentials
- For team usage, each developer should use their own API token or session ID
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
MIT License - see LICENSE file for details.
- Issues: GitHub Issues
- Documentation: GitHub README
- GlitchTip Docs: GlitchTip Documentation