NVM MCP Server
An MCP server that wraps NVM (Node Version Manager) to give Antigravity agents full control over Node.js versions without requiring Node or npm to be on the system PATH. It provides tools to install, switch between, and run commands with different Node versions directly within agent workflows.
README
NVM MCP Server for Antigravity
An MCP server that wraps NVM (Node Version Manager),
giving Antigravity agents full control over Node.js versions — without needing Node
or npm to already be on $PATH.
Why this exists
Antigravity agents run in a non-interactive subprocess and never source your shell's
.zshrc / .bashrc. Because NVM adds Node to $PATH only in interactive shells,
agents can't find node or npm. This server sources nvm.sh directly before every
command, completely bypassing the $PATH problem.
Requirements
- Python 3.10+
- NVM installed at
~/.nvm(or setNVM_DIRin the config) pip install mcp(orpip install -r requirements.txt)
Installation
# 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 mcp
Antigravity Configuration
Open (or create) ~/.gemini/antigravity/mcp_config.json and add:
{
"mcpServers": {
"nvm-manager": {
"command": "python3",
"args": ["/Users/YOUR_USERNAME/.nvm-mcp-server/nvm_server.py"],
"env": {
"NVM_DIR": "/Users/YOUR_USERNAME/.nvm"
}
}
}
}
Venv users: replace
"python3"with the absolute path to the venv Python, e.g."/Users/YOUR_USERNAME/.nvm-mcp-server/.venv/bin/python3".
Restart Antigravity after saving the config. The nvm-manager server will appear under MCP Servers.
Available Tools
| Tool | What it does |
|---|---|
nvm_list |
List all locally installed Node versions |
nvm_list_remote |
List versions available to install (accepts filter: 'lts', '22', etc.) |
nvm_install |
Download and install a version ('22', 'lts', 'lts/iron', '20.11.0') |
nvm_use |
Switch the session-active version — persists for all subsequent calls |
nvm_current |
Show which version is currently active in the session |
nvm_alias |
Set an NVM alias, e.g. point default at a new version |
node_run |
Run node <args> with the active (or a specified) version |
npm_run |
Run npm <args> with the active (or a specified) version |
npx_run |
Run npx <args> with the active (or a specified) version |
All three runner tools accept an optional version field that overrides the
session-active version for that one call, and an optional cwd field.
Example agent workflow
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
Custom NVM location
If NVM is installed somewhere other than ~/.nvm, set NVM_DIR in the
env block of mcp_config.json:
"env": {
"NVM_DIR": "/opt/homebrew/opt/nvm"
}
Troubleshooting
| Symptom | Fix |
|---|---|
nvm.sh not found |
Verify NVM_DIR in the env block points to your NVM root |
nvm_install times out |
Increase the subprocess timeout in nvm_server.py (default 300 s) |
| Version not found | Run nvm_list_remote to check the exact version string |
| Server not appearing | Check Antigravity → ... → MCP Servers for error messages |
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。