// install

Install

Node 18+. A v0 API key from v0.dev/chat/settings/keys. Any MCP client that supports stdio.

cursor

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in the project). Restart Cursor after editing.

json
{
"mcpServers": {
"v0": {
"command": "npx",
"args": ["-y", "v0-mcp-server"],
"env": { "V0_API_KEY": "your-api-key" }
}
}
}

claude code

Add the server from the terminal. Replace your-api-key with your v0 API key.

bash
claude mcp add v0 -e V0_API_KEY=your-api-key -- npx -y v0-mcp-server

run directly

Stdio. Pass V0_API_KEY in the environment.

bash
V0_API_KEY=your-key npx v0-mcp-server

Or: npm install -g v0-mcp-server then run v0-mcp-server with the env set.

from source

bash
git clone https://github.com/BenAHammond/v0-mcp-server.git
cd v0-mcp-server
pnpm install
pnpm build
V0_API_KEY=your-key node dist/index.js

api reference → · github ↗