Connect Next.js DevTools MCP to Cursor
Vercel's MCP server for Next.js. It connects to your running dev server so agents can read build and runtime errors, routes and logs, and search the Next.js docs.
MCP serverOfficialChecked 2026-11-16
Before you start
- Cursor installed (see its MCP documentation (opens in a new tab)).
- Next.js DevTools MCP is available on macOS, Windows and Linux.
- Needs Next.js 16 or later. Start the dev server (
npm run dev) before the agent connects; it serves the endpoint the MCP server talks to. Error and page tools read from pages open in a browser.
Step 1: Add Next.js DevTools MCP to Cursor
Or add it to the project
Add this to
.cursor/mcp.json, or to~/.cursor/mcp.jsonto use it in every project..cursor/mcp.json { "mcpServers": { "next-devtools": { "command": "npx", "args": [ "-y", "next-devtools-mcp@latest" ] } } }Step 2: Check it's connected
Open Cursor Settings, find the MCP section and check the server is enabled with its tools listed.
Step 3: Try a first request
Ask Cursor something that only works with Next.js DevTools MCP connected:
Say to Cursor Check my running Next.js dev server for build or runtime errors and explain how to fix the first one.
If it doesn't work
- Project servers live in
.cursor/mcp.json; servers for every project live in~/.cursor/mcp.json. - After editing the file by hand, toggle the server off and on in settings, or restart Cursor.
- The Output panel (MCP Logs) shows why a server failed to start.





