Vercel MCP Server is an MCP server that provides an example implementation of Model Context Protocol endpoints deployed on Vercel using Next.js. Built primarily as a deployable server template, it connects MCP clients like Claude Desktop and Cursor to cloud-hosted API routes. Developers and engineers use this server to understand how to build and host lightweight remote MCP tools on serverless platforms. The server implements a simple dice rolling utility that accepts a custom number of sides and returns a randomized result over HTTP. Beyond the provided roll_dice tool, the codebase offers a structured starting point featuring route handlers under the app directory, allowing developers to extend the API with custom external tools and serverless operations. By leveraging standard MCP over HTTP endpoints, the server eliminates the need to run local process binaries, making it accessible from any network-aware client environment.
Category: Other & General Purpose
Tags: dice, random, utility, vercel
To run the server locally or deploy it to Vercel and connect it to your MCP client, follow these steps: 1. Install dependencies and start the local development server: bash npm install npm run dev The local endpoint will be available at http://localhost:3000/api/mcp. 2. To host it remotely, push the repository to GitHub, link it to Vercel, and deploy to obtain your production URL (https://your-project.vercel.app/api/mcp). 3. To configure Claude Desktop, add the server to your configuration file: json { "mcpServers": { "vercel-mcp": { "command": "npx", "args": [ "@modelcontextprotocol/server-fetch", "https://your-project.vercel.app/api/mcp" ] } } } 4. For Cursor, open MCP settings and add the server URL https://your-project.vercel.app/api/mcp directly.
Part of MCP Servers
Vercel MCP Server is an open implementation of a Model Context Protocol endpoint designed to be hosted on Vercel using Next.js. It offers a practical demonstration of hosting MCP tools remotely in a serverless environment and comes with a built-in dice rolling function.
The server includes the roll_dice tool. It accepts a numerical sides parameter with a minimum value of two, simulates rolling an N-sided die, and returns the result as a text message response.
It works with any MCP client capable of communicating over HTTP or via bridge utilities. The documentation specifically details connections using Claude Desktop via the @modelcontextprotocol/server-fetch package, as well as native URL configuration in Cursor.
You can test the server locally by running npm run dev and sending HTTP requests to the /api/mcp route. Once deployed on Vercel, the endpoint accepts standard MCP protocol messages over HTTPS.