Log MCP Server

Reduces log files for AI consumption — 50-90% token reduction via 18 deterministic transforms.

Local serverstdioPython

What is the Log MCP Server?

Reduces log files for AI consumption — 50-90% token reduction via 18 deterministic transforms.

What you get

Your AI coding agent is spending thousands of tokens reading raw logs — DEBUG spam, health checks, duplicate lines, framework stack frames, UUIDs. Those tokens are gone for the rest of the session. The agent has less room to think, generates worse code, and hits its context limit faster.

  • Noise filtered — — health checks, heartbeats, progress bars removed (DEBUG/TRACE lines kept — the AI chooses when to exclude them via level filter)
  • Stack traces folded — — 80 frames → your code frames + [... N framework frames omitted ...]
  • Repeated lines collapsed — — 6 similar lines → one template with varying values listed
  • Log prefixes factored — — 8 lines sharing timestamp - module - LEVEL → 1 header + indented messages
  • Repeating blocks detected — — 5 identical 3-line blocks → 1 block + count
  • IDs shortened — — UUIDs, hex strings, JWTs, tokens → $1, $2, ..

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.

How to install the Log MCP Server

{
  "mcpServers": {
    "log-reducer": {
      "command": "npx",
      "args": ["-y", "logreducer"],
      "env": {
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
ANTHROPIC_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Log to Domain-specific.”
  • “Use Log to Supports.”
  • “Use Log to File.”

Frequently asked questions

Reduces log files for AI consumption — 50-90% token reduction via 18 deterministic transforms. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.