loading…
Search for a command to run...
loading…
Provides read-only access to Jaeger distributed tracing data through the Model Context Protocol. Enables Claude and other MCP-capable agents to search traces, i
Provides read-only access to Jaeger distributed tracing data through the Model Context Protocol. Enables Claude and other MCP-capable agents to search traces, inspect spans, and analyze service dependencies directly within conversations.
PyPI version Python versions License: MIT Tests
MCP server for Jaeger distributed tracing. Give Claude (or any MCP-capable agent) read access to your trace data — search traces, inspect spans, map service dependencies — without leaving the conversation.
The existing Jaeger integrations require a running UI or custom scripts. This server:
readOnlyHint: true — zero risk of modifying trace data.structuredContent) for programmatic use + Markdown (content) for human-readable display.| Tool | Endpoint | Description |
|---|---|---|
jaeger_list_services |
GET /api/services |
List all instrumented services |
jaeger_list_operations |
GET /api/services/{service}/operations |
List operation names for a service |
jaeger_search_traces |
GET /api/traces |
Search traces with rich filters |
jaeger_get_trace |
GET /api/traces/{traceID} |
Full trace detail with span tree |
jaeger_get_dependencies |
GET /api/dependencies |
Service-to-service call graph |
pip install jaeger-mcp
Or run directly without installing:
uvx jaeger-mcp
All configuration is via environment variables:
| Variable | Required | Default | Description |
|---|---|---|---|
JAEGER_URL |
Yes | — | Jaeger query service URL, e.g. https://jaeger.example.com |
JAEGER_TOKEN |
No | — | Bearer token (takes precedence over Basic auth) |
JAEGER_USERNAME |
No | — | HTTP Basic auth username |
JAEGER_PASSWORD |
No | — | HTTP Basic auth password |
JAEGER_SSL_VERIFY |
No | true |
Set false for self-signed certificates |
Copy .env.example to .env and fill in your values.
Add to your MCP config (claude_desktop_config.json or .claude/mcp.json):
{
"mcpServers": {
"jaeger": {
"command": "jaeger-mcp",
"env": {
"JAEGER_URL": "https://jaeger.example.com",
"JAEGER_TOKEN": "your-token-here"
}
}
}
}
Or with uvx (no install required):
{
"mcpServers": {
"jaeger": {
"command": "uvx",
"args": ["jaeger-mcp"],
"env": {
"JAEGER_URL": "https://jaeger.example.com"
}
}
}
}
docker run --rm -e JAEGER_URL=https://jaeger.example.com jaeger-mcp
Once configured, ask Claude:
order-service from the last hour"GET /checkout"abcdef1234567890?"postgres most frequently?"jaeger_list_servicesReturns all service names Jaeger has seen. Start here when you don't know which services are instrumented. Output is capped at 500 services with a truncation hint.
jaeger_list_operationsReturns all operation names for a given service (e.g. HTTP route names, gRPC method names). Use to discover valid operation names before filtering jaeger_search_traces.
jaeger_search_tracesThe main search tool. Filters:
service (required) — service name from jaeger_list_servicesoperation — narrow to a specific endpointtags — JSON string of tag filters, e.g. {"http.status_code":"500"} or {"error":"true"}start / end — time range in microseconds UTCmin_duration / max_duration — duration strings like "100ms", "1.5s", "2m"limit — default 20, max 1500Returns trace summaries with trace_id, duration_us, span_count, service_count, root_operation, errors_count.
jaeger_get_traceFull trace detail. Accepts a trace_id (hex string, 16-32 chars) and returns:
Error spans are identified by tags["error"] = "true".
jaeger_get_dependenciesService topology graph. Returns directed edges (parent → child) with call_count. Use lookback_hours (default 24, max 720) to control the window.
requests.Session with connection pooling.trust_env = False to bypass environment proxies (Jaeger is typically an internal service).jaeger_search_traces passes limit directly to Jaeger — avoid requesting more traces than needed.jaeger_get_trace fetches the full trace in one call — large traces (thousands of spans) may be slow.jaeger_get_dependencies aggregates over the full lookback window; large windows may be slow on busy clusters.git clone https://github.com/mshegolev/jaeger-mcp
cd jaeger-mcp
pip install -e '.[dev]'
pytest tests/ -v
ruff check src tests
ruff format src tests
MIT — see LICENSE.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"jaeger-mcp": {
"command": "npx",
"args": []
}
}
}