This is a simple Nuxt application that serves as a MCP server on Vercel using @vercel/mcp-adapter.
This sample app uses the Vercel MCP Adapter that allows you to drop in an MCP server on a group of routes in any Nuxt project.
Update server/routes/mcp/[transport].ts with your tools, prompts, and resources following the MCP TypeScript SDK documentation.
The MCP server is mounted on /mcp/[transport] (ex: /mcp/sse).
Make sure to install dependencies:
pnpm installMake sure to have Redis running locally:
redis-serverStart the development server on another terminal on http://localhost:3000:
pnpm devBuild the application for production:
pnpm buildLocally preview production build:
pnpm previewCheck out the deployment documentation for more information.
- 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
server/routes/mcp/[transport].tsand adjustmaxDurationto 800 if you using a Vercel Pro or Enterprise account - Deploy the Nuxt MCP template
script/test-client.mjs contains a sample client to try invocations.
node scripts/test-client.mjs http://localhost:3000This project is based on the Next.js MCP template.