Llmtrim MCP Server

MCP server and proxy that compresses LLM prompts, tool output, and replies to cut token cost.

Remote serverstreamable-httpPython

What is the Llmtrim MCP server?

Llmtrim MCP server exists for a simple reason — assistants are far more useful when they can act on Llmtrim directly instead of describing what you should do. MCP server and proxy that compresses LLM prompts, tool output, and replies to cut token cost.

What you get

Local proxy that compresses LLM API traffic so you pay less. Same answers, smaller bill.

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

What the assistant can call

Once Llmtrim is connected, these are the calls the assistant has available:

  • Situation — Command
  • Diagnose — llmtrim doctor · repair with doctor --fix
  • Waste — What happens
  • Stage — What it does
  • tool-output — Lossless template fold first, then window logs · diffs · grep · dumps down to errors / changes / matches; shell-capable agents can restore omitted
  • skeletonization — tree-sitter keeps relevant function bodies, drops the rest to signatures (14 languages)
  • dedup — Collapse duplicate + near-duplicate lines (prose only)
  • multimodal — Downscale images to the provider's resolution cap
  • Feature — What you get
  • Guard — Blocks one turn if a cold-cache resume would rewrite a huge context (and bill for it)
  • Language — Install
  • Rust — cargo add llmtrim-core

Configuration and credentials

You will need one environment variable: ANTHROPIC_AUTH_TOKEN. 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.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Llmtrim.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the llmtrim mcp server does with a few real requests.

Choosing this one

This sits in the monitoring and observability group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Llmtrim's toolset — Situation, Diagnose, Waste and 11 more — is a fair guide to whether it matches your workflow. It is maintained by fkiene; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Llmtrim's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
SituationCommand
Diagnosellmtrim doctor · repair with doctor --fix
WasteWhat happens
StageWhat it does
tool-outputLossless template fold first, then window logs · diffs · grep · dumps down to errors / changes / matches; shell-capable agents can restore omitted first-arrival results with llmtrim recall
skeletonizationtree-sitter keeps relevant function bodies, drops the rest to signatures (14 languages)
dedupCollapse duplicate + near-duplicate lines (prose only)
multimodalDownscale images to the provider's resolution cap
FeatureWhat you get
GuardBlocks one turn if a cold-cache resume would rewrite a huge context (and bill for it)
LanguageInstall
Rustcargo add llmtrim-core
Rubygem install llmtrim
Kotlinimplementation("io.github.fkiene:llmtrim:0.12.3")

How to install the Llmtrim MCP server

```json
{
  "mcpServers": {
    "llmtrim": { "command": "llmtrim", "args": ["mcp"] }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
ANTHROPIC_AUTH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Llmtrim to Situation.
  • Use Llmtrim to Diagnose.
  • Use Llmtrim to Waste.

Frequently asked questions

It connects Llmtrim to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Situation, Diagnose, Waste, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Llmtrim directly.