Next DevTools

v0.3.10Developer Toolsstable

Next.js Development for Coding Agent

coding-agentsmcpmcp-servernext-devtoolsnextjs
Share:
758
Stars
0
Downloads
0
Weekly
0/5

What is Next DevTools?

Next DevTools is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to next.js development for coding agent

Next.js Development for Coding Agent

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Next.js Development for Coding Agent

Use Cases

Next.js Development for Coding Agent
vercel

Maintainer

LicenseMIT
Languagetypescript
Versionv0.3.10
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y next-devtools-mcp

Manual Installation

npx -y next-devtools-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Next DevTools

Next DevTools MCP is a Vercel-maintained MCP server that gives AI coding agents specialized tools for working with Next.js projects, including runtime diagnostics, official documentation search, browser automation via Playwright, and automated upgrade assistance. It connects directly to a running Next.js 16+ development server to surface real-time errors, active routes, Server Action logs, and console output, so AI assistants can diagnose issues with live context rather than just static code. Teams using Claude Code, Cursor, or VS Code Copilot on Next.js apps use it to accelerate debugging, answer framework questions, and automate the upgrade path to newer Next.js versions.

Prerequisites

  • Node.js v20.19 or later
  • A Next.js project (Next.js 16+ recommended for full runtime diagnostics)
  • npm or pnpm for package management
  • An MCP client such as Claude Code, Cursor, or VS Code with GitHub Copilot
1

Add the MCP server to Claude Code

The quickest setup for Claude Code users is the single-line CLI command. This registers next-devtools-mcp as a user-scoped server available across all your projects.

claude mcp add next-devtools npx next-devtools-mcp@latest
2

Or configure manually in your client config

For Claude Desktop or other clients, add the server to your MCP configuration file. Use npx -y to ensure the latest version is always used.

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

Start your Next.js development server

Runtime diagnostic tools require a running Next.js dev server. Start it in a separate terminal before asking the AI to inspect routes or errors.

npm run dev
4

Call the init tool to establish project context

At the start of any Next.js session, ask the AI to call the init tool. This sets up proper context about your project structure, router type, and documentation requirements.

5

Optional: auto-initialize on every session

Add an instruction to your Claude project file to automatically call init whenever work starts on a Next.js project.

# .claude/CLAUDE.md
When starting work on a Next.js project, automatically call the init tool
from next-devtools-mcp first to establish proper context.
6

Disable telemetry if required

If your organization disables telemetry, set the environment variable in the MCP config env block.

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

Next DevTools Examples

Client configuration

claude_desktop_config.json entry for the Next DevTools MCP server with telemetry disabled.

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

Prompts to try

These prompts use the init, nextjs_docs, nextjs_index, nextjs_call, browser_eval, and upgrade_nextjs_16 tools.

- "Initialize the Next.js context for this project"
- "What errors are currently in my running Next.js application?"
- "Show me all routes defined in my app directory"
- "Help me upgrade this project to Next.js 16"
- "Search the Next.js docs for how to use Server Actions with the App Router"
- "Take a screenshot of localhost:3000 and check for console errors"

Troubleshooting Next DevTools

nextjs_index finds no running dev server

Ensure `npm run dev` is running in a terminal before calling nextjs_index. The tool discovers servers listening on Next.js default ports. If you use a non-default port, confirm it falls within the discovery range.

Runtime tools return stale data after a code change

Next.js hot-reload may not update the MCP tool context automatically. Ask the AI to call `nextjs_index` again to re-discover the current server state after significant changes.

browser_eval fails with 'Playwright not found'

Install Playwright browsers by running `npx playwright install chromium` in your project directory. The browser_eval tool requires Playwright to be available in the environment where the MCP server runs.

Frequently Asked Questions about Next DevTools

What is Next DevTools?

Next DevTools is a Model Context Protocol (MCP) server that next.js development for coding agent It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Next DevTools?

Install via npm with the command: npx -y next-devtools-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Next DevTools?

Next DevTools works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Next DevTools free to use?

Yes, Next DevTools is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Next DevTools?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides