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

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_URL and toggling the disableSse flag to false in app/mcp/route.ts
  • Make sure you have Fluid compute enabled for efficient execution
  • After enabling Fluid compute, open app/route.ts and adjust maxDuration to 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

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