Provides integration with Next.js, allowing the MCP server to be embedded within any Next.js project by updating route handlers.
Integrates with Redis for supporting Server-Sent Events (SSE) transport when deployed on Vercel.
Leverages TypeScript SDK for defining tools, prompts, and resources for the MCP server implementation.
Enables deployment on Vercel's platform with specific optimizations like Fluid compute for efficient execution and support for longer running functions.
Example Next.js MCP Server
Uses @vercel/mcp-adapter
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
- Make sure you have Fluid compute enabled for efficient execution
- After enabling Fluid compute, open
app/route.ts
and adjustmaxDuration
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.
This server cannot be installed
A drop-in Model Context Protocol server implementation for Next.js projects that enables AI tools, prompts, and resources integration using the Vercel MCP Adapter.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server designed to facilitate Nextflow development and testing, providing tools for building from source, running tests, and managing the Nextflow development environment.Last updated -1Python
- -securityFlicense-qualityA simple Nuxt application that serves as a Model Context Protocol server deployable on Vercel, allowing developers to implement AI tools, prompts, and resources through the MCP TypeScript SDK.Last updated -513TypeScript
- -securityAlicense-qualityA sample MCP server implementation for Next.js projects that uses the Vercel MCP Adapter to handle protocol requests across different transport methods.Last updated -1TypeScriptMIT License
- -securityAlicense-qualityA drop-in MCP server implementation for Next.js projects using Vercel MCP Adapter, allowing developers to integrate model context protocol functionality with custom tools, prompts, and resources.Last updated -JavaScriptMIT License