Telebugs MCP Server

Telebugs MCP Server

An MCP server that enables AI agents to retrieve and analyze error reports from a self-hosted Telebugs instance. It provides tools for listing projects, searching error groups, and fetching detailed reports directly from the Telebugs SQLite database.

Category
Visit Server

README

Telebugs MCP Server

An MCP (Model Context Protocol) server that allows AI agents to retrieve error reports from Telebugs, a self-hosted Sentry alternative.

Architecture

┌─────────────────┐                           ┌─────────────────────────────────────┐
│  Local Machine  │                           │              Remote VPS             │
│                 │         HTTPS             │                                     │
│  Claude Desktop │ ◄───────────────────────► │  Bun MCP Server   ───►  Telebugs    │
│                 │      (SSE transport)      │     :3100              SQLite DB    │
└─────────────────┘                           └─────────────────────────────────────┘

Features

  • Direct database access - Reads from Telebugs SQLite database (read-only)
  • API key authentication - Uses existing Telebugs user API keys
  • Access control - Users only see projects they're members of
  • SSE transport - Allows remote Claude Desktop connections
  • Token efficient - Compact JSON, defaults to open errors only
  • Single binary - Cross-compile to Linux, no runtime dependencies

Available Tools

Tool Description
list_projects List all accessible projects
list_error_groups List deduplicated error groups with filtering
get_error_group Get details of a specific error group
list_reports List individual error occurrences
get_report Get full report with backtrace, breadcrumbs, context
get_statistics Get aggregated error statistics
search_errors Full-text search across errors

list_error_groups

Parameter Type Default Description
project_id number - Filter by project ID
status string "open" "open", "resolved", "muted", or "all"
error_type string - Filter by exact error type
error_message string - Filter by error message (substring match)
from string - Start date (ISO 8601)
to string - End date (ISO 8601)
limit number 20 Max results (1-100)
offset number 0 Skip N results for pagination

Returns total_count for pagination.

list_reports

Parameter Type Default Description
group_id number - Filter by error group ID
project_id number - Filter by project ID
from string - Start date (ISO 8601)
to string - End date (ISO 8601)
limit number 20 Max results (1-100)
offset number 0 Skip N results for pagination

Returns total_count for pagination.

search_errors

Parameter Type Default Description
query string required Full-text search query
project_id number - Filter by project ID
limit number 20 Max results (1-100)

Installation

cd telebugs-mcp
bun install

Build

# Build for current platform
bun run build

# Build for Linux (for VPS deployment)
bun run build:linux

Configuration

Variable Description Default
TELEBUGS_DB_PATH Path to Telebugs SQLite database /var/lib/docker/volumes/telebugs-data/_data/db/production.sqlite3
PORT HTTP port to listen on 3100

Running Locally

TELEBUGS_DB_PATH=/path/to/telebugs/storage/db/development.sqlite3 bun run dev

Deployment

Single Binary

# Copy to server
scp telebugs-mcp-linux root@your-server:~/telebugs-mcp-linux

# On server
chmod +x ~/telebugs-mcp-linux
./telebugs-mcp-linux

systemd Service

Copy telebugs-mcp.service to /etc/systemd/system/:

cp telebugs-mcp.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable telebugs-mcp
systemctl start telebugs-mcp

Check status:

systemctl status telebugs-mcp

Nginx Reverse Proxy (Optional)

location /mcp {
    proxy_pass http://127.0.0.1:3100;
    proxy_http_version 1.1;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    # SSE support
    proxy_set_header Connection '';
    proxy_buffering off;
    proxy_cache off;
    chunked_transfer_encoding off;
}

Claude Desktop Configuration

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "telebugs": {
      "url": "http://your-server:3100/mcp",
      "headers": {
        "Authorization": "Bearer your_telebugs_api_key"
      }
    }
  }
}

Getting Your API Key

  1. Log into your Telebugs instance
  2. Go to User → Account Settings → Security
  3. Copy your API key

Or query directly:

sqlite3 /path/to/production.sqlite3 "SELECT api_key FROM users WHERE active = 1;"

Security

  • Database opened in read-only mode
  • API keys validated against active users only
  • All queries filtered by user's project memberships
  • Parameterized queries (no SQL injection)

Health Check

curl http://localhost:3100/health
# {"status":"ok"}

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured