mcp-stdio-to-streamable-http-adapter logo

mcp-stdio-to-streamable-http-adapter

by pyroprompts

This adapter bridges the gap between MCP clients with STDIO support and Streamable HTTP MCP Servers. It allows developers to use Streamable HTTP transport even when clients haven't fully adopted it.

View on GitHub

Last updated: N/A

What is mcp-stdio-to-streamable-http-adapter?

This is a STDIO MCP Server that relays to your Streamable HTTP MCP Server, enabling all MCP Clients to support Streamable HTTP right away.

How to use mcp-stdio-to-streamable-http-adapter?

Install the adapter using npm or npx. Configure your MCP client (e.g., Claude Desktop, LibreChat) to use the adapter as a STDIO server, providing the URI of your Streamable HTTP MCP Server via environment variables.

Key features of mcp-stdio-to-streamable-http-adapter

  • Bridges STDIO MCP Clients to Streamable HTTP MCP Servers

  • Enables immediate use of Streamable HTTP transport

  • Supports configuration via environment variables (URI, MCP_NAME, BEARER_TOKEN)

  • Compatible with Claude Desktop and LibreChat

  • Easy installation via npm/npx

Use cases of mcp-stdio-to-streamable-http-adapter

  • Integrating Streamable HTTP MCP Servers with existing MCP clients

  • Developing Streamable HTTP MCP Servers without client-side support limitations

  • Connecting LLMs to Streamable HTTP MCP Servers

  • Adding custom tools to Claude Desktop and LibreChat

FAQ from mcp-stdio-to-streamable-http-adapter

What is the purpose of this adapter?

It allows MCP clients that only support STDIO to communicate with Streamable HTTP MCP servers.

How do I configure the adapter?

You need to set the URI environment variable to point to your Streamable HTTP MCP server. Optionally, you can set MCP_NAME and BEARER_TOKEN.

Can I use this with multiple MCP servers?

Yes, you can configure multiple providers by referencing the same MCP server multiple times but with different environment arguments.

What clients are supported?

It is designed to work with any MCP Client that has STDIO MCP Server Support. Examples are Claude Desktop and LibreChat.

How can I debug the adapter?

Use the MCP Inspector tool to debug the communication over stdio. You can run it with npm run inspector.