mcpgo
mcpgo
Claude Code の MCP を Claude との会話で管理 — 一覧表示、再起動、ラップなど。
Claude Code が動作するすべての環境で動作します。Remote Control など、/mcp が使えない環境でも利用できます。
インストール
npm install -g @exfil/mcpgo
claude mcp add mcpgo --scope user -- mcpgo要件: Node.js ≥ 18
Related MCP server: MCP Server Generator
Remote Control
Claude Code の Remote Control モードでは /mcp にアクセスできません。つまり、リモートで MCP サーバーの一覧表示、再起動、管理ができないということです — mcpgo を使わない限り。
mcpgo 自体が MCP サーバーであるため、Claude Code が動作するすべての場所で利用できます:
"list my mcps"
"restart github"
"check postgres health"/mcp の UI は不要です。
できること
信頼性の高い再起動
Claude Code は起動時に作成するパイプを介して stdio MCP サーバーに接続します。サーバーがクラッシュしたり再起動したい場合、Claude Code は自動復旧なしで失敗としてマークします。
mcpgo はラッパーでこれを解決します: Claude Code と MCP の間に常駐する長寿命プロセスです。Claude Code はラッパー(生存し続ける)と通信し、ラッパーは実際のサーバーを子プロセスとして起動します — サーバーが終了すると自動的に再起動します。
ラッピングは任意です — 何もラップせずに、MCP の一覧表示、追加、削除だけに mcpgo を使うこともできます。ラッピングが必要なのは、/mcp に触れずに信頼性の高い再起動を実現したい場合だけです。
MCP ごとの初期設定:
wrap_mcp_stdio— 設定内の対象 MCP をラップしますClaude Code を再起動(または
/mcpで切断 + 再接続)完了 — いつでも
restart_mcp_processを使用できます
設定後:
"restart github" → instant, wrapper auto-respawns the child, Claude Code stays connected
"restart postgres" → sameラッピングを解除したい場合は、unwrap_mcp_stdio を使用して元の設定に戻します。
ツール
プロセス管理
wrap_mcp_stdio
信頼性の高い再起動のために Claude Code の stdio MCP をラップします。
"wrap github"
"wrap postgres"unwrap_mcp_stdio
ラップされた MCP を元の設定に戻します。
"unwrap github"
"unwrap postgres"restart_mcp_process
ラップされた MCP の子プロセスを再起動します — ラッパーが自動的に再起動し、Claude Code は接続を維持します。
"restart github"
"restart postgres"check_mcp_health
MCP が設定されているか、ラップされているか、プロセスが実行中かを確認します。
"check github health"
"is postgres running?"Codex CLI サポート
wrap_codex_mcp_stdio
~/.codex/config.toml から Codex CLI MCP をラップします。
"wrap my codex mcp called postgres"restart_codex_mcp_process
ラップされた Codex CLI MCP を再起動します。
"restart the codex postgres"設定管理
list_all_mcps
設定されているすべての MCP サーバーを一覧表示します。
"list my mcps"
"what mcps do I have?"add_mcp
~/.claude.json に新しい MCP サーバーを追加します。
"add an mcp called my-tool that runs python server.py"remove_mcp
MCP サーバーを削除します。
"remove the my-tool mcp"configure_mcp
既存の MCP サーバーの設定フィールドを更新します。
"change github's command to python3"get_mcp_details
特定の MCP の完全な設定詳細を取得します。
"show me the github config"
"get details for postgres"ラッピングの仕組み
wrap_mcp_stdio "github" を呼び出すと、設定エントリは次のように変わります:
{ "command": "python", "args": ["server.py"] }から:
{
"command": "node",
"args": [
"/path/to/wrapper.js",
"--name", "github",
"--pidfile", "...",
"--env-allowlist", "PATH,Path,PATHEXT,HOME,USERPROFILE,SystemRoot,...",
"--",
"python", "server.py"
]
}ラッパーは:
元のコマンドを子プロセスとして起動
子プロセスの PID を pidfile に書き込む
子プロセスが終了すると自動的に再起動(バックオフ付き)
厳選された環境変数を子プロセスに渡す(PATH、ロケール、一時ディレクトリ、ホーム、および MCP の宣言された
envキー)— Claude Code の完全な環境を継承する代わりにSIGTERM、SIGINT、または stdin EOF でクリーンに終了
restart_mcp_process は pidfile を読み取り、子プロセスを終了します。ラッパーが再起動するため、Claude Code は切断を認識しません。
unwrap_mcp_stdio はこれを逆にします — -- 以降の引数から元のコマンドを復元し、pidfile を削除します。
安定したラッパーの場所
MCP をラップすると、mcpgo は wrapper.js を安定したユーザーデータの場所にコピーし、そのパスを ~/.claude.json に書き込みます。これにより、設定は npx キャッシュのクリアや mcpgo のバージョンアップグレード後も存続します — ラッパーが突然消えることはありません。
Windows:
%LOCALAPPDATA%\mcpgo\wrapper.jsLinux/macOS:
~/.mcpgo/wrapper.js
既にラップされた MCP に対して wrap_mcp_stdio を再実行すると、ラッパーのコピーがその場で更新されます。
Pidfile の場所
Windows:
%LOCALAPPDATA%\mcpgo\pids\<name>.pidLinux/macOS:
$TMPDIR/mcpgo/pids/<name>.pid
注意事項
ラッピングを有効にするには Claude Code の再起動(または手動で
/mcpから切断 + 再接続)が必要です — Claude Code は設定をメモリにキャッシュするためrestart_mcp_processはラップされた MCP で最も効果的です。ラップされていない MCP ではプロセスを終了しますが、/mcpから手動で再接続する必要がありますリクエスト途中のクラッシュは一時的なプロトコル不整合を引き起こす可能性があります。Claude Code は次のツール呼び出しで回復します
ラップされた MCP は、Claude Code の完全な環境ではなく、厳選された環境変数(PATH、ロケール、一時ディレクトリ、ホーム、および MCP の宣言された
envキー)を受け取ります。以前にラップした MCP にこのデフォルトを適用するには、wrap_mcp_stdioを再実行してくださいlist_all_mcpsとget_mcp_detailsはデフォルトでenvの値を伏せ字にするため、これらのツールを使って MCP 設定に保存されたシークレットを外部に持ち出すことはできません — 実際に確認する必要がある場合はshow_env_values: trueを渡してください
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables dynamic loading, hot-reloading, and orchestration of MCP servers without restarting Claude Code, allowing programmatic tool calling and workflow automation across multiple servers.2
- FlicenseNot gradedqualityFmaintenanceCreates, manages, and registers custom MCP servers for Claude Desktop. Enables users to generate and configure new MCP servers through natural language.11
- AlicenseAqualityDmaintenanceA meta-MCP server that dynamically manages and invokes any MCP server on the fly, enabling runtime addition, removal, and tool invocation without restarting Claude Code.57MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server for coordinating multiple Claude Code sessions across related projects.
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jschoemaker/mcpgo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server