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.)
相关服务器
Kone.vc
赞助Monetize your AI agent with contextual product recommendations
n8n MCP Server
Provides workflow validation and best practices tools for the n8n automation platform.
Saga
A Jira-like project tracker for AI agents — epics, tasks, dependencies, and dashboards, all in local SQLite with zero setup.
MCP Google Workspace
A comprehensive MCP server for managing Google Workspace services like Calendar, Contacts, and Gmail using OAuth2 authentication.
Feishu Project Management
An MCP server for interacting with the Feishu project management system, enabling AI assistants to manage projects.
YesDev
AI-powered tools for efficient task, requirement, and project management using the YesDev platform.
AI Tutor
An AI-powered tutor for higher education that supports both Claude and OpenAI models through MCP.
Notion MCP Server
An MCP server for interacting with your Notion workspace, enabling LLMs to manage pages and databases.
OmniFocus
A professional MCP server for OmniFocus with smart caching and analytics to manage tasks and projects.
stakeholder-mcp
Let your AI agent have conversations with different personas on features and implementation details
Todos
Personal todo list that persists across sessions. Create, update, complete, reorder, and delete todos. Todos are private to your mctx account. Call status first in every new session to see what's pending.