原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Tracelane MCP

作者:tracelane版本 0.4.0i★ 0i在你的电脑上运行
注册名称io.github.tracelane/tracelane-mcp

安装方法

What it does

Read-only, tenant-scoped access to Tracelane agent traces and guardrail verdicts

  • Connects 在你的电脑上运行
  • Account or key Needs TRACELANE_API_KEY, CLICKHOUSE_PASSWORD · 1 setting to fill in (TRACELANE_GATEWAY_URL)
  • Category 其他

安装

选择你使用的 AI 应用,然后复制设置。

通过 2/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 Tracelane MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRACELANE_GATEWAY_URL) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Tracelane MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Tracelane MCP 网站 ↗

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • TRACELANE_GATEWAY_URL Base URL of the Tracelane gateway. Validates TRACELANE_API_KEY, and — when CLICKHOUSE_URL is unset — is where every trace read goes. Must be https://…tracelane.dev outside development. · 默认值 https://gateway.tracelane.dev

    说明仍为英文原文。

  4. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  5. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "tracelane": {
          "command": "npx",
          "args": [
            "-y",
            "@tracelanedev/mcp"
          ],
          "env": {
            "TRACELANE_API_KEY": "your-value",
            "TRACELANE_GATEWAY_URL": "https://gateway.tracelane.dev",
            "CLICKHOUSE_PASSWORD": "your-value"
          }
        }
      }
    }

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 退出 Claude 再重新打开

  7. 试一试

    用 Tracelane MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Tracelane MCP,或回答中出现 Tracelane MCP 的工具名称,就表示连接成功

4 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • CLICKHOUSE_URL self-host only; when unset the server reads through the gateway. Set this to point the server at your own ClickHouse instead of Tracelane Cloud.
  • CLICKHOUSE_USER ClickHouse username. · 默认值 default
  • CLICKHOUSE_DB ClickHouse database holding the spans table. · 默认值 tracelane
  • TRACELANE_MCP_TRANSPORT Transport to serve. stdio (default) for desktop clients; http for the Streamable HTTP transport. · 默认值 stdio

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Tracelane MCP

Tracelane MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Tracelane MCP 的应用

  • 需要 Tracelane MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRACELANE_GATEWAY_URL) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 Tracelane MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRACELANE_GATEWAY_URL) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 Tracelane MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRACELANE_GATEWAY_URL) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 Tracelane MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRACELANE_GATEWAY_URL) · 需要先在电脑上安装 Node.js(只需一次)

B · 其他 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 Tracelane MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRACELANE_GATEWAY_URL) · 需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Tracelane MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Tracelane MCP 网站 ↗

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • TRACELANE_GATEWAY_URL Base URL of the Tracelane gateway. Validates TRACELANE_API_KEY, and — when CLICKHOUSE_URL is unset — is where every trace read goes. Must be https://…tracelane.dev outside development. · 默认值 https://gateway.tracelane.dev

    说明仍为英文原文。

  4. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  5. 粘贴这条命令并按 Enter

    claude mcp add --scope user tracelane --env TRACELANE_API_KEY=your-value --env TRACELANE_GATEWAY_URL=https://gateway.tracelane.dev --env CLICKHOUSE_PASSWORD=your-value -- npx -y @tracelanedev/mcp

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 Claude Code 中输入 /mcp

    应能看到 Tracelane MCP 在列表中并显示已连接

  7. 试一试

    用 Tracelane MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Tracelane MCP,或回答中出现 Tracelane MCP 的工具名称,就表示连接成功

4 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • CLICKHOUSE_URL self-host only; when unset the server reads through the gateway. Set this to point the server at your own ClickHouse instead of Tracelane Cloud.
  • CLICKHOUSE_USER ClickHouse username. · 默认值 default
  • CLICKHOUSE_DB ClickHouse database holding the spans table. · 默认值 tracelane
  • TRACELANE_MCP_TRANSPORT Transport to serve. stdio (default) for desktop clients; http for the Streamable HTTP transport. · 默认值 stdio

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 Tracelane MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRACELANE_GATEWAY_URL) · 需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Tracelane MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Tracelane MCP 网站 ↗

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • TRACELANE_GATEWAY_URL Base URL of the Tracelane gateway. Validates TRACELANE_API_KEY, and — when CLICKHOUSE_URL is unset — is where every trace read goes. Must be https://…tracelane.dev outside development. · 默认值 https://gateway.tracelane.dev

    说明仍为英文原文。

  4. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  5. 填写你的密钥

    在 Tracelane MCP 的设置中,TRACELANE_API_KEY, CLICKHOUSE_PASSWORD, TRACELANE_GATEWAY_URL 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 Cursor 中以 Agent 模式打开 AI 聊天

  7. 试一试

    用 Tracelane MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Tracelane MCP,或回答中出现 Tracelane MCP 的工具名称,就表示连接成功

