# slimproof

> slimproof is an open-source MCP server for developer tools. Trims bloated MCP tool descriptions to cut prompt tokens, with checks that tools still. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/rounak7721/slimproof
- **MCP Registry name:** io.github.Rounak7721/slimproof
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

Every MCP server sends its full tool list to the model at the start of each session, and verbose descriptions can eat a large share of the context window before any work begins. slimproof ranks the tools in your MCP configs by token cost, flags common padding such as filler openings, repeated sentences and near-duplicate tools, and then helps Claude rewrite the descriptions.

A guard compares every rewrite against the original and rejects any change to tool names, parameters or types, so only the wording of the description and title can change. A local proxy then serves the slimmed list to Claude Code while passing tool calls and all other messages through untouched.

It suits developers who run several MCP servers in Claude Code and want to reduce per-session overhead. The project also publishes benchmark results from six popular servers, reporting token savings alongside tool-selection accuracy.

## Features

- **Token cost audit:** Ranks every tool in your MCP configs by how many tokens its definition uses.
- **Bloat detection:** Flags filler openings, repeated sentences, extra markdown and very long descriptions.
- **Guarded rewrites:** Rejects any rewrite that changes tool names, parameters or types.
- **Transparent proxy:** Serves slim descriptions to Claude Code while passing other MCP messages unchanged.
- **Backups and revert:** Saves a config backup before each change and can restore the original tools.
- **CI budget check:** Exits with an error code when tools exceed a set share of the context window.

## Good for

- Reducing the context cost of several MCP servers loaded in Claude Code
- Finding which tools in a large MCP server contribute the most tokens
- Enforcing a token budget for MCP tool definitions in a CI pipeline
- Comparing original and slimmed tool descriptions before adopting them

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add slimproof -- uvx slimproof
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "slimproof": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add slimproof -- uvx slimproof
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.slimproof]
command = "uvx"
args = ["slimproof"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user slimproof uvx -- slimproof

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
```

## FAQ

### Does slimproof change tool names or parameters?

No. A guard checks each rewrite and only the description and title fields can change.

### Which servers can the proxy handle?

Local stdio servers in your own MCP configs. Plugin servers and remote HTTP servers are not yet supported by the proxy.

### Do I need an API key?

Not for basic audits, which use estimated token counts. Exact counts with --exact require ANTHROPIC_API_KEY.

### Is the tool free to use?

It is published under the MIT license.

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

Run this command in your terminal: claude mcp add slimproof -- uvx slimproof

### What are the best alternatives to slimproof?

The closest alternatives to slimproof are Mcpdiet, MCP Token Optimizer, slimmcp-proxy, Token Lens and Token Optimizer MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Mcpdiet](https://ai-powered.com/mcp/mcpdiet): Mcpdiet is an open-source MCP server for developer tools.
- [MCP Token Optimizer](https://ai-powered.com/mcp/mcp-token-optimizer-2): MCP Token Optimizer is an open-source MCP server for developer tools.
- [slimmcp-proxy](https://ai-powered.com/mcp/slimmcp-proxy): slimmcp-proxy is an open-source MCP server for developer tools.
- [Token Lens](https://ai-powered.com/mcp/token-lens-2): Token Lens is an open-source MCP server for developer tools.
- [Token Optimizer MCP](https://ai-powered.com/mcp/token-optimizer-mcp): Token Optimizer MCP is an MCP server for ai models and llm tooling.
- [MCP Checkup](https://ai-powered.com/mcp/mcp-checkup-2): MCP Checkup is an open-source MCP server for developer tools.
- [llmtrim](https://ai-powered.com/mcp/llmtrim): llmtrim is an open-source MCP server for ai models and llm tooling.
- [MoneyTools Slim](https://ai-powered.com/mcp/moneytools-slim): MoneyTools Slim is a freemium MCP server for ai models and llm tooling.

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