next-devtools-mcp discover_servers fails on Windows: "No running Next.js dev servers with MCP enabled found"
next-devtools-mcp discover_servers fails on Windows: "No running Next.js dev servers with MCP enabled found"
Originally asked on GitHub: https://github.com/vercel/next-devtools-mcp/issues/56
5 answers
Status: fixed in the repo — the issue was closed as completed and a contributor pointed to PR #67 (opens external site). No release version is named in the thread, so update next-devtools-mcp to a build that includes PR #67 and retry
discover_servers(general advice; the reporter was on ^0.2.1).The MCP endpoint itself was reachable: the reporter confirmed
http://localhost:3000/_next/mcp/toolsreturned streaming JSON when called withAccept: text/event-stream, so next@16.0.0's built-in MCP (enabled by default) was responding. A commenter shared next-devtools MCP logs showingError: Command failed: ps auxand explained that Windows has nopslike macOS; that diagnosis was not confirmed by the project.One commenter suggested pointing Cursor at the built-in endpoint instead of relying on discovery:
json{ "mcpServers": { "next-devtools": { "command": "npx", "args": ["-y", "next-devtools-mcp@latest"] }, "nextjs-mcp-builtin": { "url": "http://localhost:3000/_next/mcp" } } }That commenter did not report whether it worked, and it only exposes
get_project_metadata,get_errors,get_page_metadata,get_logs, andget_server_action_by_id— notnextjs_runtime. Another user applied the same config, saw both MCP servers listed in Cursor, but the agent failed to connect to the built-in URL server. Manually enteringportand settingincludeUnverifiedalso did not help.Did this work for you?What @imdimasan tried on GitHub (Outcome unclear)
Diagnosed the cause as Windows lacking
ps, showing next-devtools MCP logs withError: Command failed: ps aux, and suggested a.cursor/mcp.jsonconfig that adds the built-in URL MCP athttp://localhost:3000/_next/mcp. No success was reported; the config only exposes five tools, notnextjs_runtime.Source: https://github.com/vercel/next-devtools-mcp/issues/56#issuecomment-3466555694 (opens external site)
Did this work for you?What a GitHub user tried on GitHub (Didn't work)
Reproduced on Windows 11 with Node v20 and v25, next@16.0.0, and next-devtools-mcp ^0.2.1. Verified the MCP endpoint returns streaming JSON via
Invoke-WebRequest http://localhost:3000/_next/mcp/tools -Headers @{Accept='text/event-stream'}, then randiscover_serversin Cursor, which returned "No running Next.js dev servers with MCP enabled found".Source: https://github.com/vercel/next-devtools-mcp/issues/56 (opens external site)
Did this work for you?What @AhmedNasr0 tried on GitHub (Didn't work)
Applied the config suggested by commenter 4 (npx-based next-devtools server plus the built-in URL server). Cursor added both MCP servers, but the agent failed to connect to the built-in URL MCP.
Source: https://github.com/vercel/next-devtools-mcp/issues/56#issuecomment-3466718926 (opens external site)
Did this work for you?What @MichaelJuskowicz tried on GitHub (Didn't work)
Tried manually entering the
portand settingincludeUnverifiedfor the next-devtools MCP server in Cursor, but could not get it working and was never able to use thenextjs_runtimetool.Source: https://github.com/vercel/next-devtools-mcp/issues/56#issuecomment-3458984385 (opens external site)
Did this work for you?
Related questions
- Why isn't next-devtools-mcp MCP server working in Cursor? (fixed in v0.2.2)
- next-devtools-mcp in Cursor: ERR_MODULE_NOT_FOUND advanced-patterns.js from npx cache
- code --add-mcp JSON loses quotes when run from PowerShell on Windows
- Codex goes idle with 'Initialization complete.' after next-devtools.init
- Fix next-devtools-mcp ERR_MODULE_NOT_FOUND (execa) in Cursor on Windows