Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Next.js MCP Server Template

FreeNot checked

A starter Next.js project that uses the MCP Adapter to allow MCP clients to connect and access resources.

GitHubEmbed

About

A starter Next.js project that uses the MCP Adapter to allow MCP clients to connect and access resources.

README

This template uses mcp-handler 2 and the MCP TypeScript SDK v2 to add a stateless MCP server to a Next.js App Router application.

Usage

Update app/mcp/route.ts with your tools, prompts, and resources following the MCP TypeScript SDK v2 documentation.

Start the application and connect an MCP client to:

http://localhost:3000/mcp

Protocol support

  • The current 2026-07-28 MCP protocol is served natively.
  • Stateless clients using 2025-era Streamable HTTP are supported by the compatibility layer.
  • The deprecated HTTP+SSE transport is not supported. Redis is not required.

Notes for running on Vercel

Sample Client

scripts/test-client.mjs connects over Streamable HTTP, lists the available tools, and calls echo.

pnpm test:client -- https://mcp-for-next-js.vercel.app

from github.com/vercel-labs/mcp-for-next.js

Installing Next.js MCP Server Template

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/vercel-labs/mcp-for-next.js

FAQ

Is Next.js MCP Server Template MCP free?

Yes, Next.js MCP Server Template MCP is free — one-click install via Unyly at no cost.

Does Next.js MCP Server Template need an API key?

No, Next.js MCP Server Template runs without API keys or environment variables.

Is Next.js MCP Server Template hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Next.js MCP Server Template in Claude Desktop, Claude Code or Cursor?

Open Next.js MCP Server Template on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Next.js MCP Server Template with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs