Integrations
Serves as a foundation for the MCP server, allowing it to be integrated into any Nuxt project with custom routes
Required for using the SSE transport in production, serving as the backing store for message handling
Provides type definitions and SDK support for building MCP tools, prompts, and resources
Nuxt MCP Server on Vercel
This is a simple Nuxt application that serves as a MCP server on Vercel using @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 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
).
Setup
Make sure to install dependencies:
Development Server
Make sure to have Redis running locally:
Start the development server on another terminal on http://localhost:3000
:
Production
Build the application for production:
Locally preview production build:
Check out the deployment documentation for more information.
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
server/routes/mcp/[transport].ts
and adjustmaxDuration
to 800 if you using a Vercel Pro or Enterprise account - Deploy the Nuxt MCP template
Sample Client
script/test-client.mjs
contains a sample client to try invocations.
Credits
This project is based on the Next.js MCP template.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A 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.
Related MCP Servers
- AsecurityFlicenseAqualityA template for creating Model Context Protocol (MCP) servers in TypeScript, offering features like container-based dependency injection, a service-based architecture, and integration with the LLM CLI for architectural design feedback through natural language.Last updated -15TypeScript
- -securityAlicense-qualityA server that helps AI models better understand Vite/Nuxt applications, providing enhanced context awareness for development support.Last updated -467TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that allows management of Netlify sites, enabling users to create, list, get information about, and delete Netlify sites directly from an MCP-enabled environment.Last updated -JavaScriptMIT License
- -securityFlicense-qualityA TypeScript framework for building Model Context Protocol (MCP) servers with automatic discovery and loading of tools, resources, and prompts.Last updated -67TypeScript