mcp-proxy
$ mcp-proxy Community Med Riskmcp-proxy translates between stdio MCP servers and SSE/Streamable HTTP servers in either direction. Useful for exposing local uvx/Python stdio servers over HTTP (--port, --host, --allow-origin) or forwarding remote HTTP MCP servers to local stdio clients with --env and --pass-environment.
pip install mcp-proxy mcp-proxy acts purely as a protocol transport adapter between stdio and HTTP/SSE MCP hosts and servers.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean non-interactive CLI flags (--port, --host, --env), though it runs as a persistent proxy daemon rather than a one-shot JSON CLI.
- Scriptable
--port/--sse-port,--host/--sse-host,--env, and--allow-originflags
Avoids leaking host environment variables by default unless --pass-environment is passed, and supports CORS --allow-origin restrictions.
- Isolated child environment by default; opt-in
--pass-environmentand--env
Cross-platform Python package runnable via uvx mcp-proxy or pip install mcp-proxy.
- Distributed on PyPI (
mcp-proxy) withuvxsupport
Lightweight bidirectional Python bridge for teams standardized on uv/uvx instead of Node.js.
- Supports both client (HTTP->stdio) and server (stdio->HTTP) modes
Maintained community repository (sparfenyuk/mcp-proxy) under MIT license.
- MIT-licensed
sparfenyuk/mcp-proxyrepo
README covers both proxy directions, Docker deployment, and environment isolation flags.
- GitHub README documents CLI modes and flags
Security, Auth & Guardrails
Forwards environment variables explicitly via --env <K=V> or --pass-environment, and passes HTTP headers via --headers.
100% free and MIT open-source.
# mcp-proxy Agent Rules - Bind to `--host 127.0.0.1` instead of `0.0.0.0` unless remote network access is explicitly required. - Prefer `--env K=V` for specific secrets rather than `--pass-environment`.
Agent-Ready Command Recipes
Safe Read-Only Queries
mcp-proxy CLI flags and usage uvx mcp-proxy --help
Displays server/client proxy flags (--port, --host, --env, --pass-environment, --allow-origin) without starting a listener.
Controlled Writes & Previews
mcp-proxy --port 8080 --host 127.0.0.1 -- uvx mcp-server-fetch
Spawns a local stdio MCP server and exposes it on 127.0.0.1:8080 without leaking unselected host env vars.
Strengths for Agents
- + Bidirectional Python bridge needing no Node.js runtime when paired with
uvx. - + Filters child process environment by default, requiring explicit
--envor--pass-environment.
Caveats & Pitfalls
- ! Runs as a blocking proxy process without
--jsontelemetry or dry-run validation. - ! Deprecated legacy
--sse-port/--sse-hostaliases coexist with--port/--hostacross versions.