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
Uses mcp-handler
Usage
This sample app uses the Vercel MCP Adapter that allows you to drop in an MCP server on a group of routes in any Next.js project.
Update app/[transport]/route.ts with your tools, prompts, and resources following the MCP TypeScript SDK documentation.
Notes for running on Vercel
- To use the SSE transport, requires a Redis attached to the project under
process.env.REDIS_URLand toggling thedisableSseflag tofalseinapp/mcp/route.ts - Make sure you have Fluid compute enabled for efficient execution
- After enabling Fluid compute, open
app/route.tsand adjustmaxDurationto 800 if you using a Vercel Pro or Enterprise account - Deploy the Next.js MCP template
Sample Client
script/test-client.mjs contains a sample client to try invocations.
node scripts/test-client.mjs 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
