MCP server · Code and developer tools
Next.js DevTools MCP server
next-devtools-mcp is Vercel’s official Next.js MCP server. It connects a coding assistant to your running Next.js 16 or newer dev server so it can read live errors, routes and logs. It runs locally with npx next-devtools-mcp@latest, needs no account, and only talks to Next.js dev servers on local ports.
- Maintainer
- Vercel (official)
- Licence
- MIT
- Runs
- Locally (npx)
- Sign-in
- None
- Registry version
- 0.3.6 (updated 2025-12-05)
- Last activity
- 2026-09-15
Overview
What can the Next.js DevTools MCP server do?
Next.js DevTools MCP is a small connector from Vercel. It finds Next.js 16 or newer dev servers running on common local ports and passes calls through to the MCP endpoint that Next.js builds in at /_next/mcp. That gives the assistant the real state of your app: current build, runtime and type errors, the dev log, routes and page metadata, project configuration and the source file behind a Server Action ID.
Pick it when you build with Next.js and want the assistant to debug from live errors rather than guesses. Since version 0.4.0 it no longer fetches documentation. Its nextjs_docs tool points the assistant at the version-matched docs that Next.js ships in node_modules/next/dist/docs/, and browser_eval explains how to install and run the agent-browser CLI. Upgrade and Cache Components workflows have moved to agent skills. It runs with npx, and the add-mcp tool can install it for several agents at once.
Tools
Tools it gives the assistant
- Discover running Next.js dev servers and their runtime tools (nextjs_index)
- Call runtime tools for errors, logs, page and project metadata (nextjs_call)
- Resolve a Server Action ID to its source file
- Point the assistant to version-matched bundled docs (nextjs_docs)
- Set up the agent-browser CLI for browser checks (browser_eval)
Install
How do I install Next.js DevTools MCP in Claude Code, Cursor or VS Code?
You need:
- Node.js 20.19 or a newer LTS release
- A Next.js 16 or newer project with the dev server running
Run in your project. --scope local keeps the servers private to you in this project; use user for every project.
claude mcp add --scope local next-devtools -- npx -y next-devtools-mcp@latest
claude mcp add --scope local next-devtools -- cmd /c npx -y 'next-devtools-mcp@latest'
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json (Settings → Developer → Edit Config). Restart Claude after saving.
{
"mcpServers": {
"next-devtools": {
"command": "npx",
"args": [
"-y",
"next-devtools-mcp@latest"
]
}
}
}
In your project, or ~/.cursor/mcp.json for every project.
{
"mcpServers": {
"next-devtools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"next-devtools-mcp@latest"
]
}
}
}
In your workspace. VS Code asks for each secret the first time a server starts and stores it securely.
{
"servers": {
"next-devtools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"next-devtools-mcp@latest"
]
}
}
}
Need another app? Open Next.js DevTools MCP in the MCP config generator for a shared project .mcp.json, Devin, or several servers at once; it writes one file per app. The snippets follow the setup in the server’s README, checked on 2026-10-14.
Is the Next.js DevTools MCP server safe? Check before you install
- It only talks to Next.js dev servers it finds by scanning local ports, and passes their errors, logs and route data to the assistant.
- It sends anonymous usage telemetry (tool names, error messages, session metadata). Set NEXT_TELEMETRY_DISABLED=1 to opt out.
- browser_eval may tell the assistant to install agent-browser globally with npm. Review that step before allowing it.
- A local MCP server runs with your user account’s permissions. Install it only from the source linked above. See how to choose a safe server.
FAQ
Next.js DevTools MCP questions
Is the Next.js DevTools MCP server official?
Yes. Vercel publishes and maintains it, under the MIT licence. Install it only from the source linked on this page, not from a copy in another directory.
Is Next.js DevTools MCP server remote or local?
Local. Your MCP app starts it on your machine with npx, and it runs with your user account’s permissions.
Does Next.js DevTools MCP server need an API key or account?
No. It needs no account, API key or sign-in to run. You also need: Node.js 20.19 or a newer LTS release; A Next.js 16 or newer project with the dev server running.
Why it’s listed
Why we list it
Gives assistants first-hand runtime data from the framework itself, maintained by the company behind Next.js.
Related
Alternatives and related servers: code and developer tools
All MCP serversMCP config generatorGuide: MCP servers in Claude CodeGuide: what is MCP?
Keep exploring