Skip to content
MCP server

slimproof

Trims bloated MCP tool descriptions to cut prompt tokens, with checks that tools still

Runs locally

slimproof is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
0.1.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add slimproof -- uvx slimproof

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

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

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

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add slimproof -- uvx slimproof

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "slimproof": {
      "command": "uvx",
      "args": [
        "slimproof"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

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

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About slimproof

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.

What it does

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

Pricing

Open source

Free, MIT licensed

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.

How AIPoweredBot checks servers