# Next.js DevTools MCP
> Next.js DevTools MCP connects a coding agent to a running Next.js 16+ development server, exposing live project diagnostics, routes, logs, page metadata, and version-matched framework documentation.
Canonical: https://www.mcpfolio.com/servers/nextjs
Last updated: 2026-10-28
## Catalog record

- Publisher: Vercel / Next.js
- Categories: development, file-system

## Website

https://nextjs.org/docs/app/guides/mcp

## Repository

https://github.com/vercel/next-devtools

## Transports

stdio (client launcher); local Next.js development server MCP endpoint at `/_next/mcp`

## Authentication

No authentication documented for local development-server access.

## Tools

- **nextjs_index**: Discover running Next.js development servers and their runtime tools.
- **nextjs_call**: Call a runtime tool on a discovered Next.js dev server.
- **nextjs_docs**: Direct the agent to version-matched local Next.js documentation.
- **browser_eval**: Direct the agent to browser tooling for page verification.
- **get_errors**: Retrieve current build, runtime, and type errors from the dev server.
- **get_logs**: Get the development log file path.
- **get_page_metadata**: Retrieve metadata about a page currently open in a browser.
- **get_project_metadata**: Retrieve project path and dev server URL.
- **get_routes**: List routes discovered from the project filesystem.
- **get_server_action_by_id**: Look up a Server Action ID and its source.
- **get_compilation_issues**: Report compilation issues across routes; Turbopack only.
- **compile_route**: Compile a route and report issues without requesting it; Turbopack only.
- **get_request_insights**: Return recorded request timeline/fetch/cache insights when experimental request insights is enabled.

## Sources

- [official_tool_reference](https://nextjs.org/docs/app/guides/mcp)
- [official_documentation_or_source](https://github.com/vercel/next-devtools-mcp)

## Setup

Use the interactive setup panel on [the detail page](https://www.mcpfolio.com/servers/nextjs) to view instructions for each supported client.