Vercel MCP Server
An MCP server deployed on Vercel that provides a dice rolling tool.
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 install -
Run the development server:
npm run dev -
Your 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:
{
"content": [
{
"type": "text",
"text": "π² You rolled a 4!"
}
]
}
Connecting to MCP Hosts
Claude Desktop
Add the following to your Claude Desktop configuration:
{
"mcpServers": {
"vercel-mcp": {
"command": "npx",
"args": [
"@modelcontextprotocol/server-fetch",
"https://your-project.vercel.app/api/mcp"
]
}
}
}
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
vercel-mcp/
βββ app/
β βββ api/
β βββ mcp/
β βββ route.ts # MCP handler implementation
βββ package.json
βββ next.config.js
βββ tsconfig.json
βββ README.md
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.)
Related Servers
VisiData MCP Server
Interact with VisiData, a terminal spreadsheet multitool for discovering and arranging tabular data in various formats like CSV, JSON, and Excel.
Lenny's Podcast Transcripts
Search 286 episodes of product management wisdom from Lenny Rachitsky. Semantic search across 300+ hours of transcripts.
Valkey AI Tasks
A task management system for AI agents that uses Valkey as its persistence layer.
Todoist
Manage Todoist projects, sections, tasks, and labels using natural language with AI assistants.
Browser MCP
An MCP server that allows AI applications to control your browser.
Time MCP Server
Provides the current time using IANA timezone names, with automatic system timezone detection.
Taiga MCP Server
A server for Taiga project management, enabling advanced sprint and issue tracking.
MCP Easy Copy
Discover and copy available MCP services in Claude Desktop.
Pomera AI Commander
Turn messy text into clean output fastβGUI for humans, MCP tools for AI IDEs (Cursor/Claude). 33 deterministic text utilities.
HomeVisto
HomeVisto offers a revolutionary solution by connecting remote property seekers with local "Scouts" who provide live, GPS-verified video tours of properties.