MCP Gateway (Parent MCP Server)
Manages SQLite database operations through child MCP servers, allowing database queries and interactions via the parent server's unified interface.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Gateway (Parent MCP Server)
複数の子MCPサーバーを一元管理し、スキーマ取得やツール実行を肩代わりするゲートウェイです。
概要
children_config.(json|toml)に定義した子サーバーを起動し、常駐セッション+lockで衝突を防ぎながらツールを呼び出します。子サーバーのスキーマ取得(
get_schema)や任意ツール呼び出し(execute_child_tool)を1つのインターフェースで提供します。children_abstract.jsonがあれば、子サーバー概要をリソースとして返します。
Related MCP server: MCP-Gateway
子サーバー例(同梱テンプレート)
children_config.example.json/children_config.example.toml では以下を登録しています。children_abstract.example.json と合わせて参考にしてください。
serena: コードベースのシンボリック検索/編集、メモ管理、限定的なシェル実行(tools: read_file, find_file, find_symbol, replace_content, execute_shell_command など)context7: ライブラリ名→Context7互換ID解決とドキュメント取得(resolve-library-id, get-library-docs)codegraph: コードグラフ検索、依存/呼び出し探索、ファイル読取り、GraphRAG検索、再インデックス(query_codebase, read_file_content, reindex_repository など)
セットアップ
依存関係インストール
uv sync設定ファイルを作成(テンプレートをコピー)
# JSONで使う場合 cp children_config.example.json children_config.json # codex CLIなどTOML形式を使う場合 cp children_config.example.toml children_config.toml cp children_abstract.example.json children_abstract.jsonchildren_config.jsonまたはchildren_config.toml内で各子サーバーのコマンド/引数/環境変数を環境に合わせて修正してください。
起動方法
ローカル実行(リポジトリclone済み)
uv run mcp-gateway \
--children-config /absolute/path/to/children_config.json \
--children-abstract /absolute/path/to/children_abstract.jsonuvx経由(GitHub公開後)
uvx --from git+https://github.com/OWNER/MCPgateway \
mcp-gateway \
--children-config /absolute/path/to/children_config.json \
--children-abstract /absolute/path/to/children_abstract.json※ OWNER/リポジトリ名は実際のものに置き換えてください。
codex CLIなどTOML設定で渡す場合
uv run mcp-gateway \
--children-config /absolute/path/to/children_config.toml \
--children-abstract /absolute/path/to/children_abstract.json他プロジェクトから使う例(.mcp.json)
{
"mcpServers": {
"mcp-gateway": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/OWNER/MCPgateway",
"mcp-gateway",
"--children-config",
"/absolute/path/to/children_config.json",
"--children-abstract",
"/absolute/path/to/children_abstract.json"
],
"env": { "PYTHONUTF8": "1" }
}
}
}--children-config には .json / .toml のどちらも指定できます。
親サーバーが提供する主なツール
list_registered_children()登録済み子サーバー名の一覧get_child_status()子サーバーの起動状態/エラー情報get_schema(child_name)子サーバーのツール・リソースのスキーマ取得(常駐セッション経由)execute_child_tool(child_name, tool_name, tool_args, head_chars=None, tail_chars=None)子サーバーツールの実行(長文はhead/tailで省略可能)close_child_session(child_name)セッションを明示的に停止Resources:
mcp://server_summary,mcp://children_servers(abstract提供時)
使い方のヒント
スキーマ確認:
get_schema("serena"),get_schema("codegraph")等でツール一覧を取得できます。ツール実行: 例)
execute_child_tool("serena", "find_file", {"file_mask": "*.py", "relative_path": "."})codegraphで再インデックスが必要な場合は
execute_child_tool("codegraph", "reindex_repository", {"incremental": true})を実行してください。
プロジェクト構造
MCPgateway/
├── mcp_gateway_server.py # 親MCPサーバー本体(FastMCPベース)
├── children_config.example.json # 子サーバー設定テンプレート
├── children_config.example.toml # 子サーバー設定テンプレート(TOML版)
├── children_abstract.example.json# 子サーバー概要テンプレート
├── children_config.json # 実運用用(ユーザー作成)
├── children_config.toml # 実運用用(TOMLで使う場合)
├── example.mcp.json # .mcp.json設定例
├── pyproject.toml # パッケージ定義・エントリポイント(mcp-gateway)
└── README.mdトラブルシューティング
Python環境が見つからない場合:
uv syncを実行して仮想環境を作成してください。子サーバーが起動しない場合:
children_config.json/children_config.tomlのコマンド/パス/環境変数を確認npx/uvx など依存コマンドが使えるか確認
子サーバー側の依存をインストール
子サーバーのstderrを確認したい場合:
DEBUG_MCP=1を設定して起動するとstderrを出力します。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP federation gateway: route, govern and observe agent tools across clouds and MCP servers.
MCP gateway and cloud hosting for MCP servers, agents and apps like RAG, managed from your agent.
Single-connection MCP gateway discovering and executing 490+ verified MCP & A2A tools.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAggregates multiple child MCP servers into a single MCP server endpoint, enabling clients to use various tools (e.g., filesystem, Brave Search) through one interface.46 npm-
- AlicenseNot gradedqualityDmaintenanceA simple gateway that connects to multiple child MCP servers and forwards tool calls to them, enabling seamless client interactions with multiple tools.46 npmISC
- FlicenseNot gradedqualityCmaintenanceEnables centralized routing, discovery, namespacing, and execution of tools from multiple remote MCP servers over HTTP/SSE, aggregating them behind a unified MCP gateway with dynamic server management.-
- AlicenseNot gradedqualityBmaintenanceEnables agents to reach many child MCP servers through a single gateway endpoint, where each child's tools are published as namespaced tools behind one bearer token. It also provides an admin web UI, REST API, and built-in tools for adding, editing, muting, and restarting those servers without restarting the process.4MIT