Provides a deployment platform for hosting the MCP server, making it accessible via HTTP endpoints for dice rolling functionality.
Vercel MCP Server
A Model Control Protocol (MCP) server deployed on Vercel that provides a dice rolling tool.
Getting Started
Local Development
Install dependencies:
npm installRun the development server:
npm run devYour MCP server will be available at
http://localhost:3000/api/mcp
Deploy to Vercel
Push your code to a GitHub repository
Connect your repository to Vercel
Deploy with a single click
Your MCP server will be available at
https://your-project.vercel.app/api/mcp
Available Tools
roll_dice
Rolls an N-sided die and returns the result.
Parameters:
sides(number): The number of sides on the die (minimum 2)
Example Response:
Connecting to MCP Hosts
Claude Desktop
Add the following to your Claude Desktop configuration:
Cursor
In Cursor, you can connect to your MCP server through the MCP settings by adding:
Server URL:
https://your-project.vercel.app/api/mcp
Testing
You can test your MCP server by making HTTP requests to the endpoint. The server accepts MCP protocol messages over HTTP.
Project Structure
Next Steps
Add more tools to your MCP server
Customize the dice rolling tool
Deploy to production on Vercel
Connect to your favorite MCP host (Claude, Cursor, etc.)