mcphub
English | 中文版
MCPHub makes it easy to manage and scale multiple MCP (Model Context Protocol) servers by organizing them into flexible Streamable HTTP (SSE) endpoints—supporting access to all servers, individual servers, or logical server groups.
Create a mcp_settings.json
file to customize your server settings:
{ "mcpServers": { "amap": { "command": "npx", "args": ["-y", "@amap/amap-maps-mcp-server"], "env": { "AMAP_MAPS_API_KEY": "your-api-key" } }, "playwright": { "command": "npx", "args": ["@playwright/mcp@latest", "--headless"] }, "fetch": { "command": "uvx", "args": ["mcp-server-fetch"] }, "slack": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-slack"], "env": { "SLACK_BOT_TOKEN": "your-bot-token", "SLACK_TEAM_ID": "your-team-id" } } } }
Recommended: Mount your custom config:
docker run -p 3000:3000 -v $(pwd)/mcp_settings.json:/app/mcp_settings.json samanhappy/mcphub
or run with default settings:
docker run -p 3000:3000 samanhappy/mcphub
Open http://localhost:3000
and log in with your credentials.
Note: Default credentials are
admin
/admin123
.
Dashboard Overview:
As of now, support for streaming HTTP endpoints varies across different AI clients. If you encounter issues, you can use the SSE endpoint or wait for future updates.
Connect AI clients (e.g., Claude Desktop, Cursor, DeepChat, etc.) via:
http://localhost:3000/mcp
This endpoint provides a unified streamable HTTP interface for all your MCP servers. It allows you to:
Group-Specific Endpoints (Recommended):
For targeted access to specific server groups, use the group-based HTTP endpoint:
http://localhost:3000/mcp/{group}
Where {group}
is the ID or name of the group you created in the dashboard. This allows you to:
Server-Specific Endpoints: For direct access to individual servers, use the server-specific HTTP endpoint:
http://localhost:3000/mcp/{server}
Where {server}
is the name of the server you want to connect to. This allows you to access a specific MCP server directly.
Note: If the server name and group name are the same, the group name will take precedence.
Connect AI clients (e.g., Claude Desktop, Cursor, DeepChat, etc.) via:
http://localhost:3000/sse
For targeted access to specific server groups, use the group-based SSE endpoint:
http://localhost:3000/sse/{group}
For direct access to individual servers, use the server-specific SSE endpoint:
http://localhost:3000/sse/{server}
git clone https://github.com/samanhappy/mcphub.git cd mcphub pnpm install pnpm dev
This starts both frontend and backend in development mode with hot-reloading.
For windows users, you may need to start the backend server and frontend separately:
pnpm backend:dev
,pnpm frontend:dev
.
If you are using Nginx to reverse proxy MCPHub, please make sure to add the following configuration in your Nginx setup:
proxy_buffering off
Contributions of any kind are welcome!
Welcome to join our Discord community for discussions and support.
If you like this project, maybe you can consider:
Licensed under the Apache 2.0 License.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!