Labsco
samanhappy logo

MCPHub

β˜… 2,200

from samanhappy

A hub server for managing and scaling multiple MCP servers via flexible Streamable HTTP (SSE) endpoints.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeNeeds API keys

MCPHub: The Unified Hub for Model Context Protocol (MCP) Servers

English | FranΓ§ais | δΈ­ζ–‡η‰ˆ

MCPHub makes it easy to manage and scale multiple MCP (Model Context Protocol) servers by organizing them into flexible Streamable HTTP (SSE) endpointsβ€”supporting access to all servers, individual servers, or logical server groups.

Dashboard Preview

🌐 Live Demo & Docs

πŸš€ Features

  • Centralized Management - Monitor and control all MCP servers from a unified dashboard
  • Flexible Routing - Access all servers, specific groups, or individual servers via HTTP/SSE
  • Granular Group Visibility - Control Tool, Prompt, and Resource visibility independently for each server inside a group
  • Smart Routing - AI-powered tool discovery using vector semantic search (Learn more)
  • 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
  • Hot-Swappable Config - Add, remove, or update servers without downtime
  • 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)
  • Database Mode - Store configuration in PostgreSQL for production environments (Learn more)
  • Docker-Ready - Deploy instantly with containerized setup

πŸ“š Documentation

TopicDescription
Quick StartGet started in 5 minutes
ConfigurationMCP server configuration options
Database ModePostgreSQL setup for production
OAuthOAuth 2.0 client and server setup
Smart RoutingAI-powered tool discovery
MCP AppsInteractive Apps transparent proxy
CLI GuideManage and call the hub from a terminal
Docker SetupDocker deployment guide

πŸ§‘β€πŸ’» Local Development

Copy & paste β€” that's it
git clone https://github.com/samanhappy/mcphub.git
cd mcphub
pnpm install
pnpm dev

Local 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.json by default; PostgreSQL via TypeORM with pgvector for Smart Routing
  • Auth: JWT + bcrypt for local accounts; bearer keys; built-in OAuth 2.0 server (@node-oauth/oauth2-server); optional Better Auth for GitHub/Google login
  • Protocol: Model Context Protocol SDK

πŸ‘₯ Contributing

Contributions welcome! See our Discord community for discussions and support.

❀️ Sponsor

ko-fi

🌟 Star History

Star History Chart

πŸ“„ License

Licensed under the Apache 2.0 License.