Is the Next.js DevTools MCP server safe? What it can reach
What the Next.js DevTools MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Vercel publishes this local server for Next.js projects. It starts through npx, needs no account, and talks to a Next.js 16 dev server on your machine. Its four tools mostly read errors, logs and docs. nextjs_call can invoke any runtime tool the dev server exposes, so that is the tool to watch.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| vercel/next-devtools-mcp | Official | active |
It runs as a local process on your machine.
How it signs in
No credential. It connects to Next.js dev servers on local ports and acts with whatever that dev server allows.
What its tools can do
| Kind | Tools |
|---|---|
| Read | nextjs_index, nextjs_docs, browser_eval |
| Write | nextjs_call |
| Can’t be undone | none documented |
nextjs_call forwards a named runtime tool and arguments to a dev server. The runtime tools the README lists (get_errors, get_logs, get_page_metadata, get_project_metadata, get_server_action_by_id) read project state, and the set varies by Next.js version. browser_eval only checks for agent-browser and returns guidance that tells the agent to install it.
Built-in limits
| Option | What it does |
|---|---|
NEXT_TELEMETRY_DISABLED | Set to 1 to opt out of telemetry. |
Version pin | The documented command uses @latest. Pin a version to stop new releases from changing the tool set. |
The risks
- nextjs_call runs any runtime tool a dev server exposes, so its reach grows with the Next.js version and your own dev-server tools.
- browser_eval returns text telling the agent to run npm install -g agent-browser, so an agent that follows it installs a global package.
- The documented command pulls next-devtools-mcp@latest on each start, so a new release changes what runs on your machine.
- It writes telemetry id files and a log to ~/.next-devtools-mcp/.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add next-devtools -- npx -y next-devtools-mcp@latestClaude Code names MCP tools mcp__next-devtools__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"ask": [
"mcp__next-devtools__nextjs_call",
"mcp__next-devtools__browser_eval"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.next-devtools]
command = "npx"
args = ["-y", "next-devtools-mcp@latest"]Checklist
- Pin a version instead of @latest.
- Set NEXT_TELEMETRY_DISABLED=1 if you want no telemetry.
- Ask before nextjs_call and browser_eval run.
- Run it only against a local dev server, never one with production data.
Checked against the vendor documentation on November 25, 2026. vercel/next-devtools-mcp README · Repository metadata (GitHub API)
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing