mcphub
View on GitHubSelf-hosted MCP gateway and control plane for connecting, controlling, and operating MCP servers.
MCPHub is a self-hosted MCP gateway and control plane: connect local and remote MCP servers once, expose them via stable MCP endpoints with per-user credentials, OAuth 2.0, smart vector routing, health checks and a web dashboard. Ships as Docker/npm with optional PostgreSQL mode.
Use Cases
Aggregate many MCP servers behind one stable MCP endpointConnect Claude Code, Cursor, Cherry Studio or OpenWebUI to shared MCP serversRoute clients to all servers, a group, a single server, or smart routingSemantic vector search to discover the right tools across serversPer-user credential binding with encrypted storage and isolated stdio runtimesOAuth 2.0 client and server mode plus bearer key access controlGroup servers and control tool/prompt/resource visibilityInspect tool-call logs, latency, request status and server healthHot-swap MCP server config without downtimeCompress large tool outputs before returning to clientsProxy interactive MCP Apps on single-server routesDeploy production config backed by PostgreSQLRun headless backend-only MCP gateway with DISABLE_WEB
Built With
- Language
- TypeScript
- Frameworks
- Model Context Protocol SDK · Express · React · Vite · Tailwind CSS · TypeORM · pgvector · Better Auth · @node-oauth/oauth2-server · Node.js · Jest
Tags
mcp · mcp-gateway · mcp-router · mcp-hub · control-plane · self-hosted · oauth2 · sse · streamable-http · stdio · smart-routing · vector-search · observability · docker · typescript · postgresql