Tracehub MCP logo

Tracehub MCP

Query and analyze OpenTelemetry traces from eight backends, including LLM usage, errors, costs, latency, and sessions.

Install Tracehub MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "tracehub-mcp": {
      "command": "uvx",
      "args": [
        "tracehub-mcp"
      ],
      "env": {
        "BACKEND_TYPE": "YOUR_VALUE_HERE",
        "BACKEND_URL": "YOUR_VALUE_HERE",
        "BACKEND_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx tracehub-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

tracehub-mcp connects MCP clients to OpenTelemetry traces from Jaeger, Grafana Tempo, Traceloop, Datadog, Sentry, AWS X-Ray, New Relic, and Honeycomb. Its tools search traces and spans, retrieve complete traces, inspect LLM models and token usage, compare time windows, and investigate errors or cost spikes. Reach for it when an agent needs direct access to LLM observability data instead of manually supplying trace JSON.

Use cases

  • Find traces with errors from a recent time window
  • Compare token usage and model performance across periods
  • Investigate cost spikes by model or service
  • Identify slow traces and rank their latency contributors
  • Inspect tool calls and prompt-version statistics

Key features

  • Eight OpenTelemetry trace backends
  • Trace and span search with filters
  • LLM token, model, and latency analytics
  • Trace triage and cross-backend correlation
  • Session, prompt-version, and tool-call inspection
  • Cost and error spike investigations

Tools19

What Tracehub MCP lets your agent do. Expand a tool for its parameters.

Self-reported~315 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 55d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · tracehub-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed19Callable tools this server registers over MCP.

How Tracehub MCP works

What tracehub-mcp does

tracehub-mcp gives MCP-compatible AI clients access to OpenTelemetry traces generated by LLM and other GenAI applications. It supports Jaeger, Grafana Tempo, Traceloop, Datadog, Sentry, AWS X-Ray, New Relic, and Honeycomb through a common backend interface.

The server treats OpenTelemetry gen_ai.* attributes as structured observability data. Agents can inspect prompts, completions, token counts, finish reasons, model usage, tool calls, conversation sessions, latency, and errors alongside ordinary trace and span data.

How it works

The server runs as a Python package and communicates with an MCP client over its configured transport. A backend type and URL select the trace system to query; authentication and backend-specific settings vary by provider. The same MCP tools are exposed across supported backends, while query behavior follows each backend's API.

Search can operate at either the trace or span level. Trace retrieval returns the complete trace for an ID, while span search returns individual spans without grouping them into traces. Diagnostic tools can rank latency on a critical path, follow an error chain, correlate a trace in a separately configured backend, or synthesize a likely root cause.

Setup and configuration

The package is available through PyPI. uvx can fetch and run it without a separate installation:

config.json
{
  "mcpServers": {
    "tracehub-mcp": {
      "command": "uvx",
      "args": ["tracehub-mcp"],
      "env": {
        "BACKEND_TYPE": "jaeger",
        "BACKEND_URL": "http://localhost:16686"
      }
    }
  }
}

It can also be started with pip, pipx, or from source. Claude Code supports adding the server with claude mcp add and environment flags. Python 3.11 or newer is supported.

Jaeger can use a bearer token through BACKEND_API_KEY; embedded credentials in its URL are rejected. Tempo may be local or Grafana Cloud. Traceloop uses API-key authentication, Datadog requires both an API key and an Application key, and Sentry requires an auth token plus organization slug. AWS X-Ray uses an AWS region and standard AWS credentials. New Relic uses a User API key and account ID. Honeycomb uses a Configuration Key and dataset slug.

Tools and capabilities

  • Search traces with simple parameters or advanced filters, and search ungrouped spans.
  • Retrieve full trace details by trace ID and correlate a trace across two configured backends.
  • Triage traces using critical-path latency, rankings, and error-chain analysis.
  • List services, find error traces, and inspect LLM models, token usage, and finish reasons.
  • Identify expensive or slow LLM traces, tool/function calls, prompt versions, and conversation sessions.
  • Compare usage across time windows and investigate cost or error-rate spikes by model, service, or error type.

AWS X-Ray has narrower native filtering because OpenTelemetry span attributes are generally stored as unindexed segment metadata. Honeycomb's programmatic Query Data API is identified as an Enterprise-plan feature. New Relic and Honeycomb support was developed without a live account for verification, so provider-specific behavior should be validated in the target environment.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Tracehub MCP

tracehub-mcp is an MCP server that connects AI clients to OpenTelemetry traces from Jaeger, Tempo, Traceloop, Datadog, Sentry, AWS X-Ray, New Relic, and Honeycomb. Its main tools search traces and spans, retrieve trace details, analyze LLM usage, diagnose errors, and compare observability data.

Install or run tracehub-mcp from PyPI with uvx, or use pip, pipx, or the source tree. The quick-start configuration uses the command `uvx tracehub-mcp` and sets `BACKEND_TYPE` and `BACKEND_URL` in the MCP client's environment.

tracehub-mcp supports Jaeger, Grafana Tempo, Traceloop, Datadog, Sentry, AWS X-Ray, New Relic, and Honeycomb. Each backend uses the same MCP tool interface, with provider-specific authentication and configuration.

Yes. Cursor is listed as a supported MCP client for tracehub-mcp. The server can also be configured with Claude, Windsurf, Gemini CLI, VS Code, and Claude Code.

Use `investigate_cost_spike` for recent-versus-baseline cost comparisons and `investigate_error_spike` for error-rate comparisons. Results are ranked by dimensions such as model, service, and error type.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTracehub MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tracehub-mcp?style=directory)](https://allmcps.com/mcp/tracehub-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/tracehub-mcp"><img src="https://allmcps.com/api/badge/tracehub-mcp?style=directory" alt="Tracehub MCP on AllMCPs" /></a>