talira

MCPProxy (DocSpring fork)

Verified

MCPProxy with one URL per upstream MCP server, so clients keep their tool names

open sourceMITself-hostablefreeMCP

Forked from MCPProxy in 2026. To run 40 to 60 Claude Code sessions through one MCPProxy that holds the OAuth sign-ins, while each session sees its MCP servers under their usual names (upstream issue 1909)

DocSpring's fork of MCPProxy adds single-server endpoints at /mcp/s/<server>: each upstream MCP server is served at its own URL with its own tool names and instructions, so an AI client can register it under its usual name while MCPProxy holds and refreshes the server's OAuth sign-in for every session. It also allows agent tokens that never expire, computes the tray's token-savings figure from cached tool lists instead of live calls, and makes health checks tolerate a heavily loaded machine. The changes live on the docspring/per-server-endpoints branch and were offered upstream.

Problems it solves

  • dozens of parallel Claude Code sessions keep signing each other out of remote MCP servers by racing on refresh tokens
  • put a proxy in front of my MCP servers for the sign-in but keep the mcp__server__tool names my permission rules use
  • an MCP gateway where each server keeps its own URL instead of one merged endpoint with prefixed tool names
  • disable or reconnect one MCP server in my client without touching the others behind the proxy
  • an agent token for a single-user machine that doesn't expire and sign everything out once a year
  • the MCP proxy's menu bar app makes hundreds of upstream tools/list calls an hour
  • my MCP proxy disconnects every server when I restart all my agent sessions at once and the CPU is pegged

Features

  • /mcp/s/<server> single-server endpoints with bare tool names and the server's own instructions
  • agent tokens with --expires never
  • cached token-savings estimate
  • health checks with 15 s pings and 5 timeouts before Error

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has an MCP serverplan not known
Takes pluginsplan not known

What this fork adds

  • Serves each upstream MCP server at its own URL, /mcp/s/<server>, with its own tool names (no server__ prefix) and instructions, through the same auth, token scoping, tool filters and quarantine; a token not allowed that server gets a 404 Offered upstream issue
  • An admin can mint agent tokens that never expire (token create --expires never, or expires_in "never" over REST); the MCP create_token tool and client credentials keep a required expiry Offered upstream issue
  • The usage endpoint the tray polls reads tool lists from cached state and keeps the token savings estimate until a server's tools change, instead of calling tools/list on every upstream on every poll Offered upstream issue
  • Health checks give each ping 15 seconds and need five slow pings in a row before marking a server failed, so a CPU-starved host doesn't tear down every upstream; refused connections and DNS failures still fail at once Offered upstream issue

3 commits ahead of upstream and 45 behind on docspring/per-server-endpoints, checked 2026-11-15.

Alternatives

The same job

These do what MCPProxy (DocSpring fork) does.

  1. MCPProxy Supercharge AI Agents, Safely: one safe endpoint in front of every MCP server
  2. Executor Everything your agent needs, drivable as code.
  3. agentgateway Next Generation Agentic Proxy for AI Agents and MCP servers
  4. Docker MCP Gateway docker mcp CLI plugin / MCP Gateway
  5. Zuplo MCP Gateway One gateway for every MCP server your agents touch.
  6. Microsoft MCP Gateway MCP Gateway is a reverse proxy and management layer for MCP servers in Kubernetes environments.

Compare MCPProxy (DocSpring fork) with the top 3