MCP Simple Gateway
by denwakeup
MCP Simple Gateway is a proxy server for Model Context Protocol (MCP) that allows you to aggregate and manage multiple MCP servers through a single interface. It simplifies the management of multiple MCP servers by providing a unified access point.
Last updated: N/A
What is MCP Simple Gateway?
MCP Simple Gateway is a proxy server designed to aggregate and manage multiple Model Context Protocol (MCP) servers. It acts as a single point of entry, simplifying access and management of various MCP services.
How to use MCP Simple Gateway?
The gateway can be run via CLI using npx mcp-simple-gateway --config config.json
or via Docker Compose. Configuration is done through a JSON file (config.json
) where you define proxy server options and individual MCP server configurations, including command execution or URL endpoints. Access individual MCP servers through the gateway's address and specified paths, e.g., http://localhost:3000/time/sse
.
Key features of MCP Simple Gateway
Aggregation of multiple MCP servers
Token-based authentication support
Flexible JSON-based configuration
Docker support
SSE, stdio and StreamableHTTP MCP supported
Use cases of MCP Simple Gateway
Centralized management of multiple MCP services
Simplified access to different MCP servers through a single endpoint
Enhanced security with token-based authentication
Easy deployment with Docker
Integration of various MCP server types (SSE, stdio, StreamableHTTP)
FAQ from MCP Simple Gateway
What is the purpose of the authTokens
in the configuration?
What is the purpose of the authTokens
in the configuration?
The authTokens
are used for authentication. The tokens defined in proxyServer.options.authTokens
are used as default for all servers. You can override them for specific servers using mcpServers.[serverName].proxyOptions.authTokens
.
How do I configure the gateway to forward requests to a StreamableHTTP MCP server?
How do I configure the gateway to forward requests to a StreamableHTTP MCP server?
You need to define the server in the mcpServers
section with the type
set to streamableHttp
and specify the url
of the server.
Can I use different authentication tokens for different MCP servers?
Can I use different authentication tokens for different MCP servers?
Yes, you can override the default authentication tokens for specific servers by defining the authTokens
array within the proxyOptions
of the server's configuration.
What are the supported logging levels?
What are the supported logging levels?
The supported logging levels are: debug, info, warn, and error. You can configure the logging level using the logLevel
parameter in the proxyServer.options
section.
How do I access a specific MCP server through the gateway?
How do I access a specific MCP server through the gateway?
The URLs for accessing MCP servers will be based on the gateway address and the server name defined in the mcpServers
configuration, e.g., http://localhost:3000/time/sse
.