4 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • CLICKHOUSE_URL self-host only; when unset the server reads through the gateway. Set this to point the server at your own ClickHouse instead of Tracelane Cloud.
  • CLICKHOUSE_USER ClickHouse username. · 默认值 default
  • CLICKHOUSE_DB ClickHouse database holding the spans table. · 默认值 tracelane
  • TRACELANE_MCP_TRANSPORT Transport to serve. stdio (default) for desktop clients; http for the Streamable HTTP transport. · 默认值 stdio

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 Tracelane MCP 的密钥(在开发者网站创建) · 需要填写 1 项设置(TRACELANE_GATEWAY_URL) · 需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Tracelane MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Tracelane MCP 网站 ↗

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • TRACELANE_GATEWAY_URL Base URL of the Tracelane gateway. Validates TRACELANE_API_KEY, and — when CLICKHOUSE_URL is unset — is where every trace read goes. Must be https://…tracelane.dev outside development. · 默认值 https://gateway.tracelane.dev

    说明仍为英文原文。

  4. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  5. 填写你的密钥

    在 Tracelane MCP 的设置中,TRACELANE_API_KEY, CLICKHOUSE_PASSWORD, TRACELANE_GATEWAY_URL 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 VS Code 中以 Agent 模式打开 AI 聊天

  7. 试一试

    用 Tracelane MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Tracelane MCP,或回答中出现 Tracelane MCP 的工具名称,就表示连接成功

4 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • CLICKHOUSE_URL self-host only; when unset the server reads through the gateway. Set this to point the server at your own ClickHouse instead of Tracelane Cloud.
  • CLICKHOUSE_USER ClickHouse username. · 默认值 default
  • CLICKHOUSE_DB ClickHouse database holding the spans table. · 默认值 tracelane
  • TRACELANE_MCP_TRANSPORT Transport to serve. stdio (default) for desktop clients; http for the Streamable HTTP transport. · 默认值 stdio

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Tracelane MCP 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user tracelane --env TRACELANE_API_KEY=your-value --env TRACELANE_GATEWAY_URL=https://gateway.tracelane.dev --env CLICKHOUSE_PASSWORD=your-value -- npx -y @tracelanedev/mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "tracelane": {
      "command": "npx",
      "args": [
        "-y",
        "@tracelanedev/mcp"
      ],
      "env": {
        "TRACELANE_API_KEY": "your-value",
        "TRACELANE_GATEWAY_URL": "https://gateway.tracelane.dev",
        "CLICKHOUSE_PASSWORD": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "tracelane": {
      "command": "npx",
      "args": [
        "-y",
        "@tracelanedev/mcp"
      ],
      "env": {
        "TRACELANE_API_KEY": "your-value",
        "TRACELANE_GATEWAY_URL": "https://gateway.tracelane.dev",
        "CLICKHOUSE_PASSWORD": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "tracelane": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tracelanedev/mcp"
      ],
      "env": {
        "TRACELANE_API_KEY": "your-value",
        "TRACELANE_GATEWAY_URL": "https://gateway.tracelane.dev",
        "CLICKHOUSE_PASSWORD": "your-value"
      }
    }
  }
}

需要你填写的值

  • TRACELANE_API_KEY 机密 必填 env
    Tracelane API key (tlane_…). Resolved to a tenant once at startup via the gateway's /v1/auth/whoami; the server refuses to start if the key is rejected. Also the credential used to read trace data th…
  • TRACELANE_GATEWAY_URL 必填 env
    Base URL of the Tracelane gateway. Validates TRACELANE_API_KEY, and — when CLICKHOUSE_URL is unset — is where every trace read goes. Must be https://…tracelane.dev outside development.
  • CLICKHOUSE_URL env
    self-host only; when unset the server reads through the gateway. Set this to point the server at your own ClickHouse instead of Tracelane Cloud.
  • CLICKHOUSE_USER env
    ClickHouse username.
  • CLICKHOUSE_PASSWORD 机密 必填 env
    ClickHouse password.
  • CLICKHOUSE_DB env
    ClickHouse database holding the spans table.
  • TRACELANE_MCP_TRANSPORT env
    Transport to serve. stdio (default) for desktop clients; http for the Streamable HTTP transport.

