NVM MCP Server

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.

Category
Visit Server

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 set NVM_DIR in the config)
  • pip install mcp (or pip 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured