MCP.so
登录

MCP2HTTP MCP Server

@tekorex

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

tekorex

关于 MCP2HTTP MCP Server

MCP2HTTP is a minimal transport adapter that bridges MCP clients using stdio with stateless HTTP servers.

#mcp2http#http-adapter#transport-adapter

MCP2HTTP MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp2http": {
      "command": "npx",
      "args": [
        "-y",
        "mcp2http",
        "<endpoint-url>",
        "[Header: Value...]"
      ]
    }
  }
}

MCP2HTTP MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is MCP2HTTP?

MCP2HTTP is a minimal transport adapter that bridges Model Context Protocol (MCP) clients using stdio transport to stateless HTTP MCP servers. It replaces the typical SSE transport with plain HTTP, enabling integration with serverless platforms and legacy systems while preserving protocol semantics.

How to use MCP2HTTP?

Configure your MCP client to run npx -y mcp2http <endpoint-url> ["Header: Value"...]. Optional HTTP headers can be added as arguments (e.g., "Authorization: Bearer token123"). You need a functional MCP HTTP endpoint.

Key features of MCP2HTTP

  • Bridges stdio MCP clients to stateless HTTP servers.
  • Automatic client-generated UUID session tracking via Session-Id header.
  • Blocks requests for capabilities the server does not advertise.
  • Silently drops notification messages (no ID).
  • Supports custom HTTP headers via command-line arguments.

Use cases of MCP2HTTP

  • Connecting MCP clients to serverless or stateless HTTP endpoints.
  • Integrating MCP with legacy systems that lack SSE support.
  • Reducing unnecessary load by filtering unsupported capability polls.

常见问题

1

What does MCP2HTTP do?

It converts stdio-based MCP client communication to regular HTTP requests, allowing clients to talk to servers over stateless HTTP without SSE.

2

What are the dependencies or runtime requirements?

You need Node.js and npx (bundled with npm). The adapter is run via `npx -y mcp2http`.

3

How does session tracking work?

The adapter generates a UUID and adds it as a `Session-Id` header to every request. Servers may ignore this header; it is optional.

4

What happens to notification messages?

Notifications (messages with no ID) are silently dropped because they don’t fit HTTP’s request/response model.

5

Can I pass authentication headers?

Yes. Add any number of `"Header: Value"` arguments after the endpoint URL, e.g., `"Authorization: Bearer token123"`.

评论

其他 分类下的更多 MCP 服务器