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
Biel.ai MCP Server
Connect AI tools like Cursor and VS Code to your product documentation using the Biel.ai platform.
Code Editor
Enables AI assistants to write, edit, and manage code files directly in a specified directory, respecting .gitignore patterns.
Code Runner MCP
Execute JavaScript and Python code in a secure sandbox. Supports Deno for JS/TS and Pyodide for Python, with configurable permissions.
Agent Loop
An AI Agent with optional Human-in-the-Loop Safety and Model Context Protocol (MCP) integration.
maximumsats-mcp
Bitcoin Lightning + Nostr Web-of-Trust tools for agents (L402 pay-per-call endpoints)
rxjs-mcp-server
Execute, debug, and visualize RxJS streams directly from AI assistants like Claude.
Adobe After Effects
Control Adobe After Effects through a standardized protocol, enabling AI assistants and other applications.
MCP Proxy
A bidirectional MCP proxy connecting stdio and Server-Sent Events (SSE) with OAuth support.
Mermaid
Generate mermaid diagram and chart with AI MCP dynamically.
Google Apps Script MCP Server
Manage Google Apps Script projects, including creation, editing, deployment, and execution. Requires Google Cloud credentials for authentication.