tracehub-mcp is an MCP (Model Context Protocol) server designed to give AI assistants direct access to observability backends, enabling them to query and analyze OpenTelemetry trace data from LLM/GenAI applications without manually copying and pasting trace JSON. It supports Claude, Cursor, Windsurf, Gemini CLI, or any MCP client.
Key capabilities:
- Supports eight observability backends: Jaeger, Grafana Tempo, Traceloop, Datadog, Sentry, AWS X-Ray, New Relic, and Honeycomb. All backends implement a unified BaseBackend interface, so MCP tools behave consistently across different backends.
- Natively understands OpenTelemetry's gen_ai.* semantic conventions, treating prompts, completions, token usage, and finish reasons as first-class concepts rather than just generic span attributes.
- Provides tools such as search traces, search spans, get trace details, service discovery, and health checks to help find expensive calls, debug errors, compare model performance, and track token usage.
- Includes a generic filtering system that supports queries by conditions such as service name, time range, and error status.
Usage:
- Published on PyPI, it can be run with a single uvx command (no installation step required), or installed with pip/pipx, run from a source clone, or deployed with Docker.
- Configuration is provided via environment variables or CLI flags, with priority order CLI arguments > environment variables > default values. Each backend has specific configuration requirements; for example, Datadog requires an API key and an Application key, Sentry requires an auth token and organization slug, and AWS X-Ray uses boto3's SigV4 signing and standard AWS credentials.
- The Docker image runs the HTTP transport by default and requires setting MCP_HTTP_BEARER_TOKEN or explicitly allowing unauthenticated HTTP.
Use cases:
- Debugging errors and performance issues in LLM applications.
- Analyzing token usage and model call costs.
- Comparing the performance of different models or services.
- In AI assistantsQuery trace data directly in conversations to improve debugging efficiency.
Limitations and caveats:
- Query capabilities and filtering support differ across backends. For example, AWS X-Ray stores OTel span attributes as unindexed segment metadata by default, so native server-side filtering is narrower; the New Relic and Honeycomb backends were built without validation against real accounts, so some assumptions are unverified; Honeycomb's programmatic query API documentation marks it as Enterprise-only.
- Jaeger search requires a service_name parameter and does not support querying across all services.
- Cloud backends enforce HTTPS and reject plain http:// URLs.
- Some backends (such as Sentry) may have newer or experimental trace endpoints that are not available on all plans or self-hosted versions.
- The three backends inherited from upstream (Jaeger, Tempo, Traceloop) have not yet had the new security hardening measures applied.
- Requires a Python 3.11+ environment; Docker deployment requires Docker.