An HTTP/SSE proxy server for Model Context Protocol (MCP) applications using stdio. Supports raw JSON-RPC commands via HTTP and implements direct stdio communication without an MCP SDK.
Overview
What is mcp-http-proxy?
mcp-http-proxy is an HTTP/SSE proxy server designed for Model Context Protocol (MCP) applications, facilitating communication between HTTP clients and MCP servers without requiring an MCP SDK.
How to use mcp-http-proxy?
To use mcp-http-proxy, run the Node.js script rpc-proxy-worker.js to start the server, then interact with it via HTTP endpoints to send commands and receive responses.
Key features of mcp-http-proxy?
- Manages the lifecycle of an MCP server process.
- Provides HTTP endpoints for easy interaction with MCP tools.
- Supports real-time event notifications via Server-Sent Events (SSE).
- Includes a web interface for debugging and command execution.
Use cases of mcp-http-proxy?
- Simplifying interactions with MCP servers for web applications.
- Enabling real-time updates for long-running tasks.
- Allowing developers to send JSON-RPC commands easily via HTTP.
FAQ from mcp-http-proxy?
- What is the purpose of mcp-http-proxy?
It acts as an intermediary between HTTP clients and MCP servers, simplifying communication and management.
- How do I start the server?
Run
node rpc-proxy-worker.jsin your terminal after ensuring Node.js is installed.
- What endpoints are available?
The proxy exposes several endpoints including
/,/tools,/tool/:toolName, and/rpc/raw/commandfor various interactions.