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
Raindrop.io
Interact with and manage your Raindrop.io bookmarks.
Todoist
Manage your Todoist tasks and projects using the Todoist Python API.
Obsidian via REST
Access and manage your Obsidian vault through a local REST API.
GetOutPost MCP Server
Access real-time Indian options market data and volatility analytics. Analyze IV, RV, VRP, and skew with automated token management and percentile-based filtering tools.
MCP-PDF2MD
A high-performance PDF to Markdown conversion service powered by MinerU API, supporting batch processing for local files and URLs.
PyApple MCP Tools
Python tools for MCP that integrate with native Apple applications like Messages, Notes, Mail, and more on macOS.
Bear MCP Server
Provides direct access to your Bear notes database for comprehensive note management, bypassing standard API limitations.
å¢Øé® MCP Server
An intelligent note-taking tool and content community for creating, sharing, and managing notes with file upload capabilities.
Browser Use
A simple note storage system with tools to add and summarize notes using a custom URI scheme.
Google Sheets
Integrate with Google Sheets to read, write, and manage spreadsheet data.