Next.js MCP Server Template
FreeNot checkedA starter Next.js project that uses the MCP Adapter to allow MCP clients to connect and access resources.
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
- Requires Node.js 20 or later
- Make sure you have Fluid compute enabled for efficient execution
- Deploy the Next.js MCP template
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
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.jsFAQ
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
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare 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
