MCP Proxy
by punkpeye
MCP Proxy is a TypeScript SSE proxy for MCP servers that use `stdio` transport. It enables SSE for MCP servers.
Last updated: N/A
What is MCP Proxy?
MCP Proxy is a TypeScript-based proxy server designed to facilitate communication between Model Context Protocol (MCP) servers and clients using Server-Sent Events (SSE) over a stdio
transport. It acts as an intermediary, forwarding messages between the MCP server and the client, enabling real-time data streaming.
How to use MCP Proxy?
MCP Proxy can be used via command-line or the Node.js SDK. The command-line interface allows for quick setup and execution, while the Node.js SDK provides more granular control and integration options. The SDK offers utilities like proxyServer
for setting up a general proxy, startSSEServer
for creating an SSE server, and tapTransport
for debugging.
Key features of MCP Proxy
SSE Support
TypeScript Implementation
Command-line Interface
Node.js SDK
CORS Enabled
stdio Transport
Use cases of MCP Proxy
Enabling SSE for MCP Servers
Real-time data streaming between MCP servers and clients
Proxying MCP communication
Debugging MCP transport
Integrating MCP with web applications
FAQ from MCP Proxy
What is MCP?
What is MCP?
MCP stands for Model Context Protocol.
What is SSE?
What is SSE?
SSE stands for Server-Sent Events, a server push technology enabling real-time data streaming to clients.
How do I install MCP Proxy?
How do I install MCP Proxy?
You can install it using npm install mcp-proxy
.
How do I start the proxy server?
How do I start the proxy server?
You can start it using the command-line interface with npx mcp-proxy --port 8080 --endpoint /sse tsx server.js
or using the Node.js SDK.
Is CORS enabled?
Is CORS enabled?
Yes, CORS is enabled by default.