프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. 리뷰와 계정 기능은 다음 단계에서 열려요.
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Tracehub MCP

제작자: mcpsmiths버전 0.13.1i★ –i내 컴퓨터에서 실행
레지스트리 이름io.github.mcpsmiths/tracehub-mcp

설치

개요

제작자가 쓴 설명(영어 원문)

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

PopNx MCP의 세 기둥

이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.

할 수 있는 일

이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.

  • 연결 방식: 내 컴퓨터에서 실행
  • 전송 방식: 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

비밀로 표시된 값은 내 계정의 열쇠예요. 절대 다른 사람과 공유하거나 채팅에 붙여 넣지 마세요.

필요한 것

  • PyPIPython의 uv 설치(uvx 명령어용)

어떤 앱을 쓰세요?

위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.

Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요

{
  "mcpServers": {
    "tracehub": {
      "command": "uvx",
      "args": [
        "tracehub-mcp"
      ],
      "env": {
        "BACKEND_TYPE": "your-value",
        "BACKEND_URL": "your-value",
        "BACKEND_API_KEY": "your-value",
        "BACKEND_AWS_REGION": "your-value",
        "BACKEND_NEWRELIC_ACCOUNT_ID": "your-value",
        "BACKEND_HONEYCOMB_DATASET": "your-value",
        "BACKEND_APP_KEY": "your-value",
        "BACKEND_TEMPO_INSTANCE_ID": "your-value",
        "BACKEND_SENTRY_ORG": "your-value",
        "BACKEND_SENTRY_PROJECT": "your-value",
        "BACKEND_ENVIRONMENTS": "your-value",
        "BACKEND_TIMEOUT": "your-value",
        "BACKEND_MAX_RESPONSE_BYTES": "your-value",
        "LOG_LEVEL": "your-value",
        "MAX_TRACES_PER_QUERY": "your-value",
        "SLOW_REQUEST_THRESHOLD_MS": "your-value",
        "QUERY_CACHE_TTL_SECONDS": "your-value",
        "QUERY_CACHE_MAX_ENTRIES": "your-value",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "your-value",
        "OTEL_SERVICE_NAME": "your-value",
        "MCP_INCLUDE_ARGS_IN_SPANS": "your-value"
      }
    }
  }
}

터미널에서 이 명령어를 실행하세요

claude mcp add tracehub --env BACKEND_TYPE=your-value --env BACKEND_URL=your-value --env BACKEND_API_KEY=your-value --env BACKEND_AWS_REGION=your-value --env BACKEND_NEWRELIC_ACCOUNT_ID=your-value --env BACKEND_HONEYCOMB_DATASET=your-value --env BACKEND_APP_KEY=your-value --env BACKEND_TEMPO_INSTANCE_ID=your-value --env BACKEND_SENTRY_ORG=your-value --env BACKEND_SENTRY_PROJECT=your-value --env BACKEND_ENVIRONMENTS=your-value --env BACKEND_TIMEOUT=your-value --env BACKEND_MAX_RESPONSE_BYTES=your-value --env LOG_LEVEL=your-value --env MAX_TRACES_PER_QUERY=your-value --env SLOW_REQUEST_THRESHOLD_MS=your-value --env QUERY_CACHE_TTL_SECONDS=your-value --env QUERY_CACHE_MAX_ENTRIES=your-value --env OTEL_EXPORTER_OTLP_ENDPOINT=your-value --env OTEL_SERVICE_NAME=your-value --env MCP_INCLUDE_ARGS_IN_SPANS=your-value -- uvx tracehub-mcp

실행하기 전에 빈 값을 채워 주세요.

Cursor에서 열기

또는 설정을 직접 복사하기

프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요

{
  "mcpServers": {
    "tracehub": {
      "command": "uvx",
      "args": [
        "tracehub-mcp"
      ],
      "env": {
        "BACKEND_TYPE": "your-value",
        "BACKEND_URL": "your-value",
        "BACKEND_API_KEY": "your-value",
        "BACKEND_AWS_REGION": "your-value",
        "BACKEND_NEWRELIC_ACCOUNT_ID": "your-value",
        "BACKEND_HONEYCOMB_DATASET": "your-value",
        "BACKEND_APP_KEY": "your-value",
        "BACKEND_TEMPO_INSTANCE_ID": "your-value",
        "BACKEND_SENTRY_ORG": "your-value",
        "BACKEND_SENTRY_PROJECT": "your-value",
        "BACKEND_ENVIRONMENTS": "your-value",
        "BACKEND_TIMEOUT": "your-value",
        "BACKEND_MAX_RESPONSE_BYTES": "your-value",
        "LOG_LEVEL": "your-value",
        "MAX_TRACES_PER_QUERY": "your-value",
        "SLOW_REQUEST_THRESHOLD_MS": "your-value",
        "QUERY_CACHE_TTL_SECONDS": "your-value",
        "QUERY_CACHE_MAX_ENTRIES": "your-value",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "your-value",
        "OTEL_SERVICE_NAME": "your-value",
        "MCP_INCLUDE_ARGS_IN_SPANS": "your-value"
      }
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

VS Code에서 열기

또는 설정을 직접 복사하기

프로젝트의 .vscode/mcp.json에 붙여 넣으세요

{
  "servers": {
    "tracehub": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tracehub-mcp"
      ],
      "env": {
        "BACKEND_TYPE": "your-value",
        "BACKEND_URL": "your-value",
        "BACKEND_API_KEY": "your-value",
        "BACKEND_AWS_REGION": "your-value",
        "BACKEND_NEWRELIC_ACCOUNT_ID": "your-value",
        "BACKEND_HONEYCOMB_DATASET": "your-value",
        "BACKEND_APP_KEY": "your-value",
        "BACKEND_TEMPO_INSTANCE_ID": "your-value",
        "BACKEND_SENTRY_ORG": "your-value",
        "BACKEND_SENTRY_PROJECT": "your-value",
        "BACKEND_ENVIRONMENTS": "your-value",
        "BACKEND_TIMEOUT": "your-value",
        "BACKEND_MAX_RESPONSE_BYTES": "your-value",
        "LOG_LEVEL": "your-value",
        "MAX_TRACES_PER_QUERY": "your-value",
        "SLOW_REQUEST_THRESHOLD_MS": "your-value",
        "QUERY_CACHE_TTL_SECONDS": "your-value",
        "QUERY_CACHE_MAX_ENTRIES": "your-value",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "your-value",
        "OTEL_SERVICE_NAME": "your-value",
        "MCP_INCLUDE_ARGS_IN_SPANS": "your-value"
      }
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.

선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.

직접 입력할 값

  • 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.

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 mcpsmiths 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • … 아직 점검 안 함

    계속 관리되고 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • … 아직 점검 안 함

    라이선스 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

개발자 도구 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 1394개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 1394개 중 86%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 1394개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Tracehub MCP, 안전한가요?

해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

입력해야 할 값: BACKEND_TYPE, BACKEND_URL, BACKEND_API_KEY, BACKEND_APP_KEY

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.13.1)은 6일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: GitHub, Desktop Commander, Cloudflare MCP

대안

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

GitHub

제작자: github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

컴퓨터 또는 클라우드★ 34,245MIT3일 전 업데이트
설치

Desktop Commander

제작자: wonderwhy-er

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

내 컴퓨터에서 실행★ 10,225MIT16일 전 업데이트
설치

Cloudflare MCP

제작자: cloudflare

Cloudflare MCP servers

클라우드에서 실행★ 4,446Apache-2.014개월 전 업데이트
설치

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. 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

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요

PopNx에게 묻기