mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-24 02:39:19 -05:00
a393404599288789ac9e041809c7629049be71e9
MCP Hub
A hub server for MCP servers.
Configuration
MCP Hub allows you to configure multiple MCP servers. You can add as many stdio/sse MCP servers as you want.
The configuration file should be named mcp_settings.json and placed in the root directory of the project.
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
},
"sequential-thinking": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
}
}
}
Installation
Using Docker
-
Add your
mcp_settings.jsonfile to the current directory. -
Run the following command to start the Docker container:
docker run -p 3000:3000 -v ./mcp_settings.json:/app/mcp_settings.json samanhappy/mcphub
Local Installation
- Clone the repository:
git clone https://github.com/samanhappy/mcphub.git
cd mcphub
- Install dependencies:
pnpm install
- Run the server:
pnpm dev
Usage
Description
A unified hub for centralized management and dynamic organization of multiple MCP servers into streamable HTTP (SSE) endpoints, with support for flexible routing strategies
Readme
Apache-2.0
16 MiB
Languages
TypeScript
98.2%
JavaScript
0.9%
CSS
0.7%
Dockerfile
0.1%
