Reduces log files for AI consumption — 50-90% token reduction via 18 deterministic transforms.
Log MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Reduces log files for AI consumption — 50-90% token reduction via 18 deterministic transforms.
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.
Once Log is connected, these are the calls the assistant has available:
Domain-specific — pip installs, Docker layers, HTTP access logs, retry blocks, log envelopes each have dedicated collapsersSupports — Java, Python, Node.js, .NET, GoFile — path workflow** — the MCP tool accepts file paths so raw logs never enter the AI's context. Only reduced output crosses into the conversationlogreducer on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
You will need one environment variable: ANTHROPIC_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Log's toolset — Domain-specific, Supports, File — is a fair guide to whether it matches your workflow. It is maintained by imankha; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| Domain-specific | pip installs, Docker layers, HTTP access logs, retry blocks, log envelopes each have dedicated collapsers |
| Supports | Java, Python, Node.js, .NET, Go |
| File | path workflow** — the MCP tool accepts file paths so raw logs never enter the AI's context. Only reduced output crosses into the conversation. |
{
"mcpServers": {
"log-reducer": {
"command": "npx",
"args": ["-y", "logreducer"],
"env": {
"ANTHROPIC_API_KEY": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| ANTHROPIC_API_KEY | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.