MCP Gateway
Integrates multiple MCP servers into a single interface with a management Web UI and real-time status updates.
MCP Gateway
ローカル専用の MCP ゲートウェイです。ブラウザ UI からサーバー登録・プロファイル管理・起動/停止ができ、/mcp WebSocket を通じて MCP クライアントから 1 本で接続できます(serverId または profile 指定)。
セットアップ / 実行
pnpm install
pnpm --filter mcp-gateway-ui run build
pnpm start # http://127.0.0.1:8787
# オプション: --port=8787 --host=127.0.0.1 --data-dir=/path/to/data を cli.js に渡せます
MCP クライアントからの接続
-
サーバーIDで指定
ws://127.0.0.1:8787/mcp?serverId=<サーバーID>
例:claude mcp add mcp-github --url ws://127.0.0.1:8787/mcp?serverId=github-mcp -
プロファイル名で指定(そのプロファイルの先頭サーバーに接続)
ws://127.0.0.1:8787/mcp?profile=<プロファイル名>
例:claude mcp add mcp-dev --url ws://127.0.0.1:8787/mcp?profile=dev
サンプル登録(任意)
初期状態は空です。サンプルが欲しい場合はコマンドで投入してください。
pnpm init:samples # github-mcp (port 9000), fs-mcp (port 9001), default/dev プロファイルを追加
pnpm init:samples -- --force # 既存を上書きしたい場合
機能
- MCP サーバー登録/編集/削除(command/args/env, autoStart)
- プロファイル作成/削除/切替(複数同時有効可)。有効プロファイルの autoStart サーバーを自動起動
- 手動 Start/Stop、ログは
~/.mcp-gateway/logs/<id>.log - 状態保存:
~/.mcp-gateway/state.json - MCP プロキシ:
/mcpで serverId / profile を切替可能
API エンドポイント
GET /api/healthGET /api/stateGET /api/serversPOST /api/serversPUT /api/servers/:idDELETE /api/servers/:idPOST /api/servers/:id/startPOST /api/servers/:id/stopGET /api/profilesPOST /api/profilesPUT /api/profiles/:nameDELETE /api/profiles/:namePOST /api/profiles/:name/activatePOST /api/profiles/active(names: string[])POST /api/reloadGET /api/statusGET /api/logs/:id?lines=200
テスト
pnpm test
ディレクトリ
src/: サーバー本体、CLI、ストレージ、プロセスマネージャ、WebSocket プロキシui/: Vite + React + shadcn UI
注意
- 初回のみ
pnpm installが必要です。以降はオフラインでも動作します。 - Claude などからは
/mcp?serverId=...または/mcp?profile=...を登録してください。
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
MCP Todo Server
A demo Todo application server built with a clean architecture using MCPServer and JSON Placeholder.
ComfyUI MCP Server
Integrates ComfyUI with MCP, allowing the use of custom workflows. Requires a running ComfyUI server.
Pathmode
Build structured intent specs through Socratic AI conversation. Describe a problem or paste a support ticket — Claude challenges vague thinking, asks pointed questions, and builds a structured spec. Exports as intent.md, .cursorrules, or CLAUDE.md.
UUIDv7 Generator
A server for generating version 7 universally unique identifiers (UUIDv7).
MCP Invoice Express
An MCP server for integrating with the InvoiceExpress API.
Page Design Guide MCP Server
MCP server providing modern web design guidance, color psychology, typography, layout patterns, and UI best practices for AI assistants
xMCP Server
A streamable HTTP MCP server that proxies requests to stdio MCP servers within a container, providing a consistent command environment.
stdout-mcp-server
Captures and manages stdout logs from multiple processes via a named pipe system for real-time debugging and analysis.
Shipyard
The Shipyard CLI provides an MCP server for agents to manage Shipyard environments directly: by pulling logs, comparing branches, running tests, and stopping/starting environments..
MCP Tools
Provides file system and command execution tools for LLM clients like Claude Desktop.