Skip to content
Skillpedia
βœ“ Official Β· VercelπŸ’» LocalπŸ”“ No API keyProgramming

Next.js DevTools MCP

Lets your AI agent see live errors, routes and logs from your running Next.js dev server.

835 stars on GitHubby VercelUpdated 2 months ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add next-devtools -- npx -y next-devtools-mcp

Ready! Now test it

Restart the app and paste one of these requests in the chat:

What errors are in my Next.js application?
Show me the structure of my routes.

What it is

This server connects coding agents such as Claude and Cursor to your running Next.js 16+ development server. It finds the server and passes along its built-in tools, so the agent can read current errors, page routes and logs. It also points the agent to the docs bundled with your Next.js version and to the agent-browser tool for browser automation.

What it can do

  • nextjs_index: find running Next.js dev servers and list their tools
  • nextjs_call: call a runtime tool such as errors, routes or logs
  • nextjs_docs: point the agent to docs matching your Next.js version
  • browser_eval: set up the agent-browser tool for browser automation

When to use

  • β€ΊWhen you want your agent to check what errors your Next.js app has right now.
  • β€ΊWhen you want the agent to understand your app's routes and structure.
  • β€ΊWhen you want the agent to read your dev server logs while debugging.

What you need

Node.js v20.19 or newer, npm or pnpm, and a running Next.js 16+ dev server for the live tools.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

It is under the MIT license and has no listed price.

Which Next.js versions work?

The live tools need Next.js 16 or newer with a running dev server. The docs and browser tools work without one.

Does it collect data?

It collects anonymous usage telemetry, such as tool names and error messages, but not your code or tool arguments. Set NEXT_TELEMETRY_DISABLED=1 to opt out.

Which clients work with it?

Claude Code, Codex, Cursor, Gemini, Google Antigravity, VS Code and Copilot, Warp and Amp are listed in the readme.

Does it fetch docs from the internet?

No. It points the agent to the docs bundled in node_modules/next/dist/docs/, or suggests nextjs.org/docs if none are bundled.

Does it drive the browser itself?

No. browser_eval only tells the agent how to install and run the agent-browser CLI.

If it does not work

  • β€ΊIf you see ERR_MODULE_NOT_FOUND, clear your npx cache and restart your MCP client.
  • β€ΊIf you see "No server info found", start the dev server with npm run dev and confirm it runs Next.js 16 or newer.
  • β€ΊOn Windows 11 with Codex, add the environment variables and a longer startup timeout shown in the readme.

5 new skills a week. 1 minute to read.