Next DevTools
Next.js Development for Coding Agent
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
Maintainer
Works with
Installation
NPM
npx -y next-devtools-mcpManual Installation
npx -y next-devtools-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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@latestOr 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"]
}
}
}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 devCall 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.
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.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.
Next DevTools Alternatives — Similar Developer Tools Servers
Looking for alternatives to Next DevTools? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up Next DevTools in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.