mcp-agent-trace-inspector MCP Server

npm mcp-agent-trace-inspector package

Local serverstdioMIT

What is the mcp-agent-trace-inspector MCP Server?

mcp-agent-trace-inspector is an MCP project maintained in the dbsectrainer/mcp-agent-trace-inspector repository. The maintainer describes its purpose as “npm mcp-agent-trace-inspector package”. Read the project documentation for the complete scope.

Installation

The documented npm package is mcp-agent-trace-inspector. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

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_startbegin a new trace; returns a trace_id for subsequent calls
trace_steprecord one tool call step (inputs, outputs, optional token count and latency)
trace_endmark a trace as completed
list_traceslist stored traces with names, statuses, and timestamps
get_trace_summarytoken totals, step count, latency, and cost estimate for a trace
compare_tracesdiff two traces side by side (step counts, tokens, latency)
extract_reasoning_chainextract only reasoning/thinking steps from a trace
export_dashboardgenerate a self-contained single-file HTML dashboard with latency waterfall
export_otelexport one or all traces in OpenTelemetry OTLP JSON span format
export_compliance_logexport the compliance audit log as JSON or CSV, with optional date range filtering
configure_alertsconfigure alert rules on latency, error rate, or cost; fire to Slack or generic webhooks
set_retention_policyset how many days to keep traces (in-memory; must be called before apply_retention)
apply_retentionarchive traces older than the configured threshold; delete traces past 2x the threshold

How to install the mcp-agent-trace-inspector MCP Server

{
  "mcpServers": {
    "trace-inspector": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-agent-trace-inspector@latest"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.