Skip to content
apikeg avatar

API Keg — Trace Diet (HAR & Log Distiller)

com.apikeg/trace-diet

Compresses browser HAR captures and noisy logs into redacted, LLM-sized summaries.

CCM score
67 of 100
tools
2
transport
HTTP
last updated
Nov 30, 2026
Open website

Own this MCP server? Claim it

What it does

  • Reads network data with distill_har_capture, which drops static assets, analytics beacons, and preflights, then groups dynamic routes and surfaces 4xx/5xx failures and slowest endpoints
  • Scrubs credentials into [REDACTED] markers for Authorization, Cookie, Set-Cookie, X-Api-Key, token params, and JWTs, and infers compact TypeScript schemas from requests
  • Condenses stack traces and repetitive Docker, Kubernetes, plain-text, or NDJSON lines with cluster_logs, returning templates with occurrence counts and highlighted error clusters
  • Runs as a remote Streamable HTTP server; calls are pay-per-request via x402 in USDC on Base, or billed through a monthly API key
  • Designed for debugging sessions where raw HAR files or large log streams would overflow an agent's context window

Install

$ npx -y add-mcp https://trace-diet.apikeg.com/mcp --name trace-diet -y

Adds the server to every agent config it finds in this project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http trace-diet https://trace-diet.apikeg.com/mcp

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 2 tools

Verified live against the running server on Dec 1, 2026.

distill_har_captureParses Chrome DevTools / Playwright .har captures, strips static assets (.js/.css/fonts/images), analytics beacons, and OPTIONS preflights, scrubs credentials (Authorization, Cookie, Set-Cookie, X-Api-Key, token params, JWTs) into [REDACTED:<type>], groups dynamic :id/:uuid ro...10 params

Parses Chrome DevTools / Playwright .har captures, strips static assets (.js/.css/fonts/images), analytics beacons, and OPTIONS preflights, scrubs credentials (Authorization, Cookie, Set-Cookie, X-Api-Key, token params, JWTs) into [REDACTED:<type>], groups dynamic :id/:uuid ro...

Parameters* required
allowedHostsarray
Optional hostname allowlist (e.g. ['api.acme.com']) to isolate target traffic.
harobject
Parsed HAR 1.2 JSON object containing log.entries (exported from Chrome DevTools, Playwright, or mitmproxy).
harJsonstring
Raw serialized .har JSON text when passing unparsed file contents directly.
includeOptionsPreflightboolean
Keep CORS OPTIONS preflight requests. Defaults to false.default: false
includeStaticAssetsboolean
Keep static asset requests (.js, .css, .woff2, .png, .svg, .ico, images/fonts). Defaults to false.default: false
includeTelemetryboolean
Keep analytics and telemetry beacons (Google Analytics, Segment, Datadog, Sentry, Mixpanel). Defaults to false.default: false
inferSchemasboolean
Infer compact TypeScript interfaces/types for JSON request and response payloads across endpoint calls.default: true
maxFailureBodyCharsinteger
Maximum characters retained per 4xx/5xx/network failure body snippet.default: 512
maxSlowestEndpointsinteger
Maximum number of slowest endpoints ranked by p95 latency.default: 10
redactSecretsboolean
Scrub Authorization, Cookie, Set-Cookie, X-Api-Key, api_key/token query params, and JWTs into [REDACTED:<type>].default: true
cluster_logsGroups multi-line stack traces and repetitive plain-text, Docker/Kubernetes, or NDJSON log lines into parameterized templates with occurrence counts and highlighted error clusters. Pricing: $0.002 base (up to $0.008 max ($0.002 base + $0.001 per 2,000 log lines, capped at $0.0...7 params

Groups multi-line stack traces and repetitive plain-text, Docker/Kubernetes, or NDJSON log lines into parameterized templates with occurrence counts and highlighted error clusters. Pricing: $0.002 base (up to $0.008 max ($0.002 base + $0.001 per 2,000 log lines, capped at $0.0...

Parameters* required
linesarray
Pre-split array of log lines (alternative to passing a single 'logs' string).
logsstring
Raw plain-text, Docker/Kubernetes CRI, or newline-delimited JSON (ndjson) log stream.
maxClustersinteger
Maximum distinct log templates maintained before routing outliers to overflow.default: 300
maxReturnedClustersinteger
Maximum ranked clusters returned in the response payload.default: 100
maxStackTraceCharsinteger
Maximum characters retained per cluster sampleStackTrace.default: 1500
similarityThresholdnumber
Token-similarity threshold [0.2-1.0] required to merge a log line into an existing template.default: 0.6
treeDepthinteger
Grouping depth for leading fixed tokens (3-8).default: 4

Details

Website
trace-diet.apikeg.com/llms.txt
Category
DevOps & Cloud
Transport
HTTP
Registry
MCP registry, active
Resources
3
Prompts
2
Tools verified
Dec 1, 2026

More from apikeg

All 12

Similar to API Keg — Trace Diet (HAR & Log Distiller)

More DevOps & Cloud