servers / next-devtools-mcp
next-devtools-mcp
partnerstdionpmverifiedhealthy
Next.js development tools MCP server with stdio transport
01Tools · 4
How to read this: tool names here are observed from a live tools/list handshake. The Risk label is a heuristic inferred from the tool name (write/destructive verbs), not from executing the tool — a conservative guess, not a verified capability. We never escalate risk from a description. Found one that's wrong? Tell us — we fix on report.
| Tool | Risk | Side effects | Approval |
|---|---|---|---|
| nextjs_index Discover all running Next.js development servers and list their available MCP tools.
WHEN TO USE THIS TOOL - Use proactively in these scenarios:
1. **Before implementing ANY changes to the app**: When asked to add, modify, or fix anything in the application:
- "Add a loading state" → Check current component structure and routes first
- "Fix the navigation" → Inspect existing routes and components
- "Update the API endpoint" → Query current routes and data flows
- "Add error handling" → Check runtime errors and component hierarchy
- "Refactor the auth logic" → Inspect current auth implementation and routes
- "Optimize performance" → Check runtime diagnostics and component tree
Use this to understand where changes should be made and what currently exists.
2. **For diagnostic and investigation questions**:
- "What's happening?" / "What's going on?" / "Why isn't this working?"
- "Check the errors" / "See what's wrong"
- "What routes are available?" / "Show me the routes"
- "Clear the cache" / "Reset everything"
- Questions about build status, compilation errors, or runtime diagnostics
3. **For agentic codebase search**: Use this as FIRST CHOICE for searching the currently running app. If not found, fallback to static codebase search tools.
KEY PRINCIPLE: If the request involves the running Next.js application (whether to investigate OR modify it), query the runtime FIRST to understand current state before proceeding.
REQUIREMENTS:
- Next.js 16 or later (MCP support was added in v16)
- If you're on Next.js 15 or earlier, upgrade first by running 'npx @next/codemod@latest upgrade latest'
Next.js 16+ exposes an MCP (Model Context Protocol) endpoint at /_next/mcp automatically when the dev server starts.
No configuration needed - MCP is enabled by default in Next.js 16 and later.
This tool discovers all running Next.js servers and returns:
- Server port, PID, and URL
- Complete list of available MCP tools for each server
- Tool descriptions and input schemas
After calling this tool, use 'nextjs_call' to execute specific tools.
[IMPORTANT] If auto-discovery returns no servers:
1. Ask the user which port their Next.js dev server is running on
2. Call this tool again with the 'port' parameter set to the user-provided port
If the MCP endpoint is not available:
1. Ensure you're running Next.js 16 or later (upgrade with 'npx @next/codemod@latest upgrade latest')
2. Verify the dev server is running (npm run dev)
3. Check that the dev server started successfully without errors | read | false | unknown |
| nextjs_call Call a specific MCP tool on a running Next.js development server.
REQUIREMENTS:
- Port number of the target Next.js dev server
- Tool name to execute
- Optional arguments object (if the tool requires parameters)
Use 'nextjs_index' first to discover available servers, tools, and their input schemas.
If 'nextjs_index' auto-discovery fails, ask the user for the port and call 'nextjs_index' again with the 'port' parameter.
IMPORTANT: When calling tools:
- The 'args' parameter MUST be an object (e.g., {key: "value"}), NOT a string
- If a tool doesn't require arguments, OMIT the 'args' parameter entirely - do NOT pass {} or "{}"
- Check the tool's inputSchema from 'nextjs_index' to see what arguments are required
Common Next.js MCP tools include:
- Error diagnostics (get compilation/runtime errors)
- Route information (list all routes)
- Build status (check compilation state)
- Cache management (clear caches)
- And more (varies by Next.js version)
Example usage:
1. Call 'nextjs_index' to see servers and tools
2. Call 'nextjs_call' with port=3000, toolName="get_errors" to get errors from server on port 3000 | read | false | unknown |
| nextjs_docs Find the version-accurate Next.js documentation for THIS project.
This tool does NOT fetch documentation. Next.js 16+ ships its full docs inside the installed package at `node_modules/next/dist/docs/` (markdown), kept in sync with the exact version you have installed. This tool tells you where those docs are and how to read them — so you read the docs that match this project, not a generic or outdated copy.
Call this before answering Next.js questions or writing Next.js code. Then read the relevant guide from the path it returns. If the project is on an older Next.js, it will tell you how to upgrade. | read | false | unknown |
| browser_eval Set up and use browser automation for this project via the agent-browser CLI.
This tool does NOT drive the browser itself. It points you at `agent-browser` — a fast, native browser-automation CLI built for agents (https://github.com/vercel-labs/agent-browser) — and tells you how to install it (if needed) and where to start. You then run its commands directly (you have shell access), which is faster and more capable than proxying automation through MCP.
Call this when you need to open pages, click, type, screenshot, or capture console errors in a real browser. | unknown | unknown | unknown |
02Install & source
npx -y next-devtools-mcp
npx- repohttps://github.com/vercel/next-devtools-mcp
- packagehttps://www.npmjs.com/package/next-devtools-mcp
- homepagehttps://github.com/vercel/next-devtools-mcp#readme
- adoption808 stars · 61 forks
03Access granted
Browser automation · writeManage GitHub · write
The access this server can exercise, inferred from its verified tools — not a declared OAuth scope.
05Provenance & freshness
sourcesnpm registry [p4]
last_checked2026-08-16 18:52Z
next_check2026-08-16 21:50Z
cadenceevery 3h
verifiedtools_list:passed handshake:passed metadata:passed tools_list:passed handshake:passed metadata:passed tools_list:passed handshake:passed metadata:passed tools_list:passed
index_statusindex — 8 unique facts >= 5
06Badge
Add the “as seen on MCPExplorer” badge to your README.
[](https://mcpexplorer.com/servers/next-devtools-mcp)
Next step
This is one server. A loadout combines the right servers, governance, and proven plays for a whole job — assembled deliberately, not tool-dumped.
Explore loadouts →