MCP2HTTP is a minimal transport adapter. It bridges Model Context Protocol clients that use stdio with stateless HTTP servers, enabling new integration possibilities.
To use MCP2HTTP, configure your MCP client to call it with the endpoint URL and optional HTTP headers. The format is: npx -y mcp2http <endpoint-url> ["Header: Value"...].
Key features include client-generated session tracking using a UUID Session-Id header, capability filtering to block unsupported requests, and notification handling that drops messages without an ID.
Use cases involve connecting local MCP clients to remote HTTP servers, integrating legacy systems with modern HTTP-based services, and reducing server load by filtering unsupported capabilities.
FAQ: The purpose of the Session-Id header is to allow request correlation in stateless HTTP environments, though it is optional. MCP2HTTP works with any HTTP server that supports the Model Context Protocol and is licensed under the MIT license.