Scan your whole stack
Are you using mcp-proxy?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.15.1
mcp-proxy was last scanned on 29 Nov 2026 at version 0.15.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.15.1 LATEST | 29 Nov 2026 | No rules fired |
| 0.15.0 | 9 Nov 2026 | No rules fired |
| 0.14.0 | 2 Nov 2026 | No rules fired |
| 0.13.3 | 2 Nov 2026 | Not shown |
| 0.13.2 | 1 Nov 2026 | Not shown |
Findings for v0.15.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.15.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The mcp-proxy is a tool that lets you switch between server transports. There are two supported modes:
Tool calls preserve upstream MCP protocol errors, including their error code and
data. This lets clients handle errors such as URL elicitation required (-32042)
without losing the authorization URL. Ordinary tool execution failures remain
isError tool results. The proxy does not retry failed tool calls.
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 remain supported as aliases. An explicitly supplied --host or
--port (including --port=0) takes precedence for that setting; otherwise, the corresponding deprecated option is
used. Prefer the modern option names. Additional environment variables can be passed to the local stdio server using
--env. Put local server arguments after the -- separator.
Startup logs list the SSE and StreamableHTTP endpoints for each configured backend. With --port=0, they list endpoint
paths because Uvicorn selects the actual port during startup; combine each path with Uvicorn's listening address.
Arguments
| Name | Required | Description | Example |
|---|---|---|---|
command_or_url |
Yes | The command to spawn the MCP stdio server | uvx mcp-server-fetch |
--port |
No, random available | The MCP server port to listen on | 8080 |
--host |
No, 127.0.0.1 by default |
Host IP address to bind. Wildcard binds require explicit --allowed-host authorities. |
0.0.0.0 |
--auth-bearer-token |
No | Require one shared Bearer token on every inbound HTTP request. Prefer MCP_PROXY_AUTH_TOKEN. |
<TOKEN> |
--allowed-host |
No | Additional trusted Host authority; repeat for each hostname/IP and port clients use. | --allowed-host mcp.example.com:8080 |
--env |
No | Additional environment variables to pass to the MCP stdio server. Can be used multiple times. | FOO BAR |
--cwd |
No | The working directory to pass to the MCP stdio server process. | /tmp |
--pass-environment |
No | Pass through all environment variables when spawning the server | --no-pass-environment |
--allow-origin |
No | Allowed origins for the SSE server. Can be used multiple times. Default is no CORS allowed. | --allow-origin "*" |
--expose-header |
No | Headers added to Access-Control-Expose-Headers. Can be used multiple times. Defaults to mcp-session-id. |
--expose-header Custom-Header |
--initialization-timeout SECONDS |
No | Deadline for each stdio server initialization; default is unlimited. Cleanup may take additional time. | --initialization-timeout 30 |
--stateless |
No | Enable stateless mode for streamable http transports. Default is False | --no-stateless |
--named-server NAME COMMAND_STRING |
No | Defines a named stdio server. | --named-server fetch 'uvx mcp-server-fetch' |
--named-server-config FILE_PATH |
No | Path to a JSON file defining named stdio servers. | --named-server-config /path/to/servers.json |
--sse-port (deprecated) |
No | Alias for --port; overridden when --port is supplied. |
— |
--sse-host (deprecated) |
No | Alias for --host; overridden when --host is supplied. |
— |
To start the mcp-proxy server that listens on port 8080 and connects to the local MCP server:
# Start the MCP server behind the proxy
mcp-proxy uvx mcp-server-fetch
# Start the MCP server behind the proxy with a custom port
mcp-proxy --port=8080 uvx mcp-server-fetch
# Start the MCP server behind the proxy with a custom host and port
mcp-proxy --host=0.0.0.0 --port=8080 --allowed-host mcp.example.com:8080 uvx mcp-server-fetch
# Replace mcp.example.com:8080 with the hostname/IP and port clients send in their Host header.
# Start the MCP server behind the proxy with a custom user agent
# Note that the `--` separator is used to separate the `mcp-proxy` arguments from the `mcp-server-fetch` arguments
mcp-proxy --port=8080 -- uvx mcp-server-fetch --user-agent=YourUserAgent
# Start multiple named MCP servers behind the proxy
mcp-proxy --port=8080 --named-server fetch 'uvx mcp-server-fetch' --named-server fetch2 'uvx mcp-server-fetch'
# Start multiple named MCP servers using a configuration file
mcp-proxy --port=8080 --named-server-config ./servers.json
# Start the MCP server with CORS enabled and custom exposed headers
mcp-proxy --port=8080 --allow-origin='*' --expose-header Custom-Header uvx mcp-server-fetch
NAME is used in the URL path /servers/NAME/.COMMAND_STRING is the command to start the server (e.g., 'uvx mcp-server-fetch').--named-server-config is used.FILE_PATH - If provided, this is the exclusive source for named servers, and --named-server CLI arguments are ignored.If a default server is specified (the command_or_url argument without --named-server or --named-server-config), it will be accessible at the root paths (e.g., http://127.0.0.1:8080/sse).
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.