MCP Server Gateway logo

MCP Server Gateway

by lightconetech

The MCP Server Gateway bridges the gap between stdio-based Model Context Protocol (MCP) implementations in Claude Desktop and HTTP/SSE-based MCP servers. It acts as a protocol translator, enabling Claude Desktop to communicate with various MCP servers.

View on GitHub

Last updated: N/A

What is MCP Server Gateway?

The MCP Server Gateway is a service that translates between the stdio protocol used by Claude Desktop for Model Context Protocol (MCP) communication and the HTTP/SSE protocol commonly used by MCP servers. This allows Claude Desktop to interact with a wider range of MCP servers.

How to use MCP Server Gateway?

  1. Install the gateway globally using npm. 2. Find the installed gateway path. 3. Configure Claude Desktop to use the gateway by specifying the path in the Claude Desktop configuration file. 4. Configure the MCP server connection by setting the MCP_SERVER_URL environment variable. 5. Start or restart Claude Desktop.

Key features of MCP Server Gateway

  • Protocol translation between stdio and HTTP/SSE

  • Allows Claude Desktop to connect to HTTP/SSE MCP servers

  • Easy installation via npm

  • Configurable MCP server URL

  • Uses MCP Hub server by default for access to pre-configured MCP services

Use cases of MCP Server Gateway

  • Connecting Claude Desktop to MCP servers that use HTTP/SSE

  • Testing and developing MCP servers without modifying Claude Desktop

  • Accessing a variety of pre-configured MCP services through MCP Hub

  • Bridging protocol differences in different MCP implementations

FAQ from MCP Server Gateway

How do I find the gateway path after installation?

Use npm root -g to find the global packages directory, then locate the gateway at <npm_global_root>/@mcphub/gateway/dist/src/mcphub-gateway.js.

What is the default MCP server URL?

The default MCP server URL is https://server.mcphub.ai/api/mcp, which provides access to various pre-configured MCP services.

How do I configure Claude Desktop to use the gateway?

Add a configuration entry to your Claude Desktop's config.json file, specifying the command as node and the arguments as the path to the gateway.

What if I can't find the gateway after installation?

Use npm list -g @mcphub/gateway to verify the installation and path.

What license is the gateway released under?

The gateway is released under the Apache 2.0 License.