● Сообщество
tbxark
⚡ Сразу
mcp-proxy
автор tbxark · tbxark/mcp-proxy
Aggregate many MCP servers behind one HTTP endpoint — cut client config from 20 entries to 1, share MCPs across your team.
mcp-proxy by tbxark fronts any number of upstream MCP servers (stdio, SSE, or streamable HTTP) and exposes them through a single HTTP endpoint. Useful when you want one URL your whole team (or multiple AI clients) can point at, instead of re-configuring every server on every machine.
Зачем использовать
Ключевые функции
- Transport bridging: wrap stdio servers as HTTP/SSE so remote clients can reach them
- Single config file lists all upstream servers — hot-swap without restarting clients
- Docker image ghcr.io/tbxark/mcp-proxy for one-command deploy
- Web-based config converter at tbxark.github.io/mcp-proxy
- Namespaced tools — avoids collisions when two upstreams expose the same tool name
Живое демо
Как выглядит на практике
Сценарии использования
Реальные сценарии: mcp-proxy
Когда использовать: You've found 5+ MCPs that everyone on the team should use, and re-explaining the stdio config to each hire is eating your week.
Предварительные требования
- A VM or container host reachable by every team member — Any small EC2/Fly/Hetzner box; 512MB RAM is plenty
- Docker installed on that host — curl -fsSL https://get.docker.com | sh
Поток
-
Write a config.json listing every upstream MCP the team needs
Draft a mcp-proxy config.json that aggregates github, sentry, postgres (read-only replica), and filesystem (scoped to /data). Give each a unique namespace.✓ Скопировано
→ Valid config with namespaced server entries
-
Run mcp-proxy in Docker on the shared host
Write the docker run command to launch ghcr.io/tbxark/mcp-proxy on port 9090 mounting config.json, with restart=always and a healthcheck.✓ Скопировано
→ Container stays up; /health returns 200
-
Give teammates one URL to paste into every client
Write a 5-line onboarding snippet teammates paste into Claude Desktop's config to point at our shared proxy URL.✓ Скопировано
→ Any teammate gets all upstream tools in one step
Итог: New hires reach full MCP parity in 2 minutes by pasting one URL; upgrades happen in one place.
Подводные камни
- Putting the proxy on the public internet without auth — Terminate TLS and auth at a reverse proxy (Caddy/nginx/Cloudflare) in front — mcp-proxy has no auth layer
- Upstream tool names collide (two servers both expose get_issue) — Use namespacing so clients see github.get_issue vs gitlab.get_issue
Когда использовать: Your client only speaks HTTP/SSE but the MCP you need is stdio-only.
Поток
-
Run mcp-proxy locally wrapping the stdio server
Generate an mcp-proxy config that wraps npx -y @modelcontextprotocol/server-filesystem /tmp as an SSE endpoint on :9090.✓ Скопировано
→ curl http://localhost:9090 returns MCP metadata
-
Tunnel the port to a public URL
Give me a one-liner with cloudflared or ngrok to expose :9090.✓ Скопировано
→ Public HTTPS URL
-
Point the remote IDE at the SSE URL
Write the IDE config entry to consume this as an SSE MCP server.✓ Скопировано
→ Tools appear in the remote IDE
Итог: A stdio-only MCP reachable from any HTTP-capable client.
Подводные камни
- Public tunnels are open to the world while live — Use cloudflared with Access policies or add a shared-secret header
Когда использовать: A security-fix version of an upstream MCP drops and you need everyone on it today.
Поток
-
Bump the version in the central mcp-proxy config
Update my mcp-proxy config to pin github-mcp-server to v0.4.2 and reload.✓ Скопировано
→ New version live on the proxy
-
Verify tools still respond
Hit the proxy's list_tools and confirm github.* tools are present with the new server version.✓ Скопировано
→ Tool list unchanged from consumer perspective
Итог: Silent upgrade — teammates pick up the new version on next tool call, no client restart needed.
Подводные камни
- New version renamed a tool and broke downstream prompts — Read the upstream changelog before pinning; keep previous version configured briefly for overlap
Комбинации
Сочетайте с другими MCP — эффект x10
Put both behind one proxy so teammates don't juggle two tokens in two configs
Configure mcp-proxy to front both github and sentry MCP servers, loading credentials from a single .env file the host reads.✓ Скопировано
Compare vs 1mcp-app/agent — both aggregate, different tradeoffs (Go vs Node, OAuth vs none)
Set up mcp-proxy alongside 1mcp-app/agent on the same host and benchmark tool-call latency through each.✓ Скопировано
Стоимость и лимиты
Во что обходится
- Квота API
- No own quota; passes through upstream server limits
- Токенов на вызов
- Negligible overhead beyond the upstream response
- Деньги
- Free, MIT licensed
- Совет
- Run on a tiny box — 512MB RAM handles dozens of upstreams. Real cost is upstream API fees.
Безопасность
Права, секреты, радиус поражения
Хранение учётных данных: Upstream credentials in host env vars or config.json; keep config.json out of git
Исходящий трафик: Proxy forwards to whichever upstream servers you configure; no telemetry back to tbxark
Никогда не давайте: Exposing the proxy to the public internet without an auth layer in front
- No built-in authentication — pair with reverse proxy auth (Caddy, nginx, Cloudflare Access) before exposing publicly.
- Treat config.json like a secrets file; it contains tokens for every upstream.
Устранение неполадок
Частые ошибки и исправления
Upstream server failed to start
Check the command path in config.json is absolute or on the container PATH. docker exec in and run manually.
Проверить: docker logs <proxy-container>
Tool call returns 'tool not found' but list_tools shows it
Namespace mismatch — with namespacing on, clients must call server.tool_name, not tool_name.
Проверить: curl http://proxy:9090/tools | jq
SSE connection drops every 30s
Reverse proxy idle timeout too short. Raise to 5 min or disable buffering for /sse paths.
Проверить: nginx/Caddy log shows client timeout
Docker container exits immediately
Config JSON invalid. Validate with jq before starting.
Проверить: docker logs shows JSON parse error
Альтернативы
mcp-proxy в сравнении
| Альтернатива | Когда использовать | Компромисс |
| 1mcp-app/agent | You want OAuth 2.1 and scope-based auth built in | Heavier footprint, Node-based vs Go |
| Hyprmcp Jetski | You need analytics and prompt-level visibility on top of aggregation | Requires Kubernetes/PostgreSQL — overkill for small teams |
| Direct client-side configs | Team is 1-3 people and you rarely change servers | Zero infra, but every change is N updates |