Labsco
msabramo logo

Vercel MCP Server

from msabramo

An MCP server deployed on Vercel that provides a dice rolling tool.

๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Vercel MCP Server

A Model Control Protocol (MCP) server deployed on Vercel that provides a dice rolling tool.

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.)