MCP-Hub-MCP Server

Provides a central hub to connect to, list tools from, and call tools on multiple MCP servers.
  • typescript

3

GitHub Stars

typescript

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "tpavelek-mcp-hub-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-hub-mcp",
        "--config-path",
        "/path/to/your/mcp-hub-config.json"
      ]
    }
  }
}

You can run an MCP hub that automatically connects to other MCP servers, lists their tools, and executes them. This lets you manage multiple MCP endpoints from a single place, bypass limits, and reduce mistakes by exposing only the most relevant tools.

How to use

Set up the hub to connect to other MCP servers, then use the hub to discover tools across all connected servers and call them from your client. You will first list all available tools to understand what each connected server offers, then select a server and tool to execute with your desired arguments. The hub orchestrates requests and returns results from the remote MCP servers, keeping your workflow streamlined.

How to install

Prerequisites you need before installation:

  • Node.js 18.0.0 or higher

  • npm, yarn, or pnpm

Installation steps

# Clone repository
git clone <repository-url>
cd mcp-hub-mcp

# Install dependencies
npm install
# or
yarn install
# or
pnpm install

Build and start the hub using the commands that match your preferred tooling.

npm run build
# or
yarn build
# or
pnpm build
npm start
# or
yarn start
# or
pnpm start

Configuration and running

Configure how the hub connects to other MCP servers. You can specify multiple MCP servers that the hub should manage, including both local (stdio) and remote (http) configurations.

{
  "mcpServers": {
    "mcp_hub": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-hub-mcp",
        "--config-path",
        "/path/to/your/mcp-hub-config.json"
      ]
    }
  }
}

If you prefer to run the built server directly, you can configure it like this. The path segments shown are placeholders you replace with your actual paths.

{
  "mcpServers": {
    "mcp_hub_node": {
      "command": "node",
      "args": [
        "/path/to/your/mcp-hub-mcp/dist/index.js",
        "--config-path",
        "/path/to/your/mcp-hub-config.json"
      ]
    }
  }
}

Notes on configuration and environment

Environment variable for configuration path can be set to point to your config file. You can also pass the path on the command line when starting the hub.

This hub supports multiple MCP server connections and provides two core tools to interact with those servers: listing all tools across connected servers and calling a specific tool on a chosen server.

Available tools

list-all-tools

Returns a list of tools available across all connected MCP servers.

call-tool

Invokes a specific tool on a chosen MCP server, passing the required tool arguments.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational