// install
Node 18+. A v0 API key from v0.dev/chat/settings/keys. Any MCP client that supports stdio.
Add to ~/.cursor/mcp.json (or .cursor/mcp.json in the project). Restart Cursor after editing.
{ "mcpServers": { "v0": { "command": "npx", "args": ["-y", "v0-mcp-server"], "env": { "V0_API_KEY": "your-api-key" } } }}Add the server from the terminal. Replace your-api-key with your v0 API key.
claude mcp add v0 -e V0_API_KEY=your-api-key -- npx -y v0-mcp-serverStdio. Pass V0_API_KEY in the environment.
V0_API_KEY=your-key npx v0-mcp-serverOr: npm install -g v0-mcp-server then run v0-mcp-server with the env set.
git clone https://github.com/BenAHammond/v0-mcp-server.gitcd v0-mcp-serverpnpm installpnpm buildV0_API_KEY=your-key node dist/index.js