by sparfenyuk
A bridge between Streamable HTTP and stdio MCP transports
# Add to your Claude Code skills
git clone https://github.com/sparfenyuk/mcp-proxyGuides for using mcp servers skills like mcp-proxy.
Last scanned: 4/23/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-04-23T06:08:10.848Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}See how mcp-proxy compares with popular alternatives.
mcp-proxy is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by sparfenyuk. A bridge between Streamable HTTP and stdio MCP transports. It has 2,836 GitHub stars.
Yes. mcp-proxy passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/sparfenyuk/mcp-proxy" and add it to your Claude Code skills directory (see the Installation section above).
mcp-proxy is primarily written in Python. It is open-source under sparfenyuk on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcp-proxy against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
The mcp-proxy is a tool that lets you switch between server transports. There are two supported modes:
Run a proxy server from stdio that connects to a remote SSE server.
This mode allows clients like Claude Desktop to communicate to a remote server over SSE even though it is not supported natively.
graph LR
A["Claude Desktop"] <--> |stdio| B["mcp-proxy"]
B <--> |SSE| C["External MCP Server"]
style A fill:#ffe6f9,stroke:#333,color:black,stroke-width:2px
style B fill:#e6e6ff,stroke:#333,color:black,stroke-width:2px
style C fill:#e6ffe6,stroke:#333,color:black,stroke-width:2px
This mode requires providing the URL of the MCP Server's SSE endpoint as the program’s first argument. If the server uses Streamable HTTP transport, make sure to enforce it on the mcp-proxy side by passing --transport=streamablehttp.
When the proxy is a Streamable HTTP client, it bounds the final MCP session-termination DELETE request, including reading its response body, to five seconds. After cancellation or timeout, closing a received response gets a shielded, cooperative grace of up to one second; cleanup code that ignores cancellation can take longer. Graceful CLI teardown after SIGINT requires Python 3.11+; on Python 3.10, SIGINT may interrupt the event loop before the final DELETE is sent (asyncio runner documentation). This limit applies only to that termination operation; normal GET streams and POST tool calls retain their usual HTTP timeouts. It is specific to reverse-client mode and does not change the stateful/stateless behavior of proxied HTTP servers.
In reverse Streamable HTTP mode, an HTTP 404 on a POST for an established upstream session marks that session lost. The operation that received the 404 is never retried; its failure follows the existing proxy handling, and the server may already have applied it. A later explicit request may use a replacement session only when its complete initialization handshake matches the original. The proxy does not restore subscriptions, logging levels, or other upstream session-local state; after stateful resource or logging operations, or when the handshake changes, it refuses later requests and the MCP client must restart. Progress notifications are sent only to the current healthy session and are not buffered or replayed.
Arguments
| Name | Required | Description | Example |
|---|---|---|---|
command_or_url |
Yes | The MCP server SSE endpoint to connect to | http://example.io/sse |
--headers |
No | Headers to use for the MCP server SSE connection | Authorization 'Bearer my-secret-access-token' |
--transport |
No | Decides which transport protocol to use when connecting to an MCP server. Can be either 'sse' or 'streamablehttp' | streamablehttp |
--client-id |
No | OAuth2 client ID for authentication | your_client_id |
--client-secret |
No | OAuth2 client secret for authentication | your_client_secret |
--token-url |
No | OAuth2 token endpoint URL for authentication | https://auth.example.com/oauth/token |
--username |
No | Username for authentication | user |
--password |
No | Password for authentication | password |
--digest |
No | Use digest authentication |
Environment Variables
| Name | Required | Description | Example |
|---|---|---|---|
API_ACCESS_TOKEN |
No | Can be used instead of --headers Authorization 'Bearer <API_ACCESS_TOKEN>' |
YOUR_TOKEN |
mcp-proxy is supposed to be started by the MCP Client, so the configuration must be done accordingly.
For Claude Desktop, the configuration entry can look like this:
{
"mcpServers": {
"mcp-proxy": {
"command": "mcp-proxy",
"args": [
"http://example.io/sse"
],
"env": {
"API_ACCESS_TOKEN": "access-token"
}
}
}
}
Closing the client's stdin disconnects the remote session and cancels connection setup, initialization, and active requests. Queued input is abandoned. Each input frame is limited to 4 MiB of UTF-8 wire payload bytes, excluding CR/LF delimiters. At most 4 MiB and 128 frames may be admitted but not yet consumed; empty and malformed frames count toward the frame limit. Exceeding either limit exits with an error instead of silently dropping input. These are admission limits, not an exact memory limit, because decoded text and protocol objects use additional memory.
The client must read or close stdout. A full, unread stdout pipe can prevent process exit. A cancelled blocking stdin read may leave one daemon thread and its private descriptor until the read returns or the process exits. The helper supports one active CLI lifespan per process.
Run a proxy server exposing a SSE server that connects to a local stdio server.
This allows remote connections to the local stdio server. The mcp-proxy opens a port to listen for SSE requests,
spawns a local stdio server that handles MCP requests.
graph LR
A["LLM Client"] <-->|SSE| B["mcp-proxy"]
B <-->|stdio| C["Local MCP Server"]
style A fill:#ffe6f9,stroke:#333,color:black,stroke-width:2px
style B fill:#e6e6ff,stroke:#333,color:black,stroke-width:2px
style C fill:#e6ffe6,stroke:#333,color:black,stroke-width:2px
Configure the HTTP server with --host and --port; the defaults are 127.0.0.1 and an available port. A wildcard
bind such as 0.0.0.0 requires --allowed-host entries for the Host authorities clients will use. These host checks
and CORS settings do not authenticate callers by default. --headers and API_ACCESS_TOKEN authenticate upstream
client requests; they do not authenticate callers of this server.
To require inbound authentication, set MCP_PROXY_AUTH_TOKEN or pass --auth-bearer-token TOKEN. An explicit CLI
value takes precedence over the environment variable. Prefer the environment variable because local process tools may
show command-line arguments. With neither value set, the server keeps its unauthenticated default. When enabled, every
HTTP request needs Authorization: Bearer TOKEN, including requests to /status, /healthz, SSE, StreamableHTTP,
and named-server routes. Health probes must send the token. Configured CORS preflight requests still work without a
token; ordinary OPTIONS requests require one. Host and Origin checks continue to apply.
MCP_PROXY_AUTH_TOKEN is removed from child processes when --pass-environment copies the proxy environment.
Values passed explicitly with --env or a named-server configuration remain part of that server's environment.
This shared token does not provide user identity or roles and does not make the proxy compliant with MCP OAuth.
Use TLS or a trusted network/reverse proxy when exposing the server beyond a trusted local network.
The deprecated --sse-host and --sse-port options are ineffective; use --host and --port instead. Additional
environment variables can be passed to the local stdio server using --env. Put local server arguments af