Vercel MCP Adapter
FreeNot checkedA simple package to start serving an MCP server on most major JS meta-frameworks including Next, Nuxt, Svelte, and more.
About
A simple package to start serving an MCP server on most major JS meta-frameworks including Next, Nuxt, Svelte, and more.
README
A Vercel adapter for the Model Context Protocol (MCP), enabling real-time communication between your applications and AI models. Supports Next.js and Nuxt.
Installation
npm install mcp-handler @modelcontextprotocol/[email protected] zod@^3
Note: Versions of
@modelcontextprotocol/sdkprior to 1.26.0 have a security vulnerability. Use version 1.26.0 or later.
Quick Start (Next.js)
// app/api/[transport]/route.ts
import { createMcpHandler } from "mcp-handler";
import { z } from "zod";
const handler = createMcpHandler(
(server) => {
server.registerTool(
"roll_dice",
{
title: "Roll Dice",
description: "Roll a dice with a specified number of sides.",
inputSchema: {
sides: z.number().int().min(2),
},
},
async ({ sides }) => {
const value = 1 + Math.floor(Math.random() * sides);
return {
content: [{ type: "text", text: `🎲 You rolled a ${value}!` }],
};
}
);
},
{},
{
basePath: "/api", // must match where [transport] is located
maxDuration: 60,
verboseLogs: true,
}
);
export { handler as GET, handler as POST };
Connecting Clients
If your client supports Streamable HTTP, connect directly:
{
"remote-example": {
"url": "http://localhost:3000/api/mcp"
}
}
For stdio-only clients, use mcp-remote:
{
"remote-example": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:3000/api/mcp"]
}
}
Documentation
- Client Integration - Claude Desktop, Cursor, Windsurf setup
- Authorization - OAuth and token verification
- Advanced Usage - Dynamic routing, Nuxt, configuration options
Features
- Framework Support: Next.js and Nuxt
- Multiple Transports: Streamable HTTP and Server-Sent Events (SSE)
- Redis Integration: Optional, for SSE transport resumability
- TypeScript Support: Full type definitions included
Requirements
- Next.js 13+ or Nuxt 3+
- Node.js 18+
- Redis (optional, for SSE)
License
Apache-2.0
Install Vercel MCP Adapter in Claude Desktop, Claude Code & Cursor
unyly install vercel-mcp-adapterInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add vercel-mcp-adapter -- npx -y mcp-handlerStep-by-step: how to install Vercel MCP Adapter
FAQ
Is Vercel MCP Adapter MCP free?
Yes, Vercel MCP Adapter MCP is free — one-click install via Unyly at no cost.
Does Vercel MCP Adapter need an API key?
No, Vercel MCP Adapter runs without API keys or environment variables.
Is Vercel MCP Adapter hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Vercel MCP Adapter in Claude Desktop, Claude Code or Cursor?
Open Vercel MCP Adapter 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 Vercel MCP Adapter with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
