# Does Next.js have an MCP server?

**Yes — Official.** Next.js maintains an official MCP server.

## Facts

- Verdict: Official (Yes)
- Access: Built into the product — Ships inside the vendor's own app or CLI rather than as a standalone download.
- Endpoint: `Built into the Next.js 16+ dev server at /_next/mcp — in-product`
- Package: [`next-devtools-mcp`](https://www.npmjs.com/package/next-devtools-mcp) on npm
- Repository: [vercel/next-devtools-mcp](https://github.com/vercel/next-devtools-mcp) — ★ 822, last push 2026-09-15
- Maintainer: Vercel
- Language: TypeScript
- Category: [Developer Tools](https://mcpyet.com/category/developer-tools/)
- Verified against vendor docs: 2026-09-29
- GitHub data refreshed: 2026-09-29 (re-checked every 6 hours)

## What it does

> Next.js Development for Coding Agent
> — how [vercel/next-devtools-mcp](https://github.com/vercel/next-devtools-mcp) describes itself

Project site: <https://www.npmjs.com/package/next-devtools-mcp>

## The receipts

- **In-product:** Built into the Next.js 16+ dev server at /_next/mcp — in-product — ships inside Next.js's own product rather than as a standalone server. Documented at <https://nextjs.org/docs/app/guides/mcp>.
- **Official package:** [`next-devtools-mcp`](https://www.npmjs.com/package/next-devtools-mcp) on npm. The package page carries the exact launch arguments and required credentials.
- **Official repository:** [vercel/next-devtools-mcp](https://github.com/vercel/next-devtools-mcp) — ★ 822, pushed 2026-09-15 (active)

## How to connect it

Ships inside the vendor's own app or CLI rather than as a standalone download.

### Claude Code

```sh
claude mcp add nextjs -- npx -y <package-from-readme>
```

Swap in the exact package and flags from the repo README — most servers need an API key passed as an environment variable. Add `--scope user` to make it available in every project.

### Claude Desktop

Open **Settings → Developer → Edit Config** and add the server to `claude_desktop_config.json`, then restart Claude Desktop:

```json
{
  "mcpServers": {
    "nextjs": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for every project:

```json
{
  "mcpServers": {
    "nextjs": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### VS Code

Add to `.vscode/mcp.json`, then pick the server from Copilot's agent-mode tools menu:

```json
{
  "servers": {
    "nextjs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ]
    }
  }
}
```

### ChatGPT

ChatGPT connects to **remote servers only**, and this one runs on your machine. Either expose it through an MCP gateway that gives it a public URL, or use a client with native local support (Claude or Cursor).

## How we know

nextjs.org/docs/app/guides/mcp documents a built-in MCP endpoint at /_next/mcp in the Next.js 16+ dev server, reached through Vercel's vercel/next-devtools-mcp (npm next-devtools-mcp, published by Vercel's release bot).

- GitHub data refreshed 2026-09-29, then every 6 hours.
- Vendor docs verified on 2026-09-29.
- Corrections: hello@mcpyet.com.

## Also in Developer Tools

- [Chrome DevTools](https://mcpyet.com/mcp/chrome-devtools.md) — Official (Yes)
- [Google AI Studio](https://mcpyet.com/mcp/google-ai-studio.md) — Community only (Sort of)
- [Serena](https://mcpyet.com/mcp/serena.md) — Official (Yes)
- [LangChain](https://mcpyet.com/mcp/langchain.md) — Official (Yes)
- [GitLab](https://mcpyet.com/mcp/gitlab.md) — Official (Yes)
- [n8n](https://mcpyet.com/mcp/n8n.md) — Official (Yes)

---

Source: https://mcpyet.com/mcp/nextjs/ — data refreshed 2026-09-29
