mcphub

Из публичных источников

Самостоятельно размещаемый шлюз и панель управления MCP для подключения, контроля и эксплуатации MCP-серверов.

Машинный перевод · Показать оригинал

Self-hosted MCP gateway and control plane for connecting, controlling, and operating MCP servers.

MCP-серверКатегория: MCP-серверы · Git и разработка · SDK и фреймворкиOpen sourceданные проверены 15 окт. 2026 г.

Обзор

  • mcp
  • mcp-gateway
  • mcp-hub
  • mcp-router
  • mcp-server

Установка

Команды только показываются, маркетплейс их не выполняет. Сверяйтесь с официальной документацией.
  • Официальный сайтИз публичных источниковиз метаданных каталога
    mcphub.app/ ↗
  • Реестр пакетов языкаnodejsИз публичных источниковиз манифеста пакета — публикация в реестре не проверена
    npm install -g @samanhappy/mcphub

    Не проверено: перед установкой убедитесь, что пакет в реестре принадлежит этому проекту.

    www.npmjs.com/package/@samanhappy/mcphub ↗
  • Сборка из исходниковИз публичных источниковиз метаданных каталога

    Сборка из исходников: проверенного рецепта сборки нет — следуйте инструкциям репозитория.

    github.com/samanhappy/mcphub ↗

Совместимость

«Неизвестно» значит, что доказательств не найдено, а не что продукт несовместим.
ПлатформаСтатусАрхитектураДоказательствоУверенность
Claude (web & desktop)Неизвестно———
Claude CodeНеизвестно———
CursorНеизвестно———
VS CodeНеизвестно———
WindsurfНеизвестно———
ChatGPTНеизвестно———
Node.jsСовместимо—манифест пакета: package.json name0.60

Релизы

проверено 29 окт. 2026 г.
v1.1.14Последний29 окт. 2026 г.Официальный источник ↗

Файлы версии 1.1.14

К релизу не приложены файлы.

История релизов

Профиль качества

алгоритм quality-v1.0 · оценено 15 окт. 2026 г.
Оценка качества98
Оценка риска0
Уверенность 1.00
Оценка качества и оценка риска — разные показатели. Высокое качество не гарантирует безопасность.

Составляющие оценки

Поддержка · 2020
last activity 0 days ago
Документация · 1515
README 10465 chars, description present
Готовность к использованию · 1515
install instructions: yes; releases: yes
Метаданные · 1010
4/4 of description, homepage, license, topics
Релизы · 1010
10 release(s), latest 0 days ago
Точность категории · 1010
classifier confidence 0.97
Популярность · 109
2533 stars (log-dampened, 10k = max)
Ясность лицензии · 55
SPDX Apache-2.0
Сообщество · 55
issues enabled, 342 forks

Лицензия

Apache-2.0
Лицензия известнапо данным хостинга репозитория

Это статус политики каталога, а не юридическое заключение.

Источники

github.com/samanhappy/mcphubОсновной★ 2 533 звёздактивность 15 окт. 2026 г.Основной репозиторий · Уверенность 1.00

Отзывы

Войдите, чтобы написать отзыв

Отзывов пока нет.

Альтернативы

capaПохожий
Один capabilities.yaml подключает навыки, инструменты, правила, субагентов, MCP-серверы и плагины в Cursor, Claude Code, Codex, Windsurf, GitHub Copilot и более 30 других AI-агентов для программированияMIT · MCP-серверы
agentПохожий
Унифицированная реализация сервера Model Context Protocol, объединяющая несколько MCP-серверов в один.Apache-2.0 · MCP-серверы
UnlaПохожий
🧩 MCP Gateway — облегчённый шлюз, который мгновенно преобразует существующие MCP Servers и API в MCP-серверы без изменения кода. Поддерживает развёртывание в Docker и имеет интерфейс управления; не требует изменений инфраструктуры.MIT · MCP-серверы
MCPJungleПохожий
Одно место для управления и подключения ко всем вашим MCP-серверамMPL-2.0 · MCP-серверы
metamcpПохожий
MCP-агрегатор, оркестратор, промежуточное ПО и шлюз в одном Docker-контейнереMIT · MCP-серверы
lunarПохожий
lunar.dev: нативный для агентов MCP-шлюз для управления и безопасностиMIT · MCP-серверы

README

Из samanhappy/mcphub · лицензия Apache-2.0 · загружено 29 окт. 2026 г.

MCPHub

An open-source, self-hosted MCP gateway and control plane for connecting, controlling, and operating MCP servers.

[CI] [npm version] [Docker pulls] [License] [Discord] [GitHub stars]

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.

[Dashboard Preview]

🌐 Website, Demo & Docs

🚀 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 >=20.0.0 and pnpm 10.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/mcphub

Open 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.

Upgrading deployments with personal credentials

Database mode requires a persistent MCPHUB_CREDENTIAL_ENCRYPTION_KEY or an existing key file; it no longer generates a local key automatically. Before replacing a working container, back up its original key and preserve the same value in deployment secrets. A database backup alone cannot recover encrypted credentials if the key is lost. See the Credential Key Upgrade and Recovery Guide for working deployments and recovery after a failed upgrade.

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/mcphub

Tip: Change the admin password after first login for security.

Headless mode: Set DISABLE_WEB=true to 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 from mcp_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 group

Set SMART_ROUTING_PATH=my_smart to use /mcp/my_smart (and /mcp/my_smart/{group}) without $. Restart to apply; /mcp/$smart remains supported. Include BASE_PATH before /mcp when configured. The custom segment must not match an existing server name, group name or group ID.

Security 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

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

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

🏢 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

[Sponsor samanhappy]

[ko-fi]

Chinese users can also support via WeChat Pay — see 中文版.

Acknowledgements

  • AtomGit: Hosts MCPHub in China, making the project easier to access for users in mainland China.

🌟 Star History

[Star History Chart]

📄 License

Licensed under the Apache 2.0 License.

Открыть репозиторий ↗