Next DevTools

Browser automation

Next.js development tools MCP server with stdio transport.

Your AI app calls the Next DevTools MCP server, which does the browser automation work and sends the result back to the chat.

About Next DevTools

Next DevTools is the official MCP server from vercel, filed in our directory under browser automation. Next.js development tools MCP server with stdio transport.

Next DevTools runs on your own machine: your AI app starts it with the command npx -y next-devtools-mcp@0.3.6 and talks to it over standard input and output.

The README for Next DevTools lists tools such as port, toolName and args, which your AI app can call once the server is connected.

Next DevTools is listed in the official MCP registry as io.github.vercel/next-devtools-mcp, version 0.3.6.

At a glance

Publisher
vercel, the company behind the product
Runs
Locally on your machine
Install from
Node.js package on npm: next-devtools-mcp
Written in
TypeScript
License
MIT
GitHub stars
835
Official MCP registry
io.github.vercel/next-devtools-mcp

Tools Next DevTools gives your AI app

  • port(required), dev server port.
  • toolName(required), runtime tool to invoke.
  • args(optional), arguments object, only if the tool requires them.

Tool names as the Next DevTools README lists them. Your AI app shows the live list once Next DevTools is connected.

How to set up Next DevTools

  1. Install Node.js on the machine that runs your AI app, because Next DevTools starts with npx and downloads its package on first run.
  2. Check the Next DevTools README for keys or settings; the registry lists none that Next DevTools requires.
  3. Add Next DevTools to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Next DevTools tools to confirm the connection.
  5. Run one read-only task with Next DevTools first, such as a call to port, before you allow anything that writes or sends.

Next DevTools compared with similar servers

  • Axuse by ctoldigital has fewer GitHub stars than Next DevTools (816 against 835); Next DevTools is official while Axuse is a community server, and both run locally. The Axuse README lists 3 tools to Next DevTools's 3.
  • Gemini Skill by WJZ-P has more GitHub stars than Next DevTools (837 against 835); Next DevTools is official while Gemini Skill is a community server, and both run locally.
  • Hyperbrowserai by hyperbrowserai has fewer GitHub stars than Next DevTools (795 against 835); both are official servers, and both run locally. The Hyperbrowserai README lists 10 tools to Next DevTools's 3.

Before you connect Next DevTools

  • Give Next DevTools its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Next DevTools tool call until you trust what it does with them.
  • Treat text that Next DevTools fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Next DevTools on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Next DevTools

How marketing and sales teams put Next DevTools to work, by company size. Pick the size closest to yours and start Next DevTools on one use case.

Small business

  • A small business can use Next DevTools to check its own site after every change: forms submit, links work and checkout still loads.
  • Owners can have Next DevTools collect competitor prices or offers from public pages once a week, instead of doing it by hand.
  • Next DevTools runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can run Next DevTools to test landing pages and signup flows on every release, catching a broken form before paid traffic hits it.
  • Growth teams can use Next DevTools to capture screenshots of ads and pages across markets for reviews and audits.
  • Start with port and toolName, the tools Next DevTools lists first, and add more once the team trusts the results.

Enterprise

  • Enterprises can run Next DevTools in isolated environments with allow-listed sites, so browsing agents never reach internal or unknown pages.
  • Large web teams can use Next DevTools for regression checks across many locales and devices, feeding results into release gates.
  • Because Next DevTools comes from vercel, the company behind the product, it follows that product's own auth and permissions, which security teams usually prefer.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Next DevTools README

From vercel/next-devtools-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Next.js DevTools MCP

next-devtools-mcp is a Model Context Protocol (MCP) server that connects coding agents like Claude and Cursor to your running Next.js dev server.

It is a thin connector. It discovers running Next.js 16+ dev servers and proxies their built-in MCP endpoint (/_next/mcp) so agents get live runtime errors, routes, and logs. It also ships two gateways that point agents at tools they run directly: version-accurate docs and the agent-browser CLI.

[!NOTE] Docs and migration workflows no longer live in this server. Next.js bundles its own docs at node_modules/next/dist/docs/, and upgrade / Cache Components workflows are distributed as agent skills. See Migrating from 0.3.x.

