# TraceRoost

> TraceRoost is an open-source MCP server for developer tools. Local traces and cost tracking for Claude Code, Codex, Copilot and other coding agents. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Starting price:** $12 a month
- **Platforms:** Web, macOS, Windows, Linux, VS Code, CLI, API, Self-hosted
- **Website:** https://traceroost.com/install
- **Repository:** https://github.com/traceroost/core
- **MCP Registry name:** io.github.traceroost/traceroost
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

TraceRoost records what your coding agents do on your own machine: prompts, tool calls, token use, estimated cost and the files they touch. It reads the local log files that agents already write and can also receive live OpenTelemetry data, so history appears right after install.

Beyond usage charts, it flags runs that look stuck, such as repeated tool calls, oscillating edits or recurring errors, and offers a correction prompt you can paste into the session. An Advisor compares traces across projects and suggests additions to instruction files like CLAUDE.md or AGENTS.md.

An MCP server lets the agent itself query its recent sessions, cost and loop patterns before starting new work. Individual developers can use it for free; the optional TraceRoost Cloud adds a shared team view for linked machines, with counts and timings rather than code or prompts leaving the machine.

## Features

- **Local trace history:** Reads agent log files and databases automatically, so past sessions show up without configuration.
- **Live OpenTelemetry capture:** Receives span timing, time-to-first-token and per-tool latency from agents that export OTel.
- **Stuck-agent signals:** Sixteen named patterns such as repeated calls or recurring errors, each with a paste-ready correction prompt.
- **Cost estimates:** Estimates per-trace and per-day spend by agent and model for token-priced agents.
- **Instruction file advisor:** Suggests additions to CLAUDE.md or AGENTS.md based on files the agent keeps rediscovering.
- **Agent query server:** An MCP server that lets your coding agent check its own recent work and cost before starting a task.

## Good for

- Finding out which agent, model or repo is driving most of your coding spend
- Spotting loops where an agent repeats the same tool call or edit without progress
- Tightening your project instruction file based on where agents waste time
- Letting an agent review its own recent sessions before picking up a new task
- Sharing an org-wide view of coding agent cost and whether the work was committed

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add traceroost -- npx -y traceroost
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "traceroost": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add traceroost -- npx -y traceroost
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.traceroost]
command = "npx"
args = ["-y", "traceroost"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user traceroost npx -- -y traceroost

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "traceroost": {
      "command": "npx",
      "args": [
        "-y",
        "traceroost"
      ]
    }
  }
}
```

## FAQ

### Does TraceRoost send my code or prompts anywhere?

Traces stay on your machine. Only linked machines send per-trace counts, timings and hashed IDs to TraceRoost Cloud, not code, prompts or file names.

### Is the local tool free?

Yes. The local TraceRoost tool is free and open source and needs no account. Cloud plans are free for up to 3 developers, with Team seats at $12.00 per developer per month beyond that.

### Which agents does TraceRoost support?

Claude Code, Codex, GitHub Copilot, OpenCode, Cursor CLI and Antigravity CLI, with Antigravity support marked best effort.

### How do I install TraceRoost?

Use the VS Code extension, a desktop app for macOS, Windows or Linux, or the terminal with npx traceroost or Homebrew. A background service keeps OTel data from being lost.

### How do I add TraceRoost to Claude Code?

Run this command in your terminal: claude mcp add traceroost -- npx -y traceroost

### What are the best alternatives to TraceRoost?

The closest alternatives to TraceRoost are Agent Observability, TokenTrace, Agent Cost MCP, Kestrel and agent-strace.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent Observability](https://ai-powered.com/mcp/agent-observability): Agent Observability is an open-source MCP server for developer tools.
- [TokenTrace](https://ai-powered.com/mcp/tokentrace): TokenTrace is an open-source MCP server for developer tools.
- [Agent Cost MCP](https://ai-powered.com/mcp/agent-cost-mcp): Agent Cost MCP is an open-source MCP server for developer tools.
- [Kestrel](https://ai-powered.com/mcp/kestrel-2): Kestrel is a freemium MCP server for developer tools.
- [agent-strace](https://ai-powered.com/mcp/agent-strace): agent-strace is an open-source MCP server for developer tools.
- [Actvt](https://ai-powered.com/mcp/actvt): Actvt is a freemium MCP server for developer tools.
- [MCP Agent Trace Inspector](https://ai-powered.com/mcp/mcp-agent-trace-inspector): MCP Agent Trace Inspector is an MCP server for developer tools.
- [Widal.Code](https://ai-powered.com/mcp/widal-code): Widal.Code is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/traceroost
