mcphub
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcphublist all my configured MCP servers and their current status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCPHub
An open-source, self-hosted MCP gateway and control plane for connecting, controlling, and operating MCP servers.
English | FranΓ§ais | δΈζη
MCPHub provides a unified control point between AI clients and MCP servers. Connect local and remote MCP servers once, organize and route their capabilities through stable endpoints, control access with authentication, scoped credentials, and per-user visibility, and operate everything with centralized logs, activity tracking, and health monitoring.
It works with MCP clients such as Claude Code, Cursor, Cherry Studio, OpenWebUI, and other MCP-compatible applications.

π Website, Demo & Docs
Website: mcphub.app
Documentation: docs.mcphub.app
Demo Environment: demo.mcphub.app
Related MCP server: MetaMCP
π Features
Connect once, expose everywhere
Smart Routing β - AI-powered tool discovery using vector semantic search (Learn more)
Unified MCP Gateway - Expose all connected servers through stable MCP endpoints, including routes for groups and individual servers
Server Aliases and Routing - Define aliases and route clients to all servers, specific groups, individual servers, or smart routing
SSE / Streamable HTTP / stdio Support - Connect local and remote MCP servers over the supported transports
Hot-Swappable Config - Add, remove, or update servers without downtime
Control access and credentials
Per-user Credentials β - Bind personal keys to one shared server, with encrypted storage and isolated stdio runtimes (Learn more)
Authentication and Access Control - Use OAuth 2.0, bearer keys, and server or group visibility controls to manage access
OAuth 2.0 Support β - Both client and server modes for secure authentication (Learn more)
Social Login - Seamless GitHub and Google login support with Better Auth integration (requires Database Mode)
Server and Group Management - Organize servers into groups, manage visibility, and control Tool, Prompt, and Resource exposure
Operate with confidence
Logs and Observability - Inspect tool-call activity, request status, latency, and server logs
Health Checks - Monitor connection health and server status from one place
Web Dashboard - Manage server configuration and runtime operations from a browser
MCP Apps Proxy - Transparently forward interactive MCP Apps on single-server routes (Learn more)
Tool Result Compression - Transparently reduce large text tool outputs before they reach clients
Database Mode - Store configuration in PostgreSQL for production environments (Learn more)
Docker-Ready - Deploy instantly with containerized setup
π§ Quick Start
Prerequisites
Docker (recommended) β the fastest way to run MCPHub; all commands below use it
Node.js
^18.0.0 || >=20.0.0and pnpm10.12.4β only needed to run from source or develop locally (see Local Development)
Start with Docker
docker run -p 3000:3000 -v ./data:/app/data samanhappy/mcphubOpen http://localhost:3000 and log in with username admin. On first launch, if no ADMIN_PASSWORD environment variable is set, a random password is generated and printed to the server logs.
Settings, users, and credential bindings persist in ./data by default.
Want your own servers? Before the first launch, create data/mcp_settings.json (see Configuration). After launch, add servers in the dashboard or edit the existing file and restart MCPHub.
Configuration
Create data/mcp_settings.json before the first launch:
{
"mcpServers": {
"time": {
"command": "npx",
"args": ["-y", "time-mcp"]
},
"fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"]
}
}
}π See Configuration Guide for full options including OAuth, environment variables, and more.
Docker Deployment
See Start with Docker for the copy-paste command. Keep ./data mounted so settings, users, and credential bindings survive container recreation.
Two image variants are published under samanhappy/mcphub:
latestβ the default image. Includes Node.js/pnpm, Python, uv/uvx, Git, and build tools. Covers most MCP servers.latest-fullβ the extended image. Adds Rust toolchain (Cargo/rustc), Docker Engine, and Playwright browsers (Chrome + Firefox, amd64 only). Use this for Rust-based servers or container-in-container workflows. Larger download.
See Docker Setup for build options and Docker-in-Docker configuration.
Access Dashboard
Open http://localhost:3000 (see Start with Docker for login details). You can also pre-set the password:
# Docker: set admin password via environment variable
docker run -p 3000:3000 -v ./data:/app/data -e ADMIN_PASSWORD=your-secure-password samanhappy/mcphubTip: Change the admin password after first login for security.
Headless mode: Set
DISABLE_WEB=trueto skip serving the bundled dashboard UI and run MCPHub with only the backend/API and MCP endpoints. This is useful when you want to manage servers directly frommcp_settings.json.
Connect AI Clients
Connect AI clients (Claude Desktop, Cursor, etc.) via:
http://localhost:3000/mcp # All servers
http://localhost:3000/mcp/{group} # Specific group
http://localhost:3000/mcp/{server} # Specific server
http://localhost:3000/mcp/$smart # Smart routing
http://localhost:3000/mcp/$smart/{group} # Smart routing within groupSecurity note: MCP endpoints require authentication by default to prevent accidental exposure. To allow unauthenticated MCP access, disable Enable Bearer Authentication in the Keys section. Skip Authentication only affects dashboard login. Use only in trusted environments.
π See API Reference for detailed endpoint documentation.
π Documentation
Topic | Description |
Get started in 5 minutes | |
MCP server configuration options | |
PostgreSQL setup for production | |
OAuth 2.0 client and server setup | |
AI-powered tool discovery | |
Interactive Apps transparent proxy | |
Manage and call the hub from a terminal | |
Docker deployment guide |
π§βπ» Local Development
git clone https://github.com/samanhappy/mcphub.git
cd mcphub
pnpm install
pnpm devLocal development uses admin / admin123 and stores its writable settings copy at data/mcp_settings.dev.json, so the repository mcp_settings.json stays credential-free.
For Windows users, start backend and frontend separately:
pnpm backend:dev,pnpm frontend:dev
π See Development Guide for detailed setup instructions.
π Tech Stack
Backend: Node.js, Express, TypeScript (ESM)
Frontend: React, Vite, Tailwind CSS
Storage: file-based
mcp_settings.jsonby default; PostgreSQL via TypeORM with pgvector for Smart RoutingAuth: JWT + bcrypt for local accounts; bearer keys; built-in OAuth 2.0 server (
@node-oauth/oauth2-server); optional Better Auth for GitHub/Google loginProtocol: Model Context Protocol SDK
π’ Production Support
Running MCPHub in production?
Work directly with the maintainer on production architecture, OAuth/OIDC, identity and access control, credential management, audit, Kubernetes, and HA readiness.
Discuss a production pilot β
π₯ Contributing
Contributions welcome! See our Discord community for discussions and support.
β€οΈ Sponsor
Chinese users can also support via WeChat Pay β see δΈζη.
π Star History
π License
Licensed under the Apache 2.0 License.
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
MCP Hub: AI service discovery, per-user OAuth, and multi-service workflow orchestration
Connect MCP clients to 2,000+ AI models without managing provider API keys.
Unified gateway exposing 150+ tools across all NexGenData MCP servers via one endpoint.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceAggregates multiple MCP servers behind a single, secure endpoint with unified tool/resource discovery, OAuth authentication, and resilient request routing. Enables users to manage and interact with multiple MCP backends through one centralized interface with load balancing and circuit breakers.2-
- AlicenseNot gradedqualityBmaintenanceEnables dynamic aggregation of multiple MCP servers into a unified endpoint with middleware, orchestration, and gateway capabilities.MIT
- AlicenseAqualityAmaintenanceEnables AI harnesses to connect to a single MCP endpoint that routes to multiple downstream MCP servers, discovering and executing capabilities on demand while keeping tool schemas out of context.429 npmApache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables centralized management, proxying, and aggregation of multiple MCP servers behind unified endpoints, with a web GUI, server groups, tool filtering, and lifecycle controls.13 npmApache 2.0