# llmtrim

> llmtrim is an open-source MCP server for ai models and llm tooling. MCP server and proxy that compresses LLM prompts, tool output, and replies to cut token cost. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/fkiene/llmtrim
- **MCP Registry name:** io.github.fkiene/llmtrim
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add llmtrim -- npx -y @llmtrim/cli
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "llmtrim": {
      "command": "npx",
      "args": [
        "-y",
        "@llmtrim/cli"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "llmtrim": {
      "command": "npx",
      "args": [
        "-y",
        "@llmtrim/cli"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "llmtrim": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@llmtrim/cli"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "llmtrim": {
      "command": "npx",
      "args": [
        "-y",
        "@llmtrim/cli"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "llmtrim": {
      "command": "npx",
      "args": [
        "-y",
        "@llmtrim/cli"
      ]
    }
  }
}
```

## FAQ

### Is llmtrim free?

Yes. llmtrim is open source, so you can use and self-host it for free.

### How do I add llmtrim to Claude Code?

Run this command in your terminal: claude mcp add llmtrim -- npx -y @llmtrim/cli

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/llmtrim
