Skip to content

One-MCP/multi-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi MCP

An MCP server that proxies multiple MCP servers.

Getting Started

Clone and cd:

git clone https://github.com/One-MCP/multi-mcp.git
cd multi-mcp

Install dependencies:

uv venv
uv pip install -r requirements.txt

Start server:

hypercorn src.main:app
# hypercorn src.main:app --bind 0.0.0.0:7860

Then you can access the server via http://localhost:8080/sse (for SSE mode) or http://localhost:8080/mcp (for streamable HTTP mode).

Configuration

You can follows the VSCode Documentation#Configuration format to create the configuration JSON files, and there are also example files in the examples/config.

Environment Variables

Variable Name Default Value Description
AUTH_TOKEN None The authentication token, the server will not perform authentication if not set
CONFIG ./examples/config/mcp_tools.json Path to the MCP configuration file
ENCODING utf-8 The character encoding used for communication
TRANSPORT sse The transport protocol for the server (one of stdio, sse, http)
USE_NAMESPACE True Whether to use namespaces for tools/resources
DEBUG False Enable or disable debug mode

Authorization Header

This program uses either Authorization or X-MCP-Token HTTP headers for authentication. For the Authorization header, it receives Bearer <Your-AUTH_TOKEN> while for the X-MCP-Token, it receives <Your-AUTH_TOKEN>.

Inspiration

This project is inspired by: multi-mcp

About

An MCP server that proxies multiple MCP servers.

Topics

Resources

License

Stars

Watchers

Forks

Languages