MCP Servers

A collection of Model Context Protocol servers, templates, tools and more.

MCP Proxy with tool filtering for Claude Code

Created 1/8/2026
Updated 1 day ago
Repository documentation and setup instructions
mcproxy icon

mcproxy

MCP Proxy with Tool Filtering for Claude Code

Intercepts MCP server requests and filters tools based on configuration to reduce token consumption.

License NPM

InstallationUsageConfigurationHow It Works


🎥 Demo

https://github.com/user-attachments/assets/549f05da-75e2-47b8-b100-9aa3b5f1ccec

🚀 Installation

run directly with npx (recommended):

npx @team-attention/mcproxy <upstream-command>

Or install globally:

npm install -g @team-attention/mcproxy

🛠 Usage

Basic Usage

Wrap your MCP server command with mcproxy:

mcproxy npx -y @modelcontextprotocol/server-filesystem /path/to/dir

With Claude Code (.mcp.json)

Configure your .mcp.json to use mcproxy as a wrapper. This allows you to control which tools are exposed to Claude.

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y", "@team-attention/mcproxy",
        "--",
        "npx", "-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"
      ]
    },
    "linear": {
      "command": "npx",
      "args": [
        "-y", "@team-attention/mcproxy",
        "--",
        "npx", "-y", "mcp-remote", "https://mcp.linear.app/mcp",
        "--header", "Authorization: Bearer ${LINEAR_API_KEY}"
      ]
    }
  }
}

⚙️ Configuration

mcproxy automatically creates a .mcproxy.json file in your workspace to manage tool settings.

{
  "version": "1.0",
  "servers": {
    "linear-mcp@1.0.0": {
      "tools": {
        "list_issues": true,
        "create_issue": true,
        "delete_issue": false
      }
    }
  }
}
  • Auto-registration: Tools are automatically added to the config on first use (default: true).
  • Disable Tools: Set any tool to false to block it.
  • Server Identity: Keys are derived from serverInfo.name@version in the MCP initialize response.

🧩 How It Works

graph LR
    A[Claude Code] <-->|stdio| B(mcproxy)
    B <-->|subprocess| C[MCP Server]
    B -.-> D[.mcproxy.json]
    style B fill:#f9f,stroke:#333,stroke-width:2px
  1. Intercept: mcproxy intercepts the MCP initialize response to identify the server.
  2. Filter: On tools/list, it filters out tools marked as false in .mcproxy.json.
  3. Block: On tools/call, it prevents execution of disabled tools.

⚡ Options

| Option | Description | | ----------------- | ----------------------------------------------------------------------- | | --config <path> | Path to workspace root for .mcproxy.json (default: current directory) |

🐞 Debugging

Set DEBUG=1 to enable verbose logging for troubleshooting:

DEBUG=1 mcproxy npx -y @some/mcp-server

License

MIT

Quick Setup
Installation guide for this server

Install Package (if required)

npx @modelcontextprotocol/server-mcproxy

Cursor configuration (mcp.json)

{ "mcpServers": { "team-attention-mcproxy": { "command": "npx", "args": [ "team-attention-mcproxy" ] } } }