MCP server for Jaeger distributed tracing — search traces, inspect spans, map service dependencies.
Project description
jaeger-mcp
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.
Why another Jaeger MCP?
The existing Jaeger integrations require a running UI or custom scripts. This server:
- Speaks the standard Model Context Protocol over stdio — works with Claude Desktop, Claude Code, Cursor, and any MCP client.
- Is read-only: all 5 tools carry
readOnlyHint: true— zero risk of modifying trace data. - Returns dual-channel output: structured JSON (
structuredContent) for programmatic use + Markdown (content) for human-readable display. - Has actionable error messages that name the exact env var to fix and suggest a next step.
- Supports Bearer token, HTTP Basic auth, or no auth (common for internal deployments).
Tools
| 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 |
Installation
pip install jaeger-mcp
Or run directly without installing:
uvx jaeger-mcp
Configuration
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.
Claude Desktop / Claude Code setup
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
docker run --rm -e JAEGER_URL=https://jaeger.example.com jaeger-mcp
Example queries
Once configured, ask Claude:
- "What services does Jaeger know about?"
- "Find traces with HTTP 500 errors in
order-servicefrom the last hour" - "Show me the slowest traces (over 2 seconds) for
GET /checkout" - "What caused the error in trace
abcdef1234567890?" - "Map the service dependency graph for the last 7 days"
- "Which services call
postgresmost frequently?"
Tool usage guide
jaeger_list_services
Returns 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_operations
Returns 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_traces
The main search tool. Filters:
service(required) — service name fromjaeger_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 1500
Returns trace summaries with trace_id, duration_us, span_count, service_count, root_operation, errors_count.
jaeger_get_trace
Full trace detail. Accepts a trace_id (hex string, 16-32 chars) and returns:
- All spans with tags, service names, parent/child relationships
- Per-service statistics (span count, total duration, error count)
- Execution tree (each node lists its child span IDs)
Error spans are identified by tags["error"] = "true".
jaeger_get_dependencies
Service topology graph. Returns directed edges (parent → child) with call_count. Use lookback_hours (default 24, max 720) to control the window.
Performance characteristics
- All tools use a single persistent
requests.Sessionwith connection pooling. - The session has
trust_env = Falseto bypass environment proxies (Jaeger is typically an internal service). - Requests time out after 30 seconds.
jaeger_search_tracespasseslimitdirectly to Jaeger — avoid requesting more traces than needed.jaeger_get_tracefetches the full trace in one call — large traces (thousands of spans) may be slow.jaeger_get_dependenciesaggregates over the full lookback window; large windows may be slow on busy clusters.
Development
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
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jaeger_mcp-0.1.1.tar.gz.
File metadata
- Download URL: jaeger_mcp-0.1.1.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20009597f93d2077a3ba7ab53fd1158a719ba5cc9c479c1371d10b917779e95a
|
|
| MD5 |
fcda23486b4cd36495737d7aff78aff4
|
|
| BLAKE2b-256 |
59a187288c0c5006aaf96c4b894fdeb2e96d8f79fad9807c64cb28e89195b75d
|
Provenance
The following attestation bundles were made for jaeger_mcp-0.1.1.tar.gz:
Publisher:
publish.yml on mshegolev/jaeger-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaeger_mcp-0.1.1.tar.gz -
Subject digest:
20009597f93d2077a3ba7ab53fd1158a719ba5cc9c479c1371d10b917779e95a - Sigstore transparency entry: 1337895994
- Sigstore integration time:
-
Permalink:
mshegolev/jaeger-mcp@5899325f45870e8489219c26b5b7ef9d80b79ee7 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/mshegolev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5899325f45870e8489219c26b5b7ef9d80b79ee7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file jaeger_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: jaeger_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c00ffb037b084d8cac258c529ac51d900f33ed218895350ee4c569e0228c2e54
|
|
| MD5 |
e9960ef8699c6268a4e9fe88ecc3a0ed
|
|
| BLAKE2b-256 |
33de32e8d8d701104a4c9a15dcd3ddafb8fb1fcbeac8c9844594341f6ec0172c
|
Provenance
The following attestation bundles were made for jaeger_mcp-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on mshegolev/jaeger-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jaeger_mcp-0.1.1-py3-none-any.whl -
Subject digest:
c00ffb037b084d8cac258c529ac51d900f33ed218895350ee4c569e0228c2e54 - Sigstore transparency entry: 1337896134
- Sigstore integration time:
-
Permalink:
mshegolev/jaeger-mcp@5899325f45870e8489219c26b5b7ef9d80b79ee7 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/mshegolev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5899325f45870e8489219c26b5b7ef9d80b79ee7 -
Trigger Event:
push
-
Statement type: