Next.js DevTools MCP Server

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.

Local serverstdioMIT

What is the Next.js DevTools MCP Server?

Next.js DevTools source profile. From the maintainer documentation: “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.”

Installation

The documented npm package is next-devtools-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

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
portrequired) — dev server port
toolNamerequired) — runtime tool to invoke
argsoptional) — arguments object, only if the tool requires them
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_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.

How to install the Next.js DevTools MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.