Requirements

  • Node.js v20.19 or a newer LTS version
  • npm or pnpm
  • Next.js 16+ with a running dev server (for nextjs_index / nextjs_call)

Install

Install for all your coding agents with add-mcp:

npx add-mcp next-devtools-mcp@latest

Add -y to skip the prompt and install to all detected agents. Add -g to install globally across all projects.

Or add the config to your MCP client manually:

{
  "mcpServers": {
    "next-devtools": {
      "command": "npx",
      "args": ["-y", "next-devtools-mcp@latest"]
    }
  }
}

[!NOTE] next-devtools-mcp@latest keeps your client on the latest version.

Client-specific setup
Amp
amp mcp add next-devtools -- npx next-devtools-mcp@latest

Or follow Amp's MCP docs with the config above.

Claude Code
claude mcp add next-devtools npx next-devtools-mcp@latest

Or edit your MCP settings file with the config above.

Codex
codex mcp add next-devtools -- npx next-devtools-mcp@latest

Windows 11: add environment variables and a longer startup timeout to .codex/config.toml:

env = { SystemRoot="C:\\Windows", PROGRAMFILES="C:\\Program Files" }
startup_timeout_ms = 20_000
Cursor

Install in Cursor

Or go to Cursor Settings → MCP → New MCP Server and use the config above.

Gemini
# Project
gemini mcp add next-devtools npx next-devtools-mcp@latest

# Global
gemini mcp add -s user next-devtools npx next-devtools-mcp@latest
Google Antigravity

Add to .gemini/antigravity/mcp_config.json:

{
  "mcpServers": {
    "next-devtools": {
      "command": "npx",
      "args": ["-y", "next-devtools-mcp@latest"]
    }
  }
}

See the Antigravity MCP docs.

VS Code / Copilot
code --add-mcp '{"name":"next-devtools","command":"npx","args":["-y","next-devtools-mcp@latest"]}'

Or follow the official VS Code MCP setup guide.

Warp

Settings | AI | Manage MCP Servers → + Add:

  • Name: next-devtools
  • Command: npx
  • Arguments: -y, next-devtools-mcp@latest

Quick Start

Start your Next.js dev server:

npm run dev

Next.js 16+ exposes /_next/mcp on the dev server's port. For example, if your app runs at http://localhost:3000, its MCP endpoint is http://localhost:3000/_next/mcp.

Then ask your agent about the running app:

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?

The agent calls nextjs_index to discover servers, then nextjs_call to query their real state.

Tools

Tool What it does
nextjs_index Discover running Next.js dev servers and list each one's runtime MCP tools.
nextjs_call Call a runtime tool on a discovered server (errors, routes, logs, Server Actions).
nextjs_docs Gateway. Point the agent at version-accurate docs in node_modules/next/dist/docs/.
browser_eval Gateway. Point the agent at the agent-browser CLI for browser automation.

The gateways do not do the work themselves, they tell the agent where the docs are or how to install/run the CLI, and the agent runs it directly (faster than proxying through MCP).

nextjs_index, discover servers

Call nextjs_index without arguments to discover running Next.js 16+ dev servers. To check one port directly, pass it as { "port": 3000 }.

The result lists each server's URL, port, and tools, including the arguments each tool accepts. Available tools depend on your Next.js version and configuration. See the Next.js runtime tools reference for details.

nextjs_call, run a runtime tool

Calls one runtime tool on a discovered server. Run nextjs_index first to find the port and tool name.

Input:

  • port (required), dev server port
  • toolName (required), runtime tool to invoke
  • args (optional), arguments object, only if the tool requires them
{ "port": 3000, "toolName": "get_errors" }

If your client sends null for args, the runtime tool receives an empty object, just as when you omit it. Passing null for the optional port on nextjs_index runs automatic discovery.

Output: JSON with the tool's result. Upstream requests, including response-body reads, have a 60-second deadline. Cancelling an MCP request aborts its upstream network work; discovery also releases response bodies used only to detect the protocol.

nextjs_docs, find version-accurate docs

