Local proxy and MCP tools that compress prompts, history, tool output and code before they reach the LLM to cut token cost.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add llmtrim -- npx -y @llmtrim/cli~/.codex/config.toml
[mcp_servers.llmtrim]
command = "npx"
args = ["-y", "@llmtrim/cli"]
# codex mcp add llmtrim -- npx -y @llmtrim/cli~/.cursor/mcp.json
{
"mcpServers": {
"llmtrim": {
"command": "npx",
"args": [
"-y",
"@llmtrim/cli"
]
}
}
}.vscode/mcp.json
{
"servers": {
"llmtrim": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@llmtrim/cli"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"llmtrim": {
"command": "npx",
"args": [
"-y",
"@llmtrim/cli"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"llmtrim": {
"command": "npx",
"args": [
"-y",
"@llmtrim/cli"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"llmtrim": {
"command": "npx",
"args": [
"-y",
"@llmtrim/cli"
]
}
}
}