Skip to main content
The TraceRoot MCP server lets an AI assistant read your project’s data while you talk to it: “what were my slowest traces today?”, “what did the hallucination detector flag this week?”, “which datasets do I have, and what changed in the latest version?”. It uses the same data and the same answers as the CLI, in the assistant you already use. It is read-only, and each connection can read one project. You choose which when you connect, and you can disconnect at any time under Account settings → Connected assistants.

What it can do

It offers 24 tools: list and read traces, sessions, findings, detectors, alerts, dashboards (and their widgets), datasets and their versions, and evaluation runs, and run read-only SQL against your project’s data. Large fields, such as a trace’s input and output, are left out unless the assistant asks for them.

Connect

TraceRoot Cloud’s MCP server is at:
The steps below use it. If you self-host, use the value you set as MCP_RESOURCE_URL instead; see Self-hosting. Connecting asks you to sign in to TraceRoot, pick the project the assistant may read, and approve. No API key is needed.
Claude on the web and Claude Desktop
  1. Open Settings → Connectors and choose Add custom connector.
  2. Enter https://mcp.traceroot.ai/mcp and add it.
  3. Connect, then sign in to TraceRoot, pick a project and approve.
Claude connects to your server from Anthropic’s cloud, so the URL must be reachable from the public internet. Claude Desktop does not accept remote servers in its configuration file; add them under Connectors. Team and Enterprise organizations add the connector once, as an owner, and members then connect it themselves.Claude Code
Then run /mcp inside Claude Code and follow the browser sign-in. From a shell, claude mcp login traceroot does the same.

Use an API key instead

Where sign-in is not possible (a script, CI, or a server with no browser), send a project API key as a bearer token. A key is tied to its project, so there is no project to pick.
With a key header set, Claude Code does not fall back to sign-in; remove the header to use sign-in instead.
Create a key under your project’s Settings → API Keys.

Try it

Ask the assistant:
  • “What were my slowest traces in the last hour?”
  • “Show me the findings from the last day and what triggered them.”
  • “Which alert rules do I have, and what are their thresholds?”
  • “What tables can I query with SQL? Then count my errors by model this week.”

Disconnect

Account settings → Connected assistants lists every assistant you have connected and the project each can read. Choose Disconnect and it loses access on its next request. Removing someone from a workspace also ends their assistants’ access to its projects.

Self-hosting

The MCP server is one more container in the production compose file. To turn on sign-in: Leave MCP_RESOURCE_URL blank to run key-only. To list the server in ChatGPT’s app directory, set MCP_OPENAI_APPS_CHALLENGE on mcp to the domain-verification token OpenAI gives you; the server then serves it at /.well-known/openai-apps-challenge. For Gemini’s connected apps, set MCP_GOOGLE_CONNECTED_APPS_TOKENS to the token from the Google Connected Console; it is served at /.well-known/google-connected-apps. The MCP server’s URL must be reachable by whoever connects: from the internet for Claude’s and ChatGPT’s web apps, or just your machine for Claude Code, Cursor and the Gemini CLI. Behind a proxy or load balancer, also set AUTH_TRUSTED_PROXY_CIDRS on web to the proxy’s address range. Assistants register themselves when they connect, and registration is rate limited per caller; without the setting, the caller’s address is taken from an X-Forwarded-For header the caller can write itself, so the limit cannot tell callers apart. The web container also needs outbound HTTPS. Claude, Claude Code and ChatGPT identify themselves by the URL of a small public document that names them and their sign-in callback, and web fetches it when they connect. If web cannot reach it, the connection fails with invalid_client.
The MCP server never holds your data or a login of its own. It forwards the assistant’s credential to the TraceRoot API, which checks the token, the project it was granted for, and that the connection is still allowed on every request.