ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Tracehub MCP

โดย mcpsmithsรุ่น 0.13.1i★ –iรันบนเครื่อง
ชื่อใน registryio.github.mcpsmiths/tracehub-mcp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Query OTel traces across Jaeger, Tempo, Traceloop, Datadog, Sentry, X-Ray, New Relic, Honeycomb.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: เครื่องมือนักพัฒนา
  • ต้องใส่ค่าเหล่านี้: BACKEND_TYPE, BACKEND_URL, BACKEND_API_KEY, BACKEND_APP_KEY

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: BACKEND_TYPE, BACKEND_URL, BACKEND_API_KEY, BACKEND_AWS_REGION, BACKEND_NEWRELIC_ACCOUNT_ID, BACKEND_HONEYCOMB_DATASET, BACKEND_APP_KEY, BACKEND_TEMPO_INSTANCE_ID, BACKEND_SENTRY_ORG, BACKEND_SENTRY_PROJECT, BACKEND_ENVIRONMENTS, BACKEND_TIMEOUT, BACKEND_MAX_RESPONSE_BYTES, LOG_LEVEL, MAX_TRACES_PER_QUERY, SLOW_REQUEST_THRESHOLD_MS, QUERY_CACHE_TTL_SECONDS, QUERY_CACHE_MAX_ENTRIES, OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_SERVICE_NAME, MCP_INCLUDE_ARGS_IN_SPANS

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "tracehub": {
      "command": "uvx",
      "args": [
        "tracehub-mcp"
      ],
      "env": {
        "BACKEND_TYPE": "ใส่ค่าของคุณ",
        "BACKEND_URL": "ใส่ค่าของคุณ",
        "BACKEND_API_KEY": "ใส่ค่าของคุณ",
        "BACKEND_AWS_REGION": "ใส่ค่าของคุณ",
        "BACKEND_NEWRELIC_ACCOUNT_ID": "ใส่ค่าของคุณ",
        "BACKEND_HONEYCOMB_DATASET": "ใส่ค่าของคุณ",
        "BACKEND_APP_KEY": "ใส่ค่าของคุณ",
        "BACKEND_TEMPO_INSTANCE_ID": "ใส่ค่าของคุณ",
        "BACKEND_SENTRY_ORG": "ใส่ค่าของคุณ",
        "BACKEND_SENTRY_PROJECT": "ใส่ค่าของคุณ",
        "BACKEND_ENVIRONMENTS": "ใส่ค่าของคุณ",
        "BACKEND_TIMEOUT": "ใส่ค่าของคุณ",
        "BACKEND_MAX_RESPONSE_BYTES": "ใส่ค่าของคุณ",
        "LOG_LEVEL": "ใส่ค่าของคุณ",
        "MAX_TRACES_PER_QUERY": "ใส่ค่าของคุณ",
        "SLOW_REQUEST_THRESHOLD_MS": "ใส่ค่าของคุณ",
        "QUERY_CACHE_TTL_SECONDS": "ใส่ค่าของคุณ",
        "QUERY_CACHE_MAX_ENTRIES": "ใส่ค่าของคุณ",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "ใส่ค่าของคุณ",
        "OTEL_SERVICE_NAME": "ใส่ค่าของคุณ",
        "MCP_INCLUDE_ARGS_IN_SPANS": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add tracehub --env BACKEND_TYPE='ใส่ค่าของคุณ' --env BACKEND_URL='ใส่ค่าของคุณ' --env BACKEND_API_KEY='ใส่ค่าของคุณ' --env BACKEND_AWS_REGION='ใส่ค่าของคุณ' --env BACKEND_NEWRELIC_ACCOUNT_ID='ใส่ค่าของคุณ' --env BACKEND_HONEYCOMB_DATASET='ใส่ค่าของคุณ' --env BACKEND_APP_KEY='ใส่ค่าของคุณ' --env BACKEND_TEMPO_INSTANCE_ID='ใส่ค่าของคุณ' --env BACKEND_SENTRY_ORG='ใส่ค่าของคุณ' --env BACKEND_SENTRY_PROJECT='ใส่ค่าของคุณ' --env BACKEND_ENVIRONMENTS='ใส่ค่าของคุณ' --env BACKEND_TIMEOUT='ใส่ค่าของคุณ' --env BACKEND_MAX_RESPONSE_BYTES='ใส่ค่าของคุณ' --env LOG_LEVEL='ใส่ค่าของคุณ' --env MAX_TRACES_PER_QUERY='ใส่ค่าของคุณ' --env SLOW_REQUEST_THRESHOLD_MS='ใส่ค่าของคุณ' --env QUERY_CACHE_TTL_SECONDS='ใส่ค่าของคุณ' --env QUERY_CACHE_MAX_ENTRIES='ใส่ค่าของคุณ' --env OTEL_EXPORTER_OTLP_ENDPOINT='ใส่ค่าของคุณ' --env OTEL_SERVICE_NAME='ใส่ค่าของคุณ' --env MCP_INCLUDE_ARGS_IN_SPANS='ใส่ค่าของคุณ' -- uvx tracehub-mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "tracehub": {
      "command": "uvx",
      "args": [
        "tracehub-mcp"
      ],
      "env": {
        "BACKEND_TYPE": "ใส่ค่าของคุณ",
        "BACKEND_URL": "ใส่ค่าของคุณ",
        "BACKEND_API_KEY": "ใส่ค่าของคุณ",
        "BACKEND_AWS_REGION": "ใส่ค่าของคุณ",
        "BACKEND_NEWRELIC_ACCOUNT_ID": "ใส่ค่าของคุณ",
        "BACKEND_HONEYCOMB_DATASET": "ใส่ค่าของคุณ",
        "BACKEND_APP_KEY": "ใส่ค่าของคุณ",
        "BACKEND_TEMPO_INSTANCE_ID": "ใส่ค่าของคุณ",
        "BACKEND_SENTRY_ORG": "ใส่ค่าของคุณ",
        "BACKEND_SENTRY_PROJECT": "ใส่ค่าของคุณ",
        "BACKEND_ENVIRONMENTS": "ใส่ค่าของคุณ",
        "BACKEND_TIMEOUT": "ใส่ค่าของคุณ",
        "BACKEND_MAX_RESPONSE_BYTES": "ใส่ค่าของคุณ",
        "LOG_LEVEL": "ใส่ค่าของคุณ",
        "MAX_TRACES_PER_QUERY": "ใส่ค่าของคุณ",
        "SLOW_REQUEST_THRESHOLD_MS": "ใส่ค่าของคุณ",
        "QUERY_CACHE_TTL_SECONDS": "ใส่ค่าของคุณ",
        "QUERY_CACHE_MAX_ENTRIES": "ใส่ค่าของคุณ",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "ใส่ค่าของคุณ",
        "OTEL_SERVICE_NAME": "ใส่ค่าของคุณ",
        "MCP_INCLUDE_ARGS_IN_SPANS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "tracehub": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tracehub-mcp"
      ],
      "env": {
        "BACKEND_TYPE": "ใส่ค่าของคุณ",
        "BACKEND_URL": "ใส่ค่าของคุณ",
        "BACKEND_API_KEY": "ใส่ค่าของคุณ",
        "BACKEND_AWS_REGION": "ใส่ค่าของคุณ",
        "BACKEND_NEWRELIC_ACCOUNT_ID": "ใส่ค่าของคุณ",
        "BACKEND_HONEYCOMB_DATASET": "ใส่ค่าของคุณ",
        "BACKEND_APP_KEY": "ใส่ค่าของคุณ",
        "BACKEND_TEMPO_INSTANCE_ID": "ใส่ค่าของคุณ",
        "BACKEND_SENTRY_ORG": "ใส่ค่าของคุณ",
        "BACKEND_SENTRY_PROJECT": "ใส่ค่าของคุณ",
        "BACKEND_ENVIRONMENTS": "ใส่ค่าของคุณ",
        "BACKEND_TIMEOUT": "ใส่ค่าของคุณ",
        "BACKEND_MAX_RESPONSE_BYTES": "ใส่ค่าของคุณ",
        "LOG_LEVEL": "ใส่ค่าของคุณ",
        "MAX_TRACES_PER_QUERY": "ใส่ค่าของคุณ",
        "SLOW_REQUEST_THRESHOLD_MS": "ใส่ค่าของคุณ",
        "QUERY_CACHE_TTL_SECONDS": "ใส่ค่าของคุณ",
        "QUERY_CACHE_MAX_ENTRIES": "ใส่ค่าของคุณ",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "ใส่ค่าของคุณ",
        "OTEL_SERVICE_NAME": "ใส่ค่าของคุณ",
        "MCP_INCLUDE_ARGS_IN_SPANS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • BACKEND_TYPE จำเป็น env
    Which observability backend to query.
  • BACKEND_URL จำเป็น env
    Backend API endpoint, e.g. http://localhost:16686 for Jaeger, https://api.datadoghq.com for Datadog, https://api.newrelic.com/graphql for New Relic, or https://api.honeycomb.io for Honeycomb. For the…
  • BACKEND_API_KEY ความลับ env
    API key or auth token. Required for Traceloop, Datadog, Sentry, New Relic, and Honeycomb; not used by Jaeger, Tempo, or X-Ray. For New Relic this must be a User API key, not an Ingest or License key;…
  • BACKEND_AWS_REGION env
    AWS region, e.g. us-east-1. Required for the X-Ray backend only - X-Ray authenticates via boto3's standard AWS credential chain, not BACKEND_API_KEY.
  • BACKEND_NEWRELIC_ACCOUNT_ID env
    New Relic account ID, required for the New Relic backend only - NerdGraph queries are user-scoped, not account-scoped, so this identifies which account's data to read.
  • BACKEND_HONEYCOMB_DATASET env
    Honeycomb dataset slug, required for the Honeycomb backend only - the Query Data API is dataset-scoped.
  • BACKEND_APP_KEY ความลับ env
    Datadog Application key, required in addition to BACKEND_API_KEY for the Datadog backend only.
  • BACKEND_TEMPO_INSTANCE_ID env
    Grafana Cloud stack/instance ID, used with BACKEND_API_KEY for Basic Auth (Tempo backend only, required for Grafana Cloud-hosted Tempo, not needed for self-hosted Tempo).
  • BACKEND_SENTRY_ORG env
    Sentry organization slug, required for the Sentry backend only.
  • BACKEND_SENTRY_PROJECT env
    Sentry project slug, optional for the Sentry backend - narrows queries to one project.
  • BACKEND_ENVIRONMENTS env
    Comma-separated environments for the Traceloop backend only.
  • BACKEND_TIMEOUT env
    Request timeout in seconds.
  • BACKEND_MAX_RESPONSE_BYTES env
    Ceiling on the decoded size of any single backend response, in bytes (1 to 1073741824). An oversized body is refused before it is buffered or parsed.
  • LOG_LEVEL env
    Logging level.
  • MAX_TRACES_PER_QUERY env
    Maximum traces validated per query (1-1000).
  • SLOW_REQUEST_THRESHOLD_MS env
    Logs a WARNING for any backend request slower than this, independent of LOG_LEVEL. Unset disables slow-request logging.
  • QUERY_CACHE_TTL_SECONDS env
    Cache backend query results for this many seconds with in-flight request coalescing; finite, > 0 and at most 86400 (one day). Unset disables the cache.
  • QUERY_CACHE_MAX_ENTRIES env
    Upper bound on the number of cached query results held at once (1-100000); the least-recently-used entry is evicted first.
  • OTEL_EXPORTER_OTLP_ENDPOINT env
    Enables opt-in OTel self-instrumentation of tool calls when set. Unset means zero overhead - no TracerProvider is configured and no middleware is registered.
  • OTEL_SERVICE_NAME env
    Service name reported in self-instrumentation spans, only used when OTEL_EXPORTER_OTLP_ENDPOINT is set.
  • MCP_INCLUDE_ARGS_IN_SPANS env
    Include tool call arguments/results as OTel span attributes when self-instrumentation is enabled. Off by default since they may contain sensitive data.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub mcpsmiths ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด เครื่องมือนักพัฒนาi

  • ดาวมากกว่า 0% ของอีก 1392 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 86% ของอีก 1392 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1392 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Tracehub MCP ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: BACKEND_TYPE, BACKEND_URL, BACKEND_API_KEY, BACKEND_APP_KEY

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.13.1) เข้า registry 6 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

GitHub

โดย github

server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้

บนเครื่องหรือคลาวด์★ 34,245MITอัปเดต 3 วันที่ผ่านมา
ติดตั้ง

Desktop Commander

โดย wonderwhy-er

MCP server for terminal commands, file operations, and process management

รันบนเครื่อง★ 10,225MITอัปเดต 15 วันที่ผ่านมา
ติดตั้ง

Cloudflare MCP

โดย cloudflare

Cloudflare MCP servers

รันบนคลาวด์★ 4,446Apache-2.0อัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

tracehub-mcp

Also listed on the official MCP registry as io.github.mcpsmiths/tracehub-mcp (the registry's own ?search= endpoint can surface an outdated version first; this exact-name endpoint always reflects the current isLatest release), and on mcprush.

Give your AI assistant a direct line into your observability backend. tracehub-mcp is an MCP (Model Context Protocol) server that lets Claude, Cursor, Windsurf, Gemini CLI, or any MCP client query OpenTelemetry traces from your LLM/GenAI application and reason about them — find expensive calls, debug errors, compare model performance, track token usage — without you copy-pasting trace JSON into a chat window.

It speaks OpenTelemetry's gen_ai.* semantic conventions natively, so it understands prompts, completions, token usage, and finish reasons as first-class concepts, not just generic span attributes.

tracehub-mcp started as a fork of traceloop/opentelemetry-mcp-server (Apache 2.0) — full attribution and fork history are in NOTICE. It's grown into an 8-backend, security-hardened server maintained independently under mcpsmiths; see What's Different From Upstream below for the parts that are new here.


Table of Contents

  • Quick Start
  • Supported Backends
  • What's Different From Upstream
  • Installation
  • Configuration
  • Diagnostics
  • Security Considerations
  • Privacy Policy
  • MCP Client Setup
  • Tools Reference
  • Generic Filter System
  • Example Queries
  • Common Workflows
  • Development
  • Troubleshooting
  • Roadmap
  • License
  • Support

Quick Start

tracehub-mcp is on PyPI. No install step needed — uvx fetches and runs it in one shot:

// claude_desktop_config.json

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

Or from Claude Code directly:

claude mcp add tracehub-mcp -e BACKEND_TYPE=jaeger -e BACKEND_URL=http://localhost:16686 -- uvx tracehub-mcp

That's it. Ask your assistant: _"Show me traces with errors from the last hour."_

See MCP Client Setup for Cursor, Windsurf, VS Code, and Gemini CLI, and Installation for pip/pipx/from-source alternatives.


Supported Backends

  • [Jaeger](https://www.jaegertracing.io/) — local/self-hosted, the most common open-source trace backend. No auth required (a Bearer token can be sent via BACKEND_API_KEY; credentials embedded in BACKEND_URL are rejected).
  • [Grafana Tempo](https://grafana.com/oss/tempo/) — local or Grafana Cloud, TraceQL-native search.
  • [Traceloop](https://www.traceloop.com/) — cloud LLM observability platform, API-key auth.
  • [Datadog](https://www.datadoghq.com/) — cloud APM, requires an API key *and* an Application key.
  • [Sentry](https://sentry.io/) — cloud or self-hosted, requires an auth token and an organization slug.
  • [AWS X-Ray](https://aws.amazon.com/xray/) — SigV4-signed via boto3, requires an AWS region and standard AWS credentials (not an API key). Because OTel span attributes land in unindexed X-Ray segment *metadata* by default (only *annotations* are queryable), native server-side filtering is narrower here than for the other backends — see the Backend Support Matrix.
  • [New Relic](https://newrelic.com/) — NerdGraph GraphQL API, requires a User API key (not an Ingest/License key) and an account ID. Built without a live account to verify against — see the New Relic setup section below and the module docstring in backends/newrelic.py for exactly which assumptions are unverified.
  • [Honeycomb](https://www.honeycomb.io/) — Query Data API, requires a Configuration Key and a dataset slug. Built without a live account to verify against, and the research behind it found the programmatic Query Data API (the only way to actually run a query and get results back) is documented as Enterprise-plan exclusive — see the Honeycomb setup section below and the module docstring in backends/honeycomb.py.

All eight implement the same BaseBackend interface, so every MCP tool works identically regardless of which one you point the server at. See Configuration for per-backend setup.


What's Different From Upstream

Upstream opentelemetry-mcp-server shipped Jaeger, Tempo, and Traceloop. tracehub-mcp adds Datadog and Sentry as full backends — not thin wrappers, but complete implementations of every tool (search, span search, trace hydration, service discovery, health checks). Along the way, all five backends — including the three inherited from upstream — were hardened to a consistent bar:

  • HTTPS-only enforcement on cloud backends. Datadog and Sentry both refuse to start against a plain http:// URL, because their auth is a bearer token / API+App key pair that has no business going out over plaintext.
  • Query-injection-safe escaping. Every value spliced into a Datadog span-search query or a Sentry Discover query is escaped and exact-quoted; field *names* (which are less obviously untrusted, since they come from the MCP tool's filters parameter) are validated against an allowlist pattern before being spliced into the query string, closing off structural injection through a crafted field name.
  • Bounded pagination on every backend that paginates via cursor (Datadog, Sentry) — a search stops at the requested limit or when the backend stops returning a continuation cursor, whichever comes first, so a single tool call can't degrade into an unbounded crawl.
  • Exact-ID re-verification. Where a backend's search API can return neighbors instead of an exact match (notably Datadog's trace reconstruction from grouped spans), every result is re-checked against the exact ID that was asked for before being returned.
  • No fabricated data on malformed responses, in the backends we built. Datadog and Sentry reject a span outright — rather than substituting a placeholder like now() for a missing timestamp or a literal "unknown" for a missing service_name/operation_name — since a fabricated value would silently corrupt trace ordering, duration aggregation, and any tool that groups by service or operation. (The three backends inherited from upstream — Jaeger, Tempo, Traceloop — predate this discipline and haven't been retrofitted; that's deliberate scope discipline, not an oversight, mirroring this project's own precedent of not reaching into shared/inherited code without full regression coverage for it.)

All of this is backed by 458 passing tests (2 skipped, zero regressions), a clean ruff check and mypy --strict run, and two rounds of adversarial CodeRabbit review on the new backends.


Installation

tracehub-mcp is on PyPI. Pick whichever of these your workflow already uses — they're equivalent.

Option 1: uvx (no install step)
uvx tracehub-mcp --backend jaeger --url http://localhost:16686

This is what the Quick Start config above uses — uv fetches the package and runs the tracehub-mcp entry point in one shot, nothing left behind on disk between runs.

Option 2: pip / pipx
pipx install tracehub-mcp

or: pip install tracehub-mcp

tracehub-mcp --backend jaeger --url http://localhost:16686

Option 3: Clone and run from source
git clone https://github.com/mcpsmiths/tracehub-mcp.git

cd tracehub-mcp uv sync

uv run tracehub-mcp --backend jaeger --url http://localhost:16686

Use this if you're developing locally, want to pin to a specific commit, or want the dev tooling installed (uv sync --group dev).

Option 4: Docker
# The image's CMD binds 0.0.0.0 inside the container, so a caller token is

mandatory: clients send it as Authorization: Bearer $MCP_HTTP_BEARER_TOKEN.

export MCP_HTTP_BEARER_TOKEN=$(openssl rand -hex 32) docker run --rm -p 8000:8000 \ -e BACKEND_TYPE=jaeger -e BACKEND_URL=http://host.docker.internal:16686 \ -e MCP_HTTP_BEARER_TOKEN \ -e MCP_ALLOWED_HOSTS=localhost \ ghcr.io/mcpsmiths/tracehub-mcp:latest

Backend responses are capped at BACKEND_MAX_RESPONSE_BYTES (64 MiB decoded by default) before they are buffered, but a container that serves many sessions still benefits from Docker's own guard rails: add --memory 1g --restart unless-stopped (or the Compose equivalents) so a process that does exhaust memory is contained and comes back without an operator.

Runs HTTP transport by default (the image's CMD) and refuses to start without MCP_HTTP_BEARER_TOKEN - or the explicit -e MCP_ALLOW_UNAUTHENTICATED_HTTP=true opt-out, which hands every peer that can reach the published port your backend's full read scope. Clients connect to http://localhost:8000/mcp with Authorization: Bearer ; /health and /ready (the image's HEALTHCHECK) never need the token. Because the CMD binds 0.0.0.0, the container validates the Host header only when MCP_ALLOWED_HOSTS is set - always set it to the hostnames clients use (localhost in the example above, the public name in a real deployment); * turns Host validation off and may not be mixed with names (the server refuses to start). This is also the form to use for MCP clients whose config takes a command/args pair pointing at docker directly (Cursor, Windsurf) instead of a local binary - pass the same -e MCP_HTTP_BEARER_TOKEN=... in args.

Prerequisites: Python 3.11+, plus uv for Options 1 and 3; Docker for Option 4.


Configuration

Configuration comes from environment variables, CLI flags, or both. Precedence: CLI arguments > environment variables > defaults.

# .env (see .env.example)

BACKEND_TYPE=jaeger BACKEND_URL=http://localhost:16686

# Equivalent via CLI flags

tracehub-mcp --backend jaeger --url http://localhost:16686

All Configuration Options

| Variable | Type | Default | Description

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx