# slimmcp-proxy

> slimmcp-proxy is an open-source MCP server for developer tools. Meta-MCP proxy that cuts tool-schema context by exposing three discovery tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/apexhive-hq/slimmcp-proxy
- **MCP Registry name:** io.github.apexhive-hq/slimmcp-proxy
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

Connecting an AI client to many MCP servers loads every upstream tool schema into the prompt up front. slimmcp-proxy sits between the client and those servers and presents only three meta-tools: one for BM25 keyword search across tools, one for inspecting a single tool's schema on demand, and one for invoking it. The project's own benchmark against 60 tools from three stdio servers reports a 97.86% drop in initial tools/list payload size.

Requests pass through a redactor that masks common credential formats and sensitive JSON keys before results reach the model, plus a local policy file with allow and deny glob rules, deny-overrides precedence, and per-tool call budgets. Local stdio upstreams get a minimal environment allowlist so host CI secrets are not inherited. Remote Streamable-HTTP and SSE upstreams are supported, and call metrics are stored in node:sqlite.

It suits developers who run several MCP servers in Claude Desktop, Claude Code, Cursor or Cline and want to save context tokens, or teams that want local guardrails on which tools an agent may call. Node.js 22.13 or later is required.

## Features

- **Progressive tool discovery:** Three meta-tools let a client search, inspect and invoke upstream tools without loading all schemas at startup.
- **BM25 tool search:** A built-in BM25 index ranks upstream tools against a natural-language query, optionally filtered by server.
- **Secret redaction:** Masks common API tokens, JWTs, bearer headers, PEM keys and sensitive JSON keys, failing closed at deep nesting.
- **Local policy enforcement:** Glob allow and deny rules, deny-overrides precedence and per-tool call budgets are defined in a policy file.
- **Isolated stdio environments:** Child processes receive only an allowlisted set of environment variables plus explicitly configured ones.
- **Usage metrics:** Bytes and tokens saved and proxy latency are recorded in a local SQLite store and viewable via a stats command.

## Good for

- Reduce the token cost of loading many MCP servers into one coding assistant
- Let an agent discover the right tool among dozens without reading every schema
- Restrict which upstream tools an agent can call with allow and deny rules
- Keep API keys and tokens from appearing in tool output sent to a model
- Measure how much context a multi-server MCP setup saves

## Install

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

```sh
claude mcp add slimmcp-proxy -- npx -y slimmcp-proxy
```

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": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "slimmcp-proxy": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

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 slimmcp-proxy -- npx -y slimmcp-proxy
```

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

```toml
[mcp_servers.slimmcp-proxy]
command = "npx"
args = ["-y", "slimmcp-proxy"]
```

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

```json
{
  "mcpServers": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user slimmcp-proxy npx -- -y slimmcp-proxy

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

```json
{
  "mcpServers": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

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": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

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": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

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": {
    "slimmcp-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "slimmcp-proxy"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 3 tools reads data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `discover_tools`: Searches upstream tools with BM25 by query, optional server and limit.
- `inspect_tool_schema` (name suggests: reads): Returns the schema for one upstream tool on a given server.
- `invoke_tool`: Calls an upstream tool with arguments, applying redaction and policy checks.

## FAQ

### How do I run slimmcp-proxy?

Use npx -y slimmcp-proxy serve with a config file listing your upstream servers, or build it from the GitHub repository with pnpm.

### Which Node.js version is required?

Node.js 22.13.0 or later, because it uses the built-in node:sqlite module without native addons.

### Which upstream transports are supported?

Local stdio servers and remote servers using Streamable-HTTP or SSE.

### Is slimmcp-proxy free to use?

It is released under the MIT license and is installed and run locally.

### How do I add slimmcp-proxy to Claude Code?

Run this command in your terminal: claude mcp add slimmcp-proxy -- npx -y slimmcp-proxy

### What are the best alternatives to slimmcp-proxy?

The closest alternatives to slimmcp-proxy are MCPProxy, slimproof, Context Proxy, MCP Slim Guard and mcp-anything.

## 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

- [MCPProxy](https://ai-powered.com/mcp/mcpproxy): MCPProxy is an open-source MCP server for developer tools.
- [slimproof](https://ai-powered.com/mcp/slimproof): slimproof is an open-source MCP server for developer tools.
- [Context Proxy](https://ai-powered.com/mcp/context-proxy): Context Proxy is an open-source MCP server for developer tools.
- [MCP Slim Guard](https://ai-powered.com/mcp/mcp-slim-guard): MCP Slim Guard is an open-source MCP server for security.
- [mcp-anything](https://ai-powered.com/mcp/mcp-anything): mcp-anything is an open-source MCP server for developer tools.
- [Tool Search Proxy](https://ai-powered.com/mcp/tool-search-proxy): Tool Search Proxy is a free MCP server for ai models and llm tooling.
- [Crabeye MCP Bridge](https://ai-powered.com/mcp/crabeye-mcp-bridge): Crabeye MCP Bridge is an open-source MCP server for developer tools.
- [My Cool Proxy](https://ai-powered.com/mcp/my-cool-proxy): My Cool Proxy is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/slimmcp-proxy
