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
Jira MCP Server
An MCP server for interacting with Jira projects and issues.
Confluence
Integrate with Atlassian Confluence to access spaces, search pages, and manage content from any MCP-compatible application.
Mac Apps Launcher MCP Server
Launch and manage macOS applications. List installed apps, launch them by name, or open files with specific apps.
Google Sheets
A server that connects to the Google Sheets API, enabling AI-driven spreadsheet automation and data manipulation.
Time-mcp
A simple Model Context Protocol (MCP) server that provides the current date and time.
Plus AI MCP
A Model Context Protocol (MCP) server for automatically generating professional PowerPoint and Google Slides presentations using the Plus AI presentation API
Notebooklm mcp server
Let your AI agents chat directly with Google NotebookLM for zero-hallucination answers.
Markdownify MCP Server
A server that converts various file types, including documents, images, audio, and web pages, into Markdown format.
ZenHub
Access the ZenHub GraphQL API to manage project workflows and enhance productivity.
MCP iCal Server
A server for performing CRUD operations on the macOS Calendar app.