mcp-gateway

acehoss
107
A flexible gateway server that connects the Model Context Protocol (MCP) STDIO server to the MCP HTTP+SSE and REST API, allowing multiple instances of the MCP server to be accessed via HTTP.

Overview

What is mcp-gateway

MCP Gateway is a flexible gateway server that connects Model Context Protocol (MCP) STDIO servers to MCP HTTP+SSE and REST API, allowing multiple instances of MCP servers to be accessed over HTTP.

How to Use

To use MCP Gateway, install it via npm, configure the `config.yaml` file for your server instances, and start the gateway. You can then obtain a session ID and make API calls to the configured MCP servers using the provided REST API endpoints.

Key Features

Key features include support for multiple MCP server instances, flexible network binding, session ID management for instance separation, automatic resource cleanup, YAML-based configuration, optional authentication methods (Basic and Bearer token), configurable debug logging, and REST API support.

Use Cases

MCP Gateway is ideal for scenarios where multiple MCP servers need to be accessed over HTTP, such as integrating with OpenAI's custom GPTs, running applications in containerized environments, or enabling remote access to local MCP servers.

Content