llmtrim

Level BLocal

Local proxy that compresses your LLM API requests so you pay less, with no change to the answers. Trims wasted tokens from prompts, history, tool output, and code before they're sent: -31% input / -74% output, measured live. Any provider, no extra model calls. Also an MCP server and embeddable library (Rust, Python, Ruby, Kotlin, Swift, JS/TS).

⭐ 276Development ToolsRustRepo ↗Updated 2026-11-12

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "llmtrim": {
      "command": "npx",
      "args": [
        "@llmtrim/cli"
      ]
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/fkiene/llmtrim

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "llmtrim": {
      "command": "npx",
      "args": [
        "@llmtrim/cli"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers