by TBXark
Aggregates multiple MCP resource servers and serves them via a single HTTP endpoint, supporting SSE and HTTP streaming transports.
Mcp Proxy aggregates the tools and capabilities of several MCP resource servers and exposes them through one HTTP server. It can relay requests to the underlying MCP clients using Server‑Sent Events (SSE) or streamable‑HTTP, providing a unified entry point for downstream applications.
go install, or run the official Docker image.mcpProxy) and the list of MCP servers (mcpServers)../build/mcp-proxy --config path/to/config.json
# or, when using Docker
docker run -d -p 9090:9090 -v /path/to/config.json:/config/config.json ghcr.io/tbxark/mcp-proxy:latest
http(s)://{baseURL}/{clientName}/ssehttp(s)://{baseURL}/{clientName}/mcpAuthorization header.npx, uvx).authTokens defined under mcpProxy act as defaults. Individual clients can override them; if omitted, the proxy defaults are used.sse for simple event‑driven consumption, or streamable-http when you need raw HTTP streaming (e.g., for large payloads).toolFilter under a client’s options with mode set to allow or block and list the tool names.toolFilter. The console will log messages like <server_name> Adding tool <tool_name> for each registered tool.An MCP proxy server that aggregates and serves multiple MCP resource servers through a single HTTP server.
stdio, sse or streamable-http) with customizable settings.git clone https://github.com/TBXark/mcp-proxy.git
cd mcp-proxy
make build
./build/mcp-proxy --config path/to/config.json
# Install the latest version of mcp-proxy
go install github.com/TBXark/mcp-proxy@latest
# Or install stable version
go install github.com/TBXark/mcp-proxy
The Docker image supports two MCP calling methods by default:
npxanduvx.
docker run -d -p 9090:9090 -v /path/to/config.json:/config/config.json ghcr.io/tbxark/mcp-proxy:latest
# or
docker run -d -p 9090:9090 ghcr.io/tbxark/mcp-proxy:latest --config https://example.com/path/to/config.json
The server is configured using a JSON file. Below is an example configuration:
This is the format for the new version's configuration. The old version's configuration will be automatically converted to the new format's configuration when it is loaded. You can use
https://tbxark.github.io/mcp-proxyto convert the configuration ofmcp-proxyinto the configuration thatClaudecan use.
{
"mcpProxy": {
"baseURL": "https://mcp.example.com",
"addr": ":9090",
"name": "MCP Proxy",
"version": "1.0.0",
"type": "streamable-http",// The transport type of the MCP proxy server, can be `streamable-http`, `sse`. By default, it is `sse`.
"options": {
"panicIfInvalid": false,
"logEnabled": true,
"authTokens": [
"DefaultTokens"
]
}
},
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
},
"options": {
"toolFilter": {
"mode": "block",
"list": [
"create_or_update_file"
]
}
}
},
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
],
"options": {
"panicIfInvalid": true,
"logEnabled": false,
"authTokens": [
"SpecificTokens"
]
}
},
"amap": {
"url": "https://mcp.amap.com/sse?key=<YOUR_TOKEN>"
}
}
}
optionsCommon options for mcpProxy and mcpServers.
panicIfInvalid: If true, the server will panic if the client is invalid.logEnabled: If true, the server will log the client's requests.authTokens: A list of authentication tokens for the client. The Authorization header will be checked against this list.toolFilter: Optional tool filtering configuration. This configuration is only effective in mcpServers.
mode: Specifies the filtering mode. Must be explicitly set to allow or block if list is provided. If list is present but mode is missing or invalid, the filter will be ignored for this server.list: A list of tool names to filter (either allow or block based on the mode).Tip: If you don't know the exact tool names, run the proxy once without any
toolFilterconfigured. The console will log messages like<server_name> Adding tool <tool_name>for each successfully registered tool. You can use these logged names in yourtoolFilterlist.
In the new configuration, the
authTokensofmcpProxyis not a global authentication token, but rather the default authentication token formcpProxy. WhenauthTokensis set inmcpServers, the value ofauthTokensinmcpServerswill be used instead of the value inmcpProxy. In other words, theauthTokensofmcpProxyserves as a default value and is only applied whenauthTokensis not set inmcpServers. Other fields are the same.
mcpProxyProxy HTTP server configuration
baseURL: The public accessible URL of the server. This is used to generate the URLs for the clients.addr: The address the server listens on.name: The name of the server.version: The version of the server.type: The transport type of the MCP proxy server. Can be streamable-http or sse. By default, it is sse.
streamable-http: The MCP proxy server supports HTTP streaming.sse: The MCP proxy server supports Server-Sent Events (SSE).options: Default options for the mcpServers.mcpServersMCP server configuration, Adopt the same configuration format as other MCP Clients.
transportType: The transport type of the MCP client. Except for streamable-http, which requires manual configuration, the rest will be automatically configured according to the content of the configuration file.
stdio: The MCP client is a command line tool that is run in a subprocess.sse: The MCP client is a server that supports SSE (Server-Sent Events).streamable-http: The MCP client is a server that supports HTTP streaming.For stdio mcp servers, the command field is required.
command: The command to run the MCP client.args: The arguments to pass to the command.env: The environment variables to set for the command.options: Options specific to the client.For sse mcp servers, the url field is required. When the current url exists, sse will be automatically configured.
url: The URL of the MCP client.headers: The headers to send with the request to the MCP client.For http streaming mcp servers, the url field is required. and transportType need to manually set to streamable-http.
url: The URL of the MCP client.headers: The headers to send with the request to the MCP client.timeout: The timeout for the request to the MCP client.Usage of mcp-proxy:
-config string
path to config file or a http(s) url (default "config.json")
-help
print help and exit
-version
print version and exit
sse, You can access the server at http(s)://{baseURL}/{clientName}/sse. (e.g., https://mcp.example.com/fetch/sse, based on the example configuration)streamable-http, You can access the server at http(s)://{baseURL}/{clientName}/mcp. (e.g., https://mcp.example.com/fetch/mcp, based on the example configuration)clients such as fetch to fetch/{authToken}, and then access it via fetch/{authToken}.This project is licensed under the MIT License. See the LICENSE file for details.
Please log in to share your review and rating for this MCP.
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}claude mcp add github npx -y @modelcontextprotocol/server-githubExplore related MCPs that share similar capabilities and solve comparable challenges
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.
by modelcontextprotocol
Model Context Protocol Servers
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
by cline
An autonomous coding assistant that can create and edit files, execute terminal commands, and interact with a browser directly from your IDE, operating step‑by‑step with explicit user permission.
by continuedev
Enables faster shipping of code by integrating continuous AI agents across IDEs, terminals, and CI pipelines, offering chat, edit, autocomplete, and customizable agent workflows.
by upstash
Provides up-to-date, version‑specific library documentation and code examples directly inside LLM prompts, eliminating outdated information and hallucinated APIs.
by github
Connects AI tools directly to GitHub, enabling natural‑language interactions for repository browsing, issue and pull‑request management, CI/CD monitoring, code‑security analysis, and team collaboration.
by daytonaio
Provides a secure, elastic infrastructure that creates isolated sandboxes for running AI‑generated code with sub‑90 ms startup, unlimited persistence, and OCI/Docker compatibility.