Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 91
  • 836 stars
  • 231k a week
  • MIT
  • Updated

Install next-devtools-mcp

Built from the published package, never by AI.

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

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install next-devtools-mcp in Claude Code

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

A

No 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 →

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.

next-devtools-mcp Install

Add to stack

Loading.