说明仍为英文原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
35/周
许可证i
未注明许可证
连接方式
在你的电脑上运行
最新版本i
0.4.0
分类i
其他
发布到注册中心i
2026年10月10日
代码最后更新i
2026年10月13日
作者
tracelane
软件包
npm: @tracelanedev/mcp
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月15日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 tracelane 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于33天前

  • ! 注意

    有许可证

    GitHub 无法识别许可证类型;请打开文件自行查看

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

尚未检查

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 19860 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 19860 个服务器的 55% 更新
  • 基础检查结果等于或优于此分类中其他 19860 个服务器的 45%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Tracelane MCP 安全吗?

它在 3 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:TRACELANE_API_KEY, CLICKHOUSE_PASSWORD

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于33天前,最新版本(0.4.0)于36天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.

作者:koala73广泛使用★ 9.1万昨天更新

在云端运行✓ 服务方 · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

作者:openstatusHQ广泛使用★ 92652个月前更新

在云端运行✓ 服务方 · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

作者:JanDeDobbeleer广泛使用★ 2.4万 整个仓库的星标26天前更新

在云端运行✓ 服务方 · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

作者:Klavis-AI正在增长★ 582814个月前更新

在云端运行仓库已归档✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

作者:jitsucom广泛使用★ 51354个月前更新

在云端运行✓ 服务方 · jitsu.com
  • World Monitor — 在云端运行,无需安装 · 不需要密钥
  • openstatus — 在云端运行,无需安装 · 不需要密钥
  • Oh My Posh Validator — 在云端运行,无需安装 · 不需要密钥
  • Strata — 在云端运行,无需安装 · 不需要密钥
  • Jitsu — 在云端运行,无需安装 · 不需要密钥

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

@tracelanedev/mcp — Tracelane MCP Server

Read-only MCP server exposing Tracelane trace data to any MCP-compatible client — Claude Desktop, Claude Code, Cursor, or any agent using the Model Context Protocol.

On npm since 2026-09-07: npx @tracelanedev/mcp installs the published version; the

config blocks below work as written. From-source is still documented under self-hosting.

The same run submits apps/mcp/server.json to the MCP registry; the name it will be listed under is io.github.tracelane/tracelane-mcp.

