mcp-proxy
Verified Safeby 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
npx mcp-proxy --port 8080 --shell tsx server.jsEnvironment 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
mcp-proxy
The mcp-proxy allows switching between MCP server transports, primarily enabling communication between stdio and SSE/StreamableHTTP endpoints.
mcphub
A hub for managing, orchestrating, and providing a unified API for various Model Context Protocol (MCP) servers and their tools, including user management, OAuth services, and discovery of external servers.
frontmcp
Develop and integrate third-party API services using the Model Context Protocol (MCP) framework, enabling AI models to interact with external systems through defined tools, resources, and prompts.
boilerplate-mcp-server
This boilerplate provides a production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript to connect AI assistants with external APIs and data sources, exemplified by an IP geolocation lookup tool.