
leizongmin/mcp-server-proxy
Developer toolsThis page was translated automatically. Technical details may differ from the original. View the original
Converts MCP protocol's SSE transport layer to a standard HTTP request/response.
Overview
Converts the SSE transport layer of the MCP protocol into a proxy server for standard HTTP request/response, simplifying the development and use of MCP Server. MCP (Model Context Protocol) is an open protocol that provides standardized data source and tool integration solutions for AI applications. Currently, MCP supports two main transmission protocols: - 😫 Command-line tools must be installed locally for the user, with specific requirements for the runtime environment - 😫 users need to configure the environment accordingly 2. SSE (Server-Sent Events) Transport Protocol: - 👍 Based on HTTP long connections, user configuration is relatively simple, mainly for setting the service address - 😫 Currently, related development tools and examples are relatively limited 1. Interact with MCP Clients using the SSE transport protocol; users only need to configure the service address to use 2. Convert MCP tool calls into standard HTTP requests/responses, which developers can implement using any programming language without worrying about SSE protocol details - Supports converting the MCP protocol's SSE transport layer into standard HTTP requests/responses - provides request and response checking functions, mainly used to study the interaction between MCP Client and Server - currently supports initialize, tools/list, and tools/call methods Used to check the content of requests and responses, mainly to study the interaction process between MCP Client and Server: Start the proxy server and convert the call from the MCP Client into a standard HTTP request/response:
Overview (machine translated)
Converts the SSE transport layer of the MCP protocol into a proxy server for standard HTTP request/response, simplifying the development and use of MCP Server.
Why is this tool needed?
MCP (Model Context Protocol) is an open protocol that provides standardized data source and tool integration solutions for AI applications. Currently, MCP supports two main transmission protocols:
- Stdio Transmission Protocol:
- 😫 Command-line tools must be installed locally for the user, with specific requirements for the runtime environment
- 😫 Users need to configure the appropriate environment
- SSE (Server-Sent Events) Transport Protocol:
- 👍 Based on HTTP long connection implementation, user configuration is relatively simple, mainly by setting the service address
- 😫 Currently, there are relatively few related development tools and examples
This tool simplifies the development and use of MCP Server in the following ways:
- Uses the SSE transport protocol to interact with the MCP Client; users only need to configure the service address to use it
- Convert MCP tool calls into standard HTTP requests/responses, allowing developers to implement them in any programming language without worrying about SSE protocol details
Functional Features
- Supports converting the SSE transport layer of the MCP protocol into standard HTTP requests/responses
- Provides request and response checking functions, mainly used to study the interaction process between MCP Client and Server
- Currently supports three methods:
initialize,tools/list, and [T2].
Installation
How to use
The tool provides two main commands:
1. inspect command
Used to check the content of requests and responses, mainly to study the interaction process between MCP Client and Server:
For example:
2. serve command
Start the proxy server and convert the call from the MCP Client into a standard HTTP request/response:
For example:
Example
The project includes a JavaScript example (located in the example/js-echo directory), which implements simple echo functionality without relying on MCP-related SDKs, only managing a few simple HTTP requests:
- Enter the sample directory:
This example uses the Hono framework, with the core code as follows:
-
Install dependencies:
-
Starting the server:
-
Start the proxy server:
-
Configure the MCP Client:
- Type:
sse - Server URL:
http://localhost:3002/sse
- Call the tool:
Taking Cursor as an example, after submitting content echo message "hello", it will recognize that the echo tool needs to be called. At this point, a [Call Tool] button will appear. Click the click ‘Second’ to confirm and you will see the tool call result.
License
MIT
Contribution
Feel free to submit questions and Pull Requests!
This page was translated automatically. Technical details may differ from the original.
Install
This server does not publish a one-line install command.
Open the repository installation guide New to MCP? Start with the mcpskill.org guide →