Zero Dependencies · Node >= 20 · MIT Core

Trace Every MCP Tool Call & Stop Secret Leaks at the Stdio Boundary

Wrap any Model Context Protocol (MCP) server in Cursor, Claude Desktop, or custom AI agents—export standard OpenTelemetry (OTLP) spans to SigNoz or Jaeger and redact/block leaked credentials with zero upstream code changes.

Get Pro Production Kit — $15 View MIT Source on GitHub
npx -y github:gyozomongo/mcp-otel-guard --mode redact --otlp http://localhost:4318 --service mcp-fs -- \
  npx -y @modelcontextprotocol/server-filesystem .

OTLP/HTTP Native

Emits standard /v1/traces spans with mcp.tool.name, mcp.duration_ms, and error codes using Node's native fetch.

Secret-Leak Guard

Recursively inspects JSON-RPC params and outputs in audit, redact, or block mode before secrets reach your LLM context.

Token & p95 Reports

Writes clean JSONL logs and aggregates per-tool p50/p95 latency, errors, and token overhead via mcp-otel-guard report.

Free MIT Core vs. Pro Production Kit ($15 one-time)

CapabilityMIT Core (Free)Pro Production Kit ($15)
Transparent stdio JSON-RPC proxy & OTLP exporterIncludedIncluded
Built-in 5 core secret rules (AWS, GitHub, LLM keys, PEM, JWT)IncludedIncluded
20+ Enterprise secret, DB URI, path-traversal & destructive-cmd rulesBring your ownIncluded (enterprise-rules.json)
Pre-built SigNoz v4 Dashboard JSON (latency, errors, tokens, leaks)—Included (signoz-mcp-dashboard.json)
GitHub Actions CI trace & p95 latency regression gate—Included (ci-replay-gate.mjs + workflow)
Docker Compose OTel Collector + Jaeger/SigNoz starter config—Included
Get Pro Production Kit on Gumroad ($15)

Technical Guides