How to set up the Next.js DevTools MCP server in Claude
Start the intended Next.js development app and open the failing route before collecting diagnostics.
- Run the command from the project you are debugging. Check /mcp, start your development server, and follow the publisher’s version requirements for runtime inspection.
claude mcp add --transport stdio next-devtools -- npx next-devtools-mcp@latestTry a first task
With an app running on your local development server, reproduce a known rendering error. Ask for the route and first relevant stack frame, then compare them with the terminal output.
What to know before you start
Start the intended application and reproduce the issue there. Use the captured diagnostics to identify the route and error location before editing code.