Trace MCP Server

Structured execution trace and span logging for AI agents

Local serverstdio

What is the Trace MCP Server?

Structured execution trace and span logging for AI agents

What you get

MCP server for writing structured traces, spans, and decisions. The only write-path observability MCP — all 9 existing observability MCPs are read-only.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
trace_tool_callafter each tool invocation
trace_decisionat each decision point
trace_start
trace_spanCreate a span within a trace. Spans can be nested via parent_span_id.
trace_endComplete a trace. Auto-calculates total duration, event counts, and span counts.
get_traceRetrieve a complete trace tree with all spans, events, tool calls, and decisions.
search_tracesReturns: Matching traces sorted by recency with summary stats.

How to install the Trace MCP Server

{
  "mcpServers": {
    "trace-forge": {
      "command": "npx",
      "args": ["-y", "trace-forge-mcp"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • “Use Trace to trace tool call.”
  • “Use Trace to trace decision.”
  • “Use Trace to trace start.”

Frequently asked questions

Structured execution trace and span logging for AI agents Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.