MCPHub

by @samanhappy

Hub MCP Server

Organize multiple MCP servers behind shared HTTP or SSE endpoints. MCPHub adds a management dashboard, group-level visibility controls, semantic routing, authentication, and a terminal interface.

MCP Gateways & Proxies2,544nodeApache-2.0

Server facts

MCPHub MCP Server

GitHub stars

2,544

Last commit

Oct 18, 2026

Runtime

node

License

Apache-2.0

Project

License
Apache-2.0

Tech

Runtime
nodeTypeScript
Transports
stdio
Remote access
No

Activity

GitHub stars
2,544
Last commit
Data as of

Tags

  • Mcp Gateway
  • Oauth
  • Self Hosted
  • Server Management
  • Tool Routing

Overview

MCPHub is a management and routing layer for multiple MCP servers rather than a single-purpose tool provider. It groups upstream servers behind shared endpoints that can expose everything, one server, or a logical collection. Within a group, tools, prompts, and resources can each have their visibility controlled separately. A dashboard centralizes monitoring and configuration, and changes can be applied without restarting the hub. Smart routing uses vector-based semantic discovery to identify relevant tools instead of requiring clients to work through every available capability.

The project also proxies interactive MCP Apps on individual-server routes and can compress large textual tool results before sending them to clients. Authentication features include bearer keys and OAuth client/server support. Optional social login requires database mode, which stores configuration in PostgreSQL; file-based settings are the default. Docker deployment includes a persistent data directory so credentials and state survive restarts. A command-line interface handles login, server management, tool inspection, calls, and key creation against a running hub. The README says MCP endpoints require authentication by default, while skipping dashboard authentication is a separate setting. On first launch, an unset admin password is generated and printed in the logs. These operational details matter when using the hub as a shared access point rather than simply running an individual MCP server locally.

Install & configure

Requirements

  • Docker
  • An mcp_settings.json file for the custom-config example
  • A persistent data directory
  • An MCP client for routed access
Documented launch / install command
docker run -p 3000:3000 -v ./mcp_settings.json:/app/mcp_settings.json -v ./data:/app/data samanhappy/mcphub

This starts the hub, not a stdio tool server. Open its dashboard on port 3000 and connect clients to /mcp. MCP endpoints require authentication by default. An unset first-launch admin password is printed in logs.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

A supported configuration example is not available for this client and transport. Check the client documentation for its connection flow; do not substitute an undocumented JSON format.

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "mcphub": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "mcphub": {
      "type": "http",
      "url": "http://localhost:3000/mcp"
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "mcphub": {
      "serverUrl": "http://localhost:3000/mcp"
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "mcphub": {
      "type": "http",
      "url": "http://localhost:3000/mcp"
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Use cases

  • Expose a chosen group of MCP servers through one client endpoint.
  • Manage server configuration and visibility from a dashboard.
  • Discover relevant tools through semantic routing.
  • Inspect and invoke hub tools from terminal workflows.

Strengths

  • Supports all-server, group, and individual-server routing.
  • Allows independent visibility controls for tools, prompts, and resources.
  • Includes authenticated endpoints, a dashboard, and a CLI.
  • Can update server configuration without downtime.

Limitations

  • GitHub and Google social login require database mode.
  • The extended Docker image is larger and includes amd64-only browser support.
  • Disabling endpoint authentication is intended only for trusted environments.

MCPHub setup notes

  • MCPHub's example uses http, while its catalog transports are stdio; use the example's connection type.

Frequently asked questions

The README describes routing configured upstream servers rather than naming a fixed built-in MCP tool catalog.

Related MCP servers