Default mode reads through the gateway — the same tenant-scoped /v1/* routes the dashboard uses — with just TRACELANE_API_KEY and TRACELANE_GATEWAY_URL. That is the Cloud-tenant path and needs no ClickHouse credentials. Set CLICKHOUSE_URL to switch to self-host mode, reading ClickHouse directly instead — see Self-hosting.

Quick start

Cloud (Tracelane-hosted tenant)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS), %APPDATA%\Claude\claude_desktop_config.json (Windows), or .mcp.json at your project root for Claude Code:

{

"mcpServers": { "tracelane": { "command": "npx", "args": ["@tracelanedev/mcp"], "env": { "TRACELANE_API_KEY": "tlane_YOUR_KEY", "TRACELANE_GATEWAY_URL": "https://gateway.tracelane.dev" } } } }

No CLICKHOUSE_URL — its absence is what selects gateway mode. Every read goes through the gateway's existing tenant-scoped routes, so a key from another tenant, or one lacking the read scope, gets a clear tool error rather than an empty result.

Run from a clone

Swap the two launch keys for a path into your clone — every env key is unchanged:

"command": "node",

"args": ["/path/to/tracelane/apps/mcp/dist/index.js"]

Build it first with pnpm install && pnpm --filter @tracelanedev/mcp build.

The Streamable HTTP transport ships in this package (TRACELANE_MCP_TRANSPORT=http, see Transports) — run it yourself. There is no hosted endpoint: https://mcp.tracelane.dev does not resolve, so a url-style client entry has nothing to connect to.

Self-host (ClickHouse)

Set CLICKHOUSE_URL to read ClickHouse directly instead of the gateway — for a self-hosted or local Tracelane stack:

{

"mcpServers": { "tracelane": { "command": "npx", "args": ["@tracelanedev/mcp"], "env": { "TRACELANE_API_KEY": "tlane_YOUR_KEY", "TRACELANE_GATEWAY_URL": "https://gateway.tracelane.dev", "CLICKHOUSE_URL": "http://localhost:8123", "CLICKHOUSE_USER": "default", "CLICKHOUSE_PASSWORD": "…" } } } }

TRACELANE_GATEWAY_URL is still needed in self-host mode — it is where TRACELANE_API_KEY is validated (/v1/auth/whoami) even though trace reads go to ClickHouse instead.

Tools

ToolDescription
list_tracesList recent traces for the tenant. Params: limit (default 20), model_filter, has_error
get_traceGet all spans for a trace. Params: trace_id
get_spanGet full details for a span including all LLM GenAI attributes. Params: span_id, trace_id — required in Cloud (gateway) mode (no span-by-id gateway route; the span is picked out of the trace's span list), optional in self-host mode
search_tracesFree-text search across span names and attributes. Params: query (gateway mode requires ≥4 chars), model_filter?, has_error?, limit. Gateway mode returns content-filtered trace summaries; self-host mode returns per-span match detail (matched_spans, first_match_*)
explain_guardrail_blockHuman-readable explanation of a guardrail signal. Self-host mode: trace_id + span_id (a detection-layer AFT flag on a recorded span). Gateway mode: EITHER correlation_id (from a block's 403 body, for a request blocked pre-flight with no trace) OR trace_id + span_id (same AFT-flag case, still available since spans carry the flag either way)
list_evalsList every pain-point + fault-tolerance eval id and count, read from the manifest bundled at build time from evals/. Params: none
get_eval_resultRead a specific eval's assertions. Needs a repo checkout for the source; says so when there is none. Params: eval_id
replay_traceReturn a recorded trace as-is (ordered spans with LLM/tool attributes) for offline step-through. Read-only — it does not re-execute any model or tool. Params: trace_id, include_tool_calls?

Example usage in Claude

Once connected, you can ask Claude:

"Show me the last 5 traces that had a guardrail block, and explain what fired."

"Compare the latency of traces using claude-haiku-4-5 vs claude-sonnet-4-6 in the last hour."

"Show me the assertions that eval makes."

Auth

TRACELANE_API_KEY environment variable passed via the MCP env block. The server resolves the tenant from the API key — tenant_id is never accepted as a tool argument.

Transports

TransportHow to select itWhen to use
StdiodefaultLocal use — Claude Desktop, Claude Code, Cursor. Zero network exposure.
Streamable HTTPTRACELANE_MCP_TRANSPORT=http TRACELANE_MCP_PORT=8081Self-run remote deployments. Every request must carry Authorization: Bearer ; the tenant is resolved per request through the gateway. No hosted endpoint is operated for you.

Security invariants

  • Read-only. No write tools are registered — the tool surface is the eight listed above, all of which only read.
  • Tenant isolation. Gateway mode: every read is a tenant-scoped gateway route (crates/gateway/src/trace_reads.rs) — the tenant comes from the bearer's claims server-side, this server never sends or sees a tenant id. Self-host mode: every ClickHouse query includes WHERE tenant_id = {tenantId: String} (parameter-bound, never string-interpolated).
  • `tenant_id` is never a tool parameter in either mode. Stdio resolves it once at startup from TRACELANE_API_KEY via the gateway and refuses to start if the key is rejected; HTTP resolves it per request from the bearer token and binds it through AsyncLocalStorage.
  • A non-2xx gateway response is a tool error, never an empty result. A revoked or wrong-tenant key, a key missing the read scope, or another tenant's trace id all read back as isError: true carrying the gateway's own status and message — not [].
  • No eval id reaches the filesystem. get_eval_result looks the id up in the bundled manifest and uses the manifest's path, so a traversal string cannot name a file.
  • `TRACELANE_GATEWAY_URL` is SSRF-checked before any bearer is sent to it, in both modes: https-only outside development, tracelane.dev hosts only, private/CGNAT/IMDS ranges refused.

Operator note: span content is returned as stored. Scope the API key you give this server to workspaces whose spans you are comfortable handing to the connected model.

Self-hosting

# From source, against your own stack

pnpm dev:mcp

No container image is published for the MCP server — ghcr.io/tracelane/mcp does not exist. Run it from source or from the npm package.

Stack

  • @modelcontextprotocol/sdk — official MCP SDK (stdio + Streamable HTTP)
  • @clickhouse/client — parameter-bound ClickHouse queries
  • TypeScript 5.5 strict, noUncheckedIndexedAccess: true
  • Biome for lint + format

License

Apache 2.0 — see LICENSE.