Next.js DevTools MCP server for Claude

Use Next.js DevTools MCP with a local development server to find route details and trace runtime errors back to the affected page.

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.

  1. 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 Code · Add in Claude Code
claude mcp add --transport stdio next-devtools -- npx next-devtools-mcp@latest

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

Publisher references

Vercel

Browse MCP servers