Next Devtools MCP Server

Next.js development tools MCP server with stdio transport

Local serverstdioGo

What is the Next Devtools MCP MCP server?

Next.js development tools MCP server with stdio transport. That is what the next devtools mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

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.

The tools it exposes

The server publishes 9 tools. What each one is for:

  • get_errors — current build, runtime, and type errors
  • get_logs — path to the dev log file (browser console + server output)
  • get_page_metadata — routes, pages, component metadata
  • get_project_metadata — project structure, config, dev server URL
  • get_server_action_by_id — resolve a Server Action ID to its source file
  • 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_docsGateway. Point the agent at version-accurate docs in node_modules/next/dist/docs/
  • browser_evalGateway. Point the agent at the agent-browser CLI for browser automation

What it needs from you

Configuration is passed through the environment: NEXT_TELEMETRY_DISABLED. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • 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)

Getting it running

The server ships on npm as add-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

How it compares

Among the browser automation options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Next Devtools MCP's toolset — get_errors, get_logs, get_page_metadata and 6 more — is a fair guide to whether it matches your workflow. It is maintained by vercel; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Next Devtools MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 9 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Next Devtools MCP.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
get_errorscurrent build, runtime, and type errors
get_logspath to the dev log file (browser console + server output)
get_page_metadataroutes, pages, component metadata
get_project_metadataproject structure, config, dev server URL
get_server_action_by_idresolve a Server Action ID to its source file
nextjs_indexDiscover running Next.js dev servers and list each one's runtime MCP tools.
nextjs_callCall 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](https://github.com/vercel-labs/agent-browser) CLI for browser automation.

How to install the Next Devtools MCP MCP server

{
  "mcpServers": {
    "next-devtools": {
      "command": "npx",
      "args": ["-y", "add-mcp"],
      "env": {
        "NEXT_TELEMETRY_DISABLED": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • 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)
VariableDescriptionRequired
NEXT_TELEMETRY_DISABLEDConfiguration value read at startup.Optional

Example prompts to try

  • Use Next Devtools MCP to get errors.
  • Use Next Devtools MCP to get logs.
  • Use Next Devtools MCP to get page metadata.

Frequently asked questions

It connects Next Devtools MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 9 tools (get_errors, get_logs, get_page_metadata, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Next Devtools MCP directly.