llmtrim MCP Server
fkiene/llmtrim
[](https://agentrank-ai.com/tool/fkiene--llmtrim/?utm_source=badge&utm_medium=readme&utm_campaign=agentrank_badge) 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).
claude mcp add agentrank -- npx -y agentrank-mcp-server Overview
fkiene/llmtrim is a Rust MCP server licensed under MPL-2.0. 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). Topics: agentic-coding, ai, anthropic, claude-code, cost-reduction, developer-tools, llm, llmops, mitm-proxy, openai, prompt, prompt-compression, prompt-engineering, proxy, rust, token-optimization, mcp.
Ranked #2124 out of 24846 indexed tools.
In the top 9% of all indexed tools.
Ecosystem
Score Breakdown
246 stars → growing community
Last commit 1mo ago → moderate activity
30/42 issues closed → decent issue management
5 contributors → small team
No dependents → no downstream usage
Weights: Freshness 20% · Issue Health 20% · Dependents 22% · Stars 10% · Contributors 8% · How we score →
How to Improve
Matched Queries
From the README
<p align="center">
</p>
<h1 align="center">llmtrim</h1>
<p align="center">
<strong>Local proxy that compresses LLM API traffic so you pay less. Same answers, smaller bill.</strong>
</p>
<p align="center">
<sub>
<b>−31% input · −74% output · −66% round-trip cost</b>
· 112 live A/B cases · ~5 ms/call · no model to load
</sub>
</p>
<p align="center">
<sub>
Using <b>Claude Code</b>? One install also gets you <a href="#claude-code"><code>/sub</code></a>
to serve it through CLIProxyAPI.
</sub>
</p>
<p align="center">
<sub>Proxy · CLI · MCP · library (Python · Ruby · Swift · Kotlin · JS/WASM)</sub>
</p>
<p align="center">
<picture>
<source media="(prefers-color-scheme: light)" srcset="assets/status-watch-light.svg">
</picture>
</p>
<p align="center">
<a href="https://github.com/fkiene/llmtrim/actions/workflows/ci.yml"></a>
<a href="LICENSE"></a>
<a href="https://crates.io/crates/llmtrim"></a>
<a href="https://www.npmjs.com/packag Read full README on GitHub → Get the weekly AgentRank digest
Top movers, new tools, ecosystem insights — straight to your inbox.