MCP Gateway logo

MCP Gateway

by lucky-aeon

The MCP gateway is a reverse proxy server that forwards requests from clients to the MCP server or uses all MCP servers under the gateway through a unified portal. It allows deploying multiple MCP servers and connecting to them through a single gateway.

View on GitHub

Last updated: N/A

What is MCP Gateway?

The MCP Gateway is a reverse proxy that provides a unified portal to interact with multiple MCP (Micro Control Plane) servers. It simplifies access and management of these servers by routing requests and aggregating SSE streams.

How to use MCP Gateway?

  1. Pull or build the Docker image.
  2. Run the Docker container, exposing port 8080.
  3. Deploy MCP servers using the /deploy API, specifying either a URL or command to launch the server.
  4. Interact with MCP servers directly via /{mcp-server-name}/sse and /{mcp-server-name}/message or use the gateway endpoints /sse and /message to interact with all servers.

Key features of MCP Gateway

  • Deploy multiple MCP servers

  • Connect to MCP server

  • Unified access to MCP servers through the gateway

  • Aggregation of SSE streams from all MCP servers

  • Centralized tool listing and invocation

Use cases of MCP Gateway

  • Managing multiple MCP instances from a single point

  • Providing a simplified interface for client applications to interact with MCP servers

  • Aggregating real-time data streams from multiple MCP servers

  • Centralized access to tools and functionalities provided by MCP servers

FAQ from MCP Gateway

What is an MCP server?

Based on the context, MCP likely stands for Micro Control Plane server, but the exact definition is not provided in the README.

How do I deploy an MCP server through the gateway?

Use the /deploy API endpoint, providing either a URL or a command with arguments and environment variables to launch the server.

How do I access the SSE stream for a specific MCP server?

Use the /{mcp-server-name}/sse endpoint.

How do I send a message to a specific MCP server?

Use the /{mcp-server-name}/message endpoint with a JSON payload containing the method, params, jsonrpc version, and id.

How do I access all MCP server's SSE streams through the gateway?

Use the /sse endpoint. The gateway will aggregate the streams from all connected MCP servers.