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 toolsnextjs_call: call a runtime tool such as errors, routes or logsnextjs_docs: point the agent to docs matching your Next.js versionbrowser_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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
browser-testing-with-devtoolsLets your agent test browser apps using advanced tools. It can see code, logs, and performance to ensure quality.chrome-devtoolsLets your agent control and inspect a live Chrome browser to take screenshots, read console errors, check network calls and profile speed.devtoolsTeaches your agent how to register Angular tables with the TanStack Devtools panel, so developers can inspect each table while they build the app.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.