Skip to content

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.
  1. Step 1: Add Next.js DevTools MCP to Cursor

    Install in one click

    Opens Cursor and asks you to confirm the server.

    Or add it to the project

    Add this to .cursor/mcp.json, or to ~/.cursor/mcp.json to use it in every project.

    .cursor/mcp.json
    {
      "mcpServers": {
        "next-devtools": {
          "command": "npx",
          "args": [
            "-y",
            "next-devtools-mcp@latest"
          ]
        }
      }
    }
  2. Step 2: Check it's connected

    Open Cursor Settings, find the MCP section and check the server is enabled with its tools listed.

  3. 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.