Nuxt MCP Server on Vercel
LocalAbout Nuxt MCP Server on Vercel
Nuxt MCP Server on Vercel is a Nuxt application template for building MCP servers. Developers can add tools, prompts, and resources in `server/routes/mcp.ts`; it uses Streamable HTTP transport and mounts the server at `/mcp`.
Key features
- 01Nuxt and Nitro template
- 02Streamable HTTP transport
- 03Tools, prompts, and resources
- 04MCP endpoint at `/mcp`
- 05Sample client script
Use cases
- 01Start a Nuxt-based MCP server
- 02Add custom tools and prompts
- 03Test local server invocations
MCP support
It serves as an MCP server over Streamable HTTP, exposing configured tools, prompts, and resources at `/mcp`.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMENuxt MCP Server Template
This is a simple Nuxt application that serves as a MCP server using the Streamable HTTP Server Transport.
Update server/routes/mcp.ts with your tools, prompts, and resources following the mcp-handler documentation.
The MCP server is mounted on /mcp.
Setup
Make sure to install dependencies:
pnpm install
Development Server
Start the development server on another terminal on http://localhost:3000:
pnpm dev
Production
Build the application for production:
pnpm build
Locally preview production build:
pnpm preview
Check out the deployment documentation for more information.
Notes for running on Vercel
Make sure you have Fluid compute enabled for efficient execution
Sample Client
script/test-client.mjs contains a sample client to try invocations.
node scripts/test-client.mjs http://localhost:3000
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.