GlitchTip MCP Server
Integrates GlitchTip error monitoring with AI assistants to fetch, analyze, and debug production errors. It enables users to list issues, retrieve event details, and perform guided triage of application errors through natural language.
README
GlitchTip MCP Server
MCP server for integrating GlitchTip error monitoring with AI assistants like Claude.
Installation
<details> <summary><b>Install in Cursor</b></summary>
Prerequisites
- Cursor IDE installed
- GlitchTip API token or session ID
- Your GlitchTip organization slug
Quick Install
Click the button above and follow the installation flow, or manually configure:
Manual Configuration
-
Open your MCP configuration file:
- Global (all projects):
~/.cursor/mcp.json - Project-specific:
.cursor/mcp.jsonin project root
- Global (all projects):
-
Add the following configuration:
{
"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"
}
}
}
}
- Replace the environment variables with your actual values
- Save the file and restart Cursor
Using .env File (Recommended)
For better security, store credentials in a .env file:
- Create
.envin your project root:
GLITCHTIP_TOKEN=your-api-token
GLITCHTIP_ORGANIZATION=your-org-slug
GLITCHTIP_BASE_URL=https://app.glitchtip.com
- Update
.cursor/mcp.json:
{
"mcpServers": {
"glitchtip": {
"command": "npx",
"args": ["-y", "glitchtip-mcp"]
}
}
}
- Add
.envto.gitignore:
echo ".env" >> .gitignore
Verify Installation
- Restart Cursor completely
- Check for green dot in Settings → Tools & Integrations → MCP Tools
- In chat/composer, check "Available Tools"
- Test with: "Show me GlitchTip errors"
</details>
<details> <summary><b>Install in Claude Desktop</b></summary>
Prerequisites
- Claude Desktop installed
- GlitchTip API token or session ID
- Your GlitchTip organization slug
Configuration
-
Open your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Add the following configuration:
{
"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"
}
}
}
}
- Replace the environment variables with your actual values
- Save the file and restart Claude Desktop
Using .env File (Recommended)
For better security, store credentials in a .env file:
- Create
.envin your project root:
GLITCHTIP_TOKEN=your-api-token
GLITCHTIP_ORGANIZATION=your-org-slug
GLITCHTIP_BASE_URL=https://app.glitchtip.com
- Update
claude_desktop_config.json:
{
"mcpServers": {
"glitchtip": {
"command": "npx",
"args": ["-y", "glitchtip-mcp"]
}
}
}
- Add
.envto.gitignore:
echo ".env" >> .gitignore
Verify Installation
- Restart Claude Desktop completely
- Look for the 🔌 icon in the bottom right
- Click it to see available MCP servers
- Test with: "Show me GlitchTip errors"
</details>
<details> <summary><b>Install in Claude Code CLI</b></summary>
Prerequisites
- Claude Code CLI installed
- GlitchTip API token or session ID
- Your GlitchTip organization slug
Installation
Run the following command in your terminal:
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
Using Environment Variables (Recommended)
For better security, store credentials in a .env file:
- Create
.envin your project root:
GLITCHTIP_TOKEN=your-api-token
GLITCHTIP_ORGANIZATION=your-org-slug
GLITCHTIP_BASE_URL=https://app.glitchtip.com
- Add the MCP server:
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
- Add
.envto.gitignore:
echo ".env" >> .gitignore
Configuration Scopes
-s user: Available across all projects-s project: Shared via.mcp.jsonfile (committed to repo)- Default:
local(current project only)
Verify Installation
claude mcp list
claude mcp get glitchtip
Test with: "Show me GlitchTip errors"
</details>
<details> <summary><b>Install in Cline (VS Code Extension)</b></summary>
Prerequisites
- VS Code installed
- Cline extension installed
- GlitchTip API token or session ID
- Your GlitchTip organization slug
Configuration
- Open VS Code
- Click the MCP Servers icon (📚) in the Cline extension
- Click the "Installed" tab
- Click "Configure MCP Servers"
- Add the following to
cline_mcp_settings.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"
}
}
}
}
- Replace the environment variables with your actual values
- Save the file
- Restart VS Code or reload the Cline extension
Using .env File (Recommended)
For better security, store credentials in a .env file:
- Create
.envin your project root:
GLITCHTIP_TOKEN=your-api-token
GLITCHTIP_ORGANIZATION=your-org-slug
GLITCHTIP_BASE_URL=https://app.glitchtip.com
- Update
cline_mcp_settings.json:
{
"mcpServers": {
"glitchtip": {
"command": "npx",
"args": ["-y", "glitchtip-mcp"]
}
}
}
- Add
.envto.gitignore:
echo ".env" >> .gitignore
Verify Installation
- Restart VS Code or reload Cline
- Check the MCP Servers panel in Cline
- Look for "glitchtip" in the list of connected servers
- Test with: "Show me GlitchTip errors"
</details>
Getting Your GlitchTip Credentials
<details> <summary><b>API Token (Recommended)</b></summary>
- Log in to GlitchTip
- Go to https://app.glitchtip.com/profile/auth-tokens
- Create a new API token
- Copy the token
</details>
<details> <summary><b>Session ID (Alternative)</b></summary>
- Log in to GlitchTip
- Open browser DevTools (F12)
- Go to Application/Storage → Cookies
- Copy the
sessionidcookie value
</details>
Configuration
| 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
Available Tools
glitchtip_issues
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"
glitchtip_latest_event
Gets the latest event for a specific issue with full context.
Parameters:
issueId: The issue ID
Example: "Get details for issue #123"
Available Resources
glitchtip://issues
Resource endpoint providing all current issues in JSON format.
Available Prompts
recent_errors
Get overview of recent production errors with analysis and prioritization.
Use case: Quick triage of production issues
Example: "Use the recent_errors prompt"
debug_issue
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"
Usage Examples
Debug Production Error
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]
Monitor Error Trends
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)
Use Prompts for Guided Analysis
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]
Troubleshooting
Authentication Failed
- Verify your token/session ID is valid
- Check organization slug is correct
- Ensure token has appropriate permissions
Connection Error
- Verify
GLITCHTIP_BASE_URLis correct - Check network connectivity
- Ensure GlitchTip instance is accessible
No Issues Found
- Verify issues exist in GlitchTip
- Check organization slug
- Ensure you have permission to view issues
Security
- Never commit
.mcp.json,.cursor/mcp.json, or.envto version control - Use
.envfiles 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
Development & Contributing
Installation
npm install
Build
npm run build
Watch Mode
npm run watch
Test with MCP Inspector
export GLITCHTIP_TOKEN="your-token"
export GLITCHTIP_ORGANIZATION="your-org"
npm run inspector
Project Structure
glitchtip-mcp/
├── src/
│ ├── types.ts # TypeScript type definitions
│ ├── client.ts # GlitchTip API client
│ └── index.ts # MCP server implementation
├── package.json
├── tsconfig.json
└── README.md
License
MIT
Based on mcp-glitchtip
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。