home / mcp / mcp-hub-mcp server
Hub server that connects to and manages multiple MCP servers via a configurable JSON file and a simple toolset.
Configuration
View docs{
"mcpServers": {
"warpdev-mcp-hub-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-hub-mcp",
"--config-path",
"/Users/username/mcp.json"
]
}
}
}You have a hub that connects to and manages multiple MCP servers from a single place. This hub keeps your active tool set focused, reduces context switching, and prevents clutter from rarely used MCPs while still giving you quick access to their capabilities when needed.
You connect to other MCP servers via a configuration file and then interact with them through a simple set of tools. The hub lets you list tools from all connected servers, call a specific tool on a chosen server, or search for tools across all connected servers using patterns.
# Clone repository
git clone <repository-url>
cd mcp-hub-mcp
# Install dependencies
npm install
# or
yarn install
# or
pnpm install
```
```
# Build the project
npm run build
# or
yarn build
# or
pnpm build
```
```
# Start the hub server
npm start
# or
yarn start
# or
pnpm start
```
```
# Development mode (optional)
npm run dev
# or
yarn dev
# or
pnpm devConfigure the hub to connect to other MCP servers by providing a configuration file. The hub supports specifying multiple MCP servers under the mcpServers section. You can also control how the hub locates the configuration file using the MCP_CONFIG_PATH environment variable or a --config-path command line option.
Example configuration snippet shows how to define a connected server using a local npx command. This enables the hub to spawn MCP servers on demand via a single interface.
{
"mcpServers": {
"other_tools": {
"command": "npx",
"args": [
"-y",
"mcp-hub-mcp",
"--config-path",
"/Users/username/mcp.json"
]
}
}
}Lists all tools from every connected MCP server, giving you a quick overview of what is available across the active toolset.
Calls a specific tool on a chosen MCP server, passing the required arguments to execute the task and return results.
Searches for tools across all connected MCP servers using a regex pattern to filter by name or description.