Back to Home
punkpeye icon

mcp-proxy

Verified Safe

by punkpeye

Overview

A proxy server that translates Model Context Protocol (MCP) messages from stdio-based backend servers into streamable HTTP and Server-Sent Events (SSE) endpoints.

Installation

Run Command
npx mcp-proxy --port 8080 --shell tsx server.js

Environment Variables

  • MCP_PROXY_API_KEY

Security Notes

The server's core functionality involves spawning arbitrary child processes (the backend MCP server) based on user-provided command-line arguments. While this is the intended design, it presents a critical security risk if the proxy's command execution parameters could be influenced by untrusted external input in a deployed environment. However, when run via `npx` by an end-user, the input is explicit. Authentication via API keys or custom `authenticate` callbacks is supported for HTTP/SSE endpoints, which is a good practice. CORS is configurable.

Similar Servers

Stats

Interest Score61
Security Score8
Cost ClassLow
Stars211
Forks42
Last Update2025-12-01

Tags

ProxyMCPHTTPSSETypeScript