Skip to content

Local proxy gives Cursor, Claude & co 1 K tools with auto-sandbox security

License

Notifications You must be signed in to change notification settings

gabornyergesX/mcpproxy-go

 
 

Repository files navigation

MCPProxy – Smart Proxy for AI Agents

🌐 Visit mcpproxy.app

System Tray - Upstream Servers      System Tray - Quarantine Management
System Tray - Upstream Servers          System Tray - Quarantine Management

MCPProxy is an open-source desktop application that super-charges AI agents with intelligent tool discovery, massive token savings, and built-in security quarantine against malicious MCP servers.

Why MCPProxy?

  • Scale beyond API limits – Federate hundreds of MCP servers while bypassing Cursor's 40-tool limit and OpenAI's 128-function cap.
  • Save tokens & accelerate responses – Agents load just one retrieve_tools function instead of hundreds of schemas. Research shows ~99 % token reduction with 43 % accuracy improvement.
  • Advanced security protection – Automatic quarantine blocks Tool Poisoning Attacks until you manually approve new servers.
  • Works offline & cross-platform – macOS, Windows, and Linux binaries with a native system-tray UI.

Quick Start

1. Install

macOS (Recommended - DMG Installer):

Download the latest DMG installer for your architecture:

  • Apple Silicon (M1/M2): Download DMGmcpproxy-*-darwin-arm64.dmg
  • Intel Mac: Download DMGmcpproxy-*-darwin-amd64.dmg

Alternative install methods:

macOS (Homebrew):

brew install smart-mcp-proxy/mcpproxy/mcpproxy

Anywhere with Go 1.22+:

go install github.com/smart-mcp-proxy/mcpproxy-go/cmd/mcpproxy@latest

2. Run

mcpproxy                # starts HTTP server on :8080 and shows tray

3. Add servers

Edit mcp_config.json (see below). Or ask LLM to add servers (see doc).

Add proxy to Cursor

One-click install into Cursor IDE

Install in Cursor IDE

Manual install

  1. Open Cursor Settings
  2. Click "Tools & Integrations"
  3. Add MCP server
    "MCPProxy": {
      "type": "http",
      "url": "http://localhost:8080/mcp/"
    }

Minimal configuration (~/.mcpproxy/mcp_config.json)

{
  "listen": ":8080",
  "data_dir": "~/.mcpproxy",
  "enable_tray": true,

  // Search & tool limits
  "top_k": 5,
  "tools_limit": 15,
  "tool_response_limit": 20000,

  "mcpServers": [
    { "name": "local-python", "command": "python", "args": ["-m", "my_server"], "type": "stdio", "enabled": true },
    { "name": "remote-http", "url": "http://localhost:3001", "type": "http", "enabled": true }
  ]
}

Key parameters

Field Description Default
listen Address the proxy listens on :8080
data_dir Folder for config, DB & logs ~/.mcpproxy
enable_tray Show native system-tray UI true
top_k Tools returned by retrieve_tools 5
tools_limit Max tools returned to client 15
tool_response_limit Auto-truncate responses above N chars (0 disables) 20000

CLI flags

mcpproxy --help
  -c, --config <file>          path to mcp_config.json
  -l, --listen <addr>          listen address (":8080")
  -d, --data-dir <dir>         custom data directory
      --tray                   enable/disable system tray (default true)
      --log-level <level>      debug|info|warn|error
      --read-only              forbid config changes
      --disable-management     disable upstream_servers tool
      --allow-server-add       allow adding servers (default true)
      --allow-server-remove    allow removing servers (default true)

Learn More

Contributing 🤝

We welcome issues, feature ideas, and PRs! Fork the repo, create a feature branch, and open a pull request. See CONTRIBUTING.md (coming soon) for guidelines.

About

Local proxy gives Cursor, Claude & co 1 K tools with auto-sandbox security

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 95.4%
  • Shell 3.7%
  • Other 0.9%