Skip to content

Next.js DevTools MCP

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 serverCode and QAWorks through the Grid

Runs on your machine

Your agent, or the Grid, starts this command and talks to it over standard input and output.
npx -y next-devtools-mcp@latest

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.

Set it up in your agent

Pick your agent and copy the setup. ExonUI remembers your choice on other pages.
  1. Add it from the terminal

    Run this in your project folder. It saves the server for you, in this project only.

    Terminal
    claude mcp add next-devtools -- npx -y next-devtools-mcp@latest
  2. Or share it with your team

    Add this to .mcp.json at the project root and commit it. Teammates approve it the first time Claude Code starts.

    .mcp.json
    {
      "mcpServers": {
        "next-devtools": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "next-devtools-mcp@latest"
          ]
        }
      }
    }

Check it works

Terminal
claude mcp list

Start a session and run /mcp to see the server, its status and its tools.