by vercel
Supercharge your NextJS projects with AI-powered tools for diagnostics, upgrades, and docs. Accelerate development and b
Provides Next.js development tools and utilities for AI coding assistants, including runtime diagnostics, automated upgrades, and access to official documentation.
NextJS is an official MCP server published by vercel that provides AI assistants with tools and capabilities via the Model Context Protocol. Supercharge your NextJS projects with AI-powered tools for diagnostics, upgrades, and docs. Accelerate development and b It is categorized under developer tools. This server exposes 7 tools that AI clients can invoke during conversations and coding sessions.
You can install NextJS in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
NextJS is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
Strong directory entry: NextJS surfaces stars and publisher context so we could sanity-check maintenance before adopting.
NextJS is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Strong directory entry: NextJS surfaces stars and publisher context so we could sanity-check maintenance before adopting.
We wired NextJS into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
We evaluated NextJS against two servers with overlapping tools; this profile had the clearer scope statement.
NextJS has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
NextJS has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
I recommend NextJS for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
NextJS reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
I recommend NextJS for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
showing 1-10 of 64
next-devtools-mcp is a Model Context Protocol (MCP) server that provides Next.js development tools and utilities for coding agents like Claude and Cursor.
Install the MCP server for all your coding agents:
npx add-mcp next-devtools-mcp@latest
Add -y to skip the confirmation prompt and install to all detected agents already in use in the project directory. Add -g to install globally across all projects.
Add the following config to your MCP client:
{
"mcpServers": {
"next-devtools": {
"command": "npx",
"args": ["-y", "next-devtools-mcp@latest"]
}
}
}
[!NOTE] Using
next-devtools-mcp@latestensures that your MCP client will always use the latest version of the Next.js DevTools MCP server.
Using Amp CLI:
amp mcp add next-devtools -- npx next-devtools-mcp@latest
Or configure manually:
Follow Amp's MCP documentation and apply the standard configuration shown above.
</details> <details> <summary>Claude Code</summary>Use the Claude Code CLI to add the Next.js DevTools MCP server:
claude mcp add next-devtools npx next-devtools-mcp@latest
Alternatively, manually configure Claude by editing your MCP settings file and adding the configuration shown above.
</details> <details> <summary>Codex</summary>Using Codex CLI:
codex mcp add next-devtools -- npx next-devtools-mcp@latest
Or configure manually:
Follow the MCP setup guide with the standard configuration format:
npx-y, next-devtools-mcp@latestWindows 11 Special Configuration:
Update .codex/config.toml with environment variables and increased startup timeout:
env = { SystemRoot="C:\Windows", PROGRAMFILES="C:\Program Files" }
startup_timeout_ms = 20_000
</details>
<details>
<summary>Cursor</summary>
Click the button to install:
Or install manually:
Go to Cursor Settings → MCP → New MCP Server. Use the config provided above.
Using Gemini CLI:
Project-wide installation:
gemini mcp add next-devtools npx next-devtools-mcp@latest
Global installation:
gemini mcp add -s user next-devtools npx next-devtools-mcp@latest
Or configure manually:
Follow the MCP setup guide with these parameters:
npx-y, next-devtools-mcp@latestConfigure in MCP config file:
Add this to your Antigravity MCP config file: .gemini/antigravity/mcp_config.json
{
"mcpServers": {
"next-devtools": {
"command": "npx",
"args": ["-y", "next-devtools-mcp@latest"]
}
}
}
See Antigravity MCP docs for more info.
</details> <details> <summary>VS Code / Copilot</summary>Using VS Code CLI:
code --add-mcp '{"name":"next-devtools","command":"npx","args":["-y","next-devtools-mcp@latest"]}'
Or configure manually:
Follow the official VS Code MCP server setup guide and add the Next.js DevTools server through VS Code settings.
</details> <details> <summary>Warp</summary>Using Warp UI:
Navigate to Settings | AI | Manage MCP Servers and select + Add to register a new MCP server with the following configuration:
next-devtoolsnpx-y, next-devtools-mcp@latestTo unlock the full power of runtime diagnostics, start your Next.js dev server:
npm run dev
Next.js 16+ has MCP enabled by default at http://localhost:3000/_next/mcp (or whichever port your dev server uses). The next-devtools-mcp server will automatically discover and connect to it.
⚠️ IMPORTANT: Start every Next.js session by calling the init tool to set up proper context:
Use the init tool to set up Next.js DevTools context
This initializes the MCP context and ensures the AI assistant uses official Next.js documentation for all queries.
After initialization, try these prompts to explore runtime diagnostics:
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?
Your coding agent will use the nextjs_index and nextjs_call tools to query your running application's actual state.
You can use the development automation and documentation tools regardless of Next.js version:
Next Devtools, help me upgrade my Next.js app to version 16
Next Devtools, enable Cache Components in my Next.js app
Next Devtools, search Next.js docs for generateMetadata
To make your AI assistant automatically call the init tool at the start of every Next.js session without being asked, add this instruction to your agent's configuration file:
Add to ~/.claude/CLAUDE.md (global) or ./.claude/CLAUDE.md (project-specific):
**When starting work on a Next.js project, ALWAYS call the `init` tool from
next-devtools-mcp FIRST to set up proper context and establish documentation
requirements. Do this automatically without being asked.**
</details>
<details>
<summary>Cursor</summary>
Add to .cursorrules in your project root or global Cursor settings:
When working with Next.js, always call the init tool from next-devtools-mcp
at the start of the session to establish proper context and documentation requirements.
</details>
<details>
<summary>Codex / Other AI Coding Assistants</summary>
Add to your agent's configuration file (e.g., .codex/instructions.md, agent.md, or similar):
**Next.js Initialization**: When starting work on a Next.js project, automatically
call the `init` tool from the next-devtools-mcp server FIRST. This establishes
proper context and ensures all Next.js queries use official documentation.
</details>
Why this matters:
The knowledge base resources are automatically available to your coding agent and are split into focused sections for efficient context management. Current resource URIs:
<details> <summary>📚 Available Knowledge Base Resources (click to expand)</summary>Cache Components (12 sections):
cache-components://overviewcache-components://core-mechanicscache-components://public-cachescache-components://private-cachescache-components://runtime-prefetchingcache-components://request-apiscache-components://cache-invalidationcache-components://advanced-patternscache-components://build-behaviorcache-components://error-patternscache-components://test-patternscache-components://referenceNext.js 16 migration:
nextjs16://migration/beta-to-stablenextjs16://migration/examplesNext.js fundamentals:
nextjs-fundamentals://use-clientResources are loaded on-demand by your coding agent, providing targeted knowledge without overwhelming the context window.
Pre-configured prompts to help with common Next.js development tasks:
<details> <summary>💡 Available Prompts (click to expand)</summary>upgrade-nextjs-16 - Guide for upgrading to Next.js 16enable-cache-components - Migrate and enable Cache Components mode for Next.js 16Initialize Next.js DevTools MCP context and establish documentation requirements.
Capabilities:
nextjs_docs for ALL Next.js-related queriesWhen to use:
Input:
project_path (optional) - Path to Next.js project (defaults to current directory)Output:
Search and retrieve Next.js official documentation and knowledge base.
Capabilities:
Input:
action (required) - Action to perform: search to find docs, get to fetch full contentquery (optional) - Required for search. Keyword search query (e.g., 'metadata',Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.