Does not fetch docs. Recent Next.js releases bundle their docs (markdown, matching your installed version) at node_modules/next/dist/docs/. This tool checks for those files before returning reading instructions. If an installed release has no bundled docs (including early 16.x releases), it offers https://nextjs.org/docs as a fallback and asks the agent to verify APIs against the installed version. Missing dependencies receive installation guidance instead. On Next.js below 16, it recommends npx @next/codemod@latest upgrade latest.

Input: topic (optional), project_path (optional, defaults to cwd). The tool resolves next/package.json from that project, including hoisted workspace dependencies, and returns an absolute docsPath for the installed package.

browser_eval, set up browser automation

Does not drive the browser. It detects whether agent-browser is installed and returns either the entry point (agent-browser skills get core --full) or the install steps (npm install -g agent-browser, then agent-browser install), so the agent runs the CLI directly.

Input: task (optional), used only to tailor the guidance.

Migrating from 0.3.x

Starting in 0.4.0, next-devtools-mcp is a thin connector.

Changed:

  • nextjs_docs no longer fetches docs over the network. It points the agent at the docs Next.js bundles at node_modules/next/dist/docs/ (or recommends upgrading). The nextjs-docs://llms-index resource is removed.

Removed:

  • init tool, it only enforced the old docs-fetch workflow.
  • upgrade_nextjs_16 and enable_cache_components tools and their prompts, now distributed as agent skills.
  • All cache-components://, nextjs16://, and nextjs-fundamentals:// resources, superseded by the bundled docs.

What remains: nextjs_index, nextjs_call, nextjs_docs, and browser_eval.

Privacy & Telemetry

next-devtools-mcp counts how many times each tool is called in a session. It sends these counts with the OS and its version, CPU architecture, Node.js version, an anonymous ID, a session ID, and a project ID. The project ID is a salted hash of the working directory.

Telemetry does not include the directory path itself, file contents, tool arguments, or error messages.

Local files live under ~/.next-devtools-mcp/ (anonymous telemetry-id, telemetry-salt, and a debug log mcp.log).

Opt out by setting NEXT_TELEMETRY_DISABLED=1 in your MCP server's environment. If you start your client from a shell, run this first:

export NEXT_TELEMETRY_DISABLED=1

Delete local telemetry data anytime:

rm -rf ~/.next-devtools-mcp

Troubleshooting

ERR_MODULE_NOT_FOUND referencing next-devtools-mcp/dist, clear your npx cache and restart your MCP client. The server reinstalls fresh.

No dev server found: Start your Next.js 16+ app with npm run dev and check the port in its startup output. If automatic discovery misses it, ask your agent to call nextjs_index with that port.

browser_eval and nextjs_docs work without a dev server.

Local Development

git clone https://github.com/vercel/next-devtools-mcp.git
cd next-devtools-mcp
pnpm install
pnpm build

Point your MCP client at the local build:

{
  "mcpServers": {
    "next-devtools": {
      "command": "node",
      "args": ["/absolute/path/to/next-devtools-mcp/dist/index.js"]
    }
  }
}

Or with Codex:

codex mcp add next-devtools-local -- node dist/index.js

See the Next.js MCP documentation for how MCP works with Next.js and coding agents.

License

MIT

Questions about Next DevTools

What is the Next DevTools MCP server?

Next.js development tools MCP server with stdio transport. Next DevTools is published by vercel, the company behind the product, on GitHub at vercel/next-devtools-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Next DevTools MCP server?

Add Next DevTools to your AI app's MCP config with the command npx -y next-devtools-mcp@0.3.6. In Claude Code, run claude mcp add --transport stdio next-devtools -- npx -y next-devtools-mcp@0.3.6. To run Next DevTools this way you need Node.js installed.

Does Next DevTools need an API key?

The registry lists no required keys for Next DevTools. Check the Next DevTools README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Next DevTools an official MCP server?

Yes. Next DevTools is published by vercel, the company that makes the product it connects to, so it follows that product's own API and auth.

What license is Next DevTools under?

Next DevTools is released under the MIT license, according to its GitHub repository. The license covers the code of Next DevTools; the service it connects to has its own terms.