Skip to main content
Glama

Nuxt MCP Server on Vercel

by atinux

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:

pnpm install

Development Server

Make sure to have Redis running locally:

redis-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

  • 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 adjust maxDuration 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.

node scripts/test-client.mjs http://localhost:3000

Credits

This project is based on the Next.js MCP template.

-
security - not tested
F
license - not found
-
quality - not tested

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.

  1. Usage
    1. Setup
      1. Development Server
        1. Production
          1. Notes for running on Vercel
            1. Sample Client
              1. Credits

                Related MCP Servers

                • A
                  security
                  F
                  license
                  A
                  quality
                  A powerful Model Context Protocol (MCP) server enabling seamless Vercel project management, including deployments, domains, environment variables, and team configurations through Cursor's Composer or Codeium's Cascade.
                  Last updated -
                  61
                  50
                  TypeScript
                  • Apple
                  • Linux
                • -
                  security
                  A
                  license
                  -
                  quality
                  MCP server that helps AI models understand Vite/Nuxt applications better, available as both a Nuxt module and Vite plugin.
                  Last updated -
                  TypeScript
                  MIT License
                • -
                  security
                  A
                  license
                  -
                  quality
                  A 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 -
                  JavaScript
                  MIT License
                • -
                  security
                  A
                  license
                  -
                  quality
                  A sample implementation of a Model Context Protocol server using Next.js and the Vercel MCP Adapter, allowing developers to create AI assistants with custom tools and resources.
                  Last updated -
                  TypeScript
                  MIT License

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/atinux/mcp-with-nuxt-vercel'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server