next-devtools-mcp
MCP server by vercel Community
Connects coding agents such as Claude and Cursor to a running Next.js dev server. It exposes live runtime errors, routes, and logs, plus gateways to bundled docs and the agent-browser CLI.
Install next-devtools-mcp
Built from the published package, never by AI.
claude mcp add next-devtools-mcp -- npx -y next-devtools-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"next-devtools-mcp": {
"args": [
"-y",
"next-devtools-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"next-devtools-mcp": {
"args": [
"-y",
"next-devtools-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"next-devtools-mcp": {
"args": [
"-y",
"next-devtools-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add next-devtools-mcp -- npx -y next-devtools-mcp{
"mcpServers": {
"next-devtools-mcp": {
"args": [
"-y",
"next-devtools-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add next-devtools-mcp npx -y next-devtools-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the next-devtools-mcp block.
About
next-devtools-mcp is a Model Context Protocol server that connects coding agents such as Claude and Cursor to a running Next.js dev server. It discovers dev servers running Next.js 16 or newer and proxies their built-in MCP endpoint at /_next/mcp, so agents can read live runtime errors, routes, and logs. It also provides two gateways that point agents to tools they run directly: version-accurate bundled docs and the agent-browser CLI.
The server is a thin connector by design. Docs and upgrade workflows no longer live in the server, since Next.js bundles its docs in node_modules and upgrade workflows ship as agent skills. It is aimed at developers building Next.js apps who use AI coding agents. It counts tool calls for telemetry, which can be turned off with the NEXT_TELEMETRY_DISABLED=1 environment variable.
Written from the project's README and checked against it.
Tools it gives your assistant
nextjs_indexDiscovers running Next.js dev servers and lists each one's runtime MCP tools.nextjs_callCalls a runtime tool on a discovered server, such as errors, routes, logs, or Server Actions.nextjs_docsPoints the agent to version-accurate docs bundled in node_modules/next/dist/docs/.browser_evalPoints the agent to the agent-browser CLI for browser automation, with install steps if needed.
What you need
- Node.js v20.19 or a newer LTS version
- npm or pnpm
- Next.js 16 or newer with a running dev server for nextjs_index and nextjs_call
Try asking
- Next Devtools, what errors are in my Next.js application?
- Next Devtools, show me the structure of my routes
- Next Devtools, what's in the development server logs?
Good to know
- Runtime tools need a running Next.js 16+ dev server.
- Gateway tools do not do the work. The agent runs the docs or CLI itself.
- Upstream requests have a 60-second deadline.
- Anonymous usage counts are collected unless NEXT_TELEMETRY_DISABLED=1 is set.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to next-devtools-mcp
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
next-devtools-mcp: common questions
Does next-devtools-mcp need a running Next.js server?
Yes, for nextjs_index and nextjs_call, which need Next.js 16 or newer with a running dev server. nextjs_docs and browser_eval work without one.
Does it fetch Next.js docs over the network?
No. nextjs_docs checks for the docs Next.js bundles in node_modules/next/dist/docs/ and returns reading instructions.
How do I turn off telemetry?
Set NEXT_TELEMETRY_DISABLED=1 in the MCP server's environment. Local telemetry files under ~/.next-devtools-mcp/ can be deleted at any time.
How do I install next-devtools-mcp?
In Claude Code run claude mcp add next-devtools-mcp -- npx -y next-devtools-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is next-devtools-mcp the official server?
next-devtools-mcp is a community project by vercel, not verified by a company domain.
Is next-devtools-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is next-devtools-mcp safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to next-devtools-mcp?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does next-devtools-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
