Mcp2http icon

Mcp2http

Createdtekorex

Bridges Model Context Protocol (MCP) clients using stdio with stateless HTTP servers.

About

MCP2HTTP is a minimal transport adapter that enables Model Context Protocol (MCP) clients using stdio transport to communicate with MCP servers over stateless HTTP. It bridges the gap between traditional stdio/SSE MCP transport and regular HTTP endpoints, facilitating integration with serverless platforms and legacy systems. The adapter handles basic transport conversion while offering optional session tracking through a client-generated UUID. It also filters server capabilities to reduce unnecessary load and drops notifications to align with HTTP's request/response architecture.

Key Features

  • Connects stdio MCP clients to stateless HTTP servers
  • Client-generated Session-Id header for optional session tracking
  • Capability filtering to reduce server load
  • Handles notifications by dropping them
  • Supports custom HTTP headers
  • 2 GitHub stars

Use Cases

  • Integrating MCP clients with serverless platforms
  • Connecting MCP clients to legacy systems using HTTP
  • Adding session tracking to stateless MCP HTTP servers
Craft Better Prompts with AnyPrompt