next-devtools-mcp is a Model Context Protocol (MCP) server that provides Next.js development tool...
10K+
next-devtools-mcp is a Model Context Protocol (MCP) server that provides Next.js development tools and utilities for AI coding assistants.
| Attribute | Details |
|---|---|
| Docker Image | mcp/next-devtools-mcp |
| Author | kgprs |
| Repository | https://github.com/kgprs/next-devtools-mcp |
| Attribute | Details |
|---|---|
| Dockerfile | https://github.com/kgprs/next-devtools-mcp/blob/9ed2aab35ef34d7e19707cf19fb49d6bfc1936f5/Dockerfile |
| Commit | 9ed2aab35ef34d7e19707cf19fb49d6bfc1936f5 |
| Docker Image built by | Docker Inc. |
| Docker Scout Health Score | |
| Verify Signature | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/next-devtools-mcp --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
| Licence |
| Tools provided by this Server | Short Description |
|---|---|
browser_eval | Automate and test web applications using Playwright browser automation. |
enable_cache_components | Complete Cache Components setup for Next.js 16. |
nextjs_docs | Search and retrieve Next.js official documentation. |
nextjs_runtime | Interact with a running Next.js development server's MCP endpoint to query runtime information, diagnostics, and internals. |
upgrade_nextjs_16 | Guide through upgrading Next.js to version 16. |
browser_evalAutomate and test web applications using Playwright browser automation. This tool connects to playwright-mcp server and provides access to all Playwright capabilities.
CRITICAL FOR PAGE VERIFICATION: When verifying pages in Next.js projects (especially during upgrades or testing), you MUST use browser automation to load pages in a real browser instead of curl or simple HTTP requests. This is because:
IMPORTANT FOR NEXT.JS PROJECTS: If working with a Next.js application, PRIORITIZE using the 'nextjs_runtime' tool instead of browser console log forwarding. Next.js has built-in MCP integration that provides superior error reporting, build diagnostics, and runtime information directly from the Next.js dev server. Only use browser_eval's console_messages action as a fallback when nextjs_runtime tools are not available or when you specifically need to test client-side browser behavior that Next.js runtime cannot capture.
Available actions:
Note: The playwright-mcp server will be automatically installed if not present.
enable_cache_componentsComplete Cache Components setup for Next.js 16.
Handles ALL steps for enabling and verifying Cache Components:
Key Features:
Requires:
This tool embeds complete knowledge base for:
nextjs_docsSearch and retrieve Next.js official documentation. First searches MCP resources (Next.js 16 knowledge base) for latest information, then falls back to official Next.js documentation if nothing is found. Provides access to comprehensive Next.js guides, API references, and best practices.
nextjs_runtimeInteract with a running Next.js development server's MCP endpoint to query runtime information, diagnostics, and internals.
WHEN TO USE THIS TOOL - Use proactively in these scenarios:
Before implementing ANY changes to the app: When asked to add, modify, or fix anything in the application:
For diagnostic and investigation questions:
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.
Start by calling action='list_tools' to discover what runtime information is available, then use those tools to gather context.
REQUIREMENTS:
Next.js exposes an MCP (Model Context Protocol) endpoint at /_next/mcp when started with:
This tool allows you to:
Typical workflow:
IMPORTANT: When calling tools:
If the MCP endpoint is not available:
upgrade_nextjs_16Guide through upgrading Next.js to version 16.
CRITICAL: Runs the official codemod FIRST (requires clean git state) for automatic upgrades and fixes, then handles remaining issues manually. The codemod upgrades Next.js, React, and React DOM automatically.
Covers:
The codemod requires:
After codemod runs, provides manual guidance for any remaining issues not covered by the codemod.
{
"mcpServers": {
"next-devtools-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/next-devtools-mcp"
]
}
}
}
Content type
Image
Digest
sha256:3064e349c…
Size
62.9 MB
Last updated
9 months ago
docker pull mcp/next-devtools-mcpPulls:
1,260
Last week