SuperAPIAI Directory

tracehub-mcp

github.com · AI developer platforms

tracehub-mcp is a server based on the Model Context Protocol (MCP) that lets AI assistants directly query OpenTelemetry trace data from multiple observability backends to debug LLM/GenAI applications. It supports eight backends: Jaeger, Grafana Tempo, Traceloop, Datadog, Sentry, AWS X-Ray, New Relic, and Honeycomb, and natively understands OpenTelemetry's gen_ai.* semantic conventions, recognizing concepts such as prompts, completions, token usage, and finish reasons. The project is a fork of traceloop/opentelemetry-mcp-server, independently maintained by mcpsmiths, published on PyPI, runnable with a single uvx command, and deployable via pip, pipx, source code, or Docker. It provides tools such as search traces, search spans, get trace details, service discovery, and health checks, and includes security hardening measures such as enforced HTTPS, query injection protection, pagination limits, and exact ID verification. It is suitable for scenarios where MCP clients such as Claude, Cursor, Windsurf, and Gemini CLI need to analyze trace data from LLM applications.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

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.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools