MCP SSE-to-HTTP proxy server

MCP SSE-to-HTTP proxy server

mcp-server-proxy•byleizongmin

A proxy that speaks the MCP SSE transport with clients and forwards MCP method calls as plain HTTP request/response to a backend service.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes an MCP SSE endpoint that clients connect to via a server URL.
  • •Converts MCP tool calls into standard HTTP requests and responses so backends can be written in any language.
  • •Supports the initialize, tools/list and tools/call MCP methods.
  • •Provides an inspect mode to examine request and response traffic between MCP clients and servers.

BEST FOR

  • •Developers building MCP servers in languages without MCP SDKs by handling simple HTTP endpoints.
  • •Investigating how MCP clients and servers interact through request/response inspection.

ABOUT MCP-SERVER-PROXY

MCP SSE-to-HTTP proxy server is cataloged as an MCP server attributed to leizongmin. A proxy that speaks the MCP SSE transport with clients and forwards MCP method calls as plain HTTP request/response to a backend service. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP SSE-to-HTTP proxy server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

Upstream README

View this exact version on GitHub

README.md · ea6340f9a6dd · Fetched 2026-11-13 11:59:04 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

mcp-server-proxy

将 MCP 协议的 SSE 传输层转换为标准 HTTP 请求/响应的代理服务器,简化 MCP Server 的开发和使用。

为什么需要这个工具

MCP(Model Context Protocol)是一个开放协议,为 AI 应用提供了标准化的数据源和工具集成方案。目前 MCP 支持两种主要的传输协议:

  1. Stdio 传输协议:

    • 😫 需要在用户本地安装命令行工具,对运行环境有特定要求
    • 😫 用户需要进行相应的环境配置
  2. SSE(Server-Sent Events)传输协议:

    • 👍 基于 HTTP 长连接实现,用户配置相对简单,主要是设置服务地址
    • 😫 目前相关开发工具和示例相对较少

本工具通过以下方式简化 MCP Server 的开发和使用:

  1. 采用 SSE 传输协议与 MCP Client 交互,用户只需配置服务地址即可使用
  2. 将 MCP 工具调用转换为标准的 HTTP 请求/响应,开发者可以使用任意编程语言实现,无需关注 SSE 协议细节

功能特点

  • 支持将 MCP 协议的 SSE 传输层转换为标准 HTTP 请求/响应
  • 提供请求和响应的检查功能,主要用于研究 MCP Client 和 Server 的交互过程
  • 目前已支持 initialize、tools/list、tools/call 三个方法

安装

go install github.com/leizongmin/mcp-server-proxy@latest

使用方法

该工具提供两个主要命令:

1. inspect 命令

用于检查请求和响应的内容,主要用于研究 MCP Client 和 Server 的交互过程:

mcp-server-proxy inspect <local_url> <target_url>

例如:

mcp-server-proxy inspect http://localhost:8080 http://example.com

2. serve 命令

启动代理服务器,将 MCP Client 的调用转换为标准 HTTP 请求/响应:

mcp-server-proxy serve <local_url> <target_url>

例如:

mcp-server-proxy serve http://localhost:8080 http://example.com

示例

项目包含一个 JavaScript 示例(位于 example/js-echo 目录),实现了简单的 echo 功能,不需要依赖 MCP 相关的 SDK,只需要处理几个简单的 HTTP 请求即可:

  1. 进入示例目录:
cd example/js-echo

本示例使用 Hono 框架实现,核心代码如下:

import { Hono } from "hono";
import { logger } from "hono/logger";

const app = new Hono();
app.use("*", logger());

app.post("/initialize", async (c) => {
  const sessionId = c.req.query("sessionId");
  const params = await c.req.json();
  console.log("initialize: sessionId=%s, params=%j", sessionId, params);
  return c.json({
    protocolVersion: "2024-11-05",
    capabilities: {
      tools: {},
    },
    serverInfo: { name: "example-mcp-server", version: "1.0.0" },
  });
});

app.post("/tools/list", async (c) => {
  const sessionId = c.req.query("sessionId");
  const params = await c.req.json();
  console.log("tools/list: sessionId=%s, params=%j", sessionId, params);
  return c.json({
    tools: [
      {
        name: "echo",
        description: "Echoes back the input",
        inputSchema: {
          type: "object",
          properties: {
            message: { type: "string", description: "Message to echo" },
          },
          required: ["message"],
          additionalProperties: false,
          $schema: "http://json-schema.org/draft-07/schema#",
        },
      },
    ],
  });
});

app.post("/tools/call/:name", async (c) => {
  const sessionId = c.req.query("sessionId");
  const name = c.req.param("name");
  const params = await c.req.json();
  console.log(
    "tools/call: sessionId=%s, name=%s, params=%j",
    sessionId,
    name,
    params
  );
  return c.json({
    content: [
      { type: "text", text: `SESSION ID: ${sessionId}` },
      { type: "text", text: `ECHO: ${params.arguments?.message}` },
    ],
  });
});

export default app;
  1. 安装依赖:
npm install
  1. 启动服务器:
node server.js
  1. 启动代理服务器:
# 代理服务器监听 http://localhost:3002
# 代理服务器将请求转发到 http://localhost:3001
mcp-server-proxy serve http://localhost:3002 http://localhost:3001
  1. 配置 MCP Client:
  • Type: sse
  • Server URL: http://localhost:3002/sse
  1. 调用工具:

以 Cursor 为例,提交内容echo message "hello"后,它会识别出来需要调用 echo 工具,此时会出现【Call Tool】按钮,点击次按钮确认后即可看到工具调用结果。

cursor-call-echo-tool

许可证

MIT

贡献

欢迎提交问题和 Pull Request!

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP SSE-to-HTTP proxy server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-proxy)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools