NVM MCP Server
Antigravity用 NVM MCPサーバー
NVM (Node Version Manager) をラップし、Antigravityエージェントが $PATH 上にNodeやnpmが存在しなくてもNode.jsのバージョンを完全に制御できるようにするMCPサーバーです。
なぜこれが必要なのか
Antigravityエージェントは非対話型サブプロセスで実行され、シェルの .zshrc や .bashrc を読み込みません。NVMは対話型シェルでのみNodeを $PATH に追加するため、エージェントは node や npm を見つけることができません。このサーバーはすべてのコマンドの直前に nvm.sh を読み込むことで、$PATH の問題を完全に回避します。
Related MCP server: Pare
要件
Python 3.10以上
~/.nvmにNVMがインストールされていること(または設定でNVM_DIRを指定)pip install mcp(またはpip install -r requirements.txt)
インストール
# 1. Clone / copy this folder somewhere permanent
cp -r nvm-mcp-server ~/.nvm-mcp-server
# 2. Install the one dependency
pip install -r ~/.nvm-mcp-server/requirements.txt
# Or, if you prefer a venv:
python3 -m venv ~/.nvm-mcp-server/.venv
~/.nvm-mcp-server/.venv/bin/pip install mcpAntigravityの設定
~/.gemini/antigravity/mcp_config.json を開き(存在しない場合は作成し)、以下を追加します:
{
"mcpServers": {
"nvm-manager": {
"command": "python3",
"args": ["/Users/YOUR_USERNAME/.nvm-mcp-server/nvm_server.py"],
"env": {
"NVM_DIR": "/Users/YOUR_USERNAME/.nvm"
}
}
}
}Venvユーザーの方へ:
"python3"をvenvのPythonへの絶対パスに置き換えてください。 例:"/Users/YOUR_USERNAME/.nvm-mcp-server/.venv/bin/python3"
設定を保存した後、Antigravityを再起動してください。MCPサーバーの下に nvm-manager サーバーが表示されます。
利用可能なツール
ツール | 説明 |
| ローカルにインストールされているすべてのNodeバージョンを一覧表示 |
| インストール可能なバージョンを一覧表示(フィルター指定可: |
| バージョンをダウンロードしてインストール ( |
| セッション有効なバージョンを切り替え — 以降のすべての呼び出しで保持 |
| 現在のセッションでアクティブなバージョンを表示 |
| NVMエイリアスを設定(例: |
| アクティブな(または指定された)バージョンで |
| アクティブな(または指定された)バージョンで |
| アクティブな(または指定された)バージョンで |
3つの実行ツールすべてで、オプションの version フィールド(その呼び出しのみセッション有効なバージョンを上書き)と、オプションの cwd フィールドを受け付けます。
エージェントワークフローの例
Agent: nvm_list → sees v20.11.0 and v22.3.0 installed
Agent: nvm_use "22" → session set to Node 22
Agent: npm_run "install" → runs npm install under Node 22
Agent: node_run "index.js" → runs the script under Node 22
# Need a version that isn't installed yet?
Agent: nvm_install "lts" → downloads latest LTS
Agent: nvm_use "lts" → switches to it
Agent: nvm_alias "default" "lts" → makes it the permanent defaultカスタムNVMの場所
NVMが ~/.nvm 以外の場所にインストールされている場合は、mcp_config.json の env ブロックで NVM_DIR を設定してください:
"env": {
"NVM_DIR": "/opt/homebrew/opt/nvm"
}トラブルシューティング
症状 | 解決策 |
|
|
|
|
バージョンが見つからない |
|
サーバーが表示されない | Antigravity → |
This server cannot be installed
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
- AlicenseBqualityDmaintenanceCustom MCP server for n8n automation, providing 27 tools to manage workflows, executions, credentials, variables, and more via the n8n REST API. Designed to fix compatibility issues with Antigravity AI assistant.276314MIT
- AlicenseNot gradedqualityAmaintenanceProvides MCP servers that wrap common developer tools (git, npm, docker, etc.) returning structured JSON output, enabling AI agents to reliably interact with these tools without parsing fragile terminal text.4137MIT
- AlicenseAqualityAmaintenanceAn MCP server that bridges Claude Code with Antigravity CLI using a Swarm Agent architecture to optimize local development workflows and minimize LLM token costs. Includes a web UI for monitoring agent workflows.2117MIT
- FlicenseNot gradedqualityBmaintenanceA lightweight Node.js MCP server with zero dependencies offering 9 built-in tools for system info, web fetching, GitHub search, file operations, shell execution, and key-value memory, enabling AI agents to perform these tasks via the Model Context Protocol.
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
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/realjacoblinder/nvm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server