Dice Roller MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Dice Roller MCP ServerRoll a d20 with advantage"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Dice Roller MCP Server
A Model Context Protocol (MCP) server that flips coins and rolls dice, including standard dice notation and D&D mechanics.
Purpose
This MCP server gives Claude a simple, dependency-free way to generate random results for tabletop games, D&D sessions, or any "let's leave it to chance" moment.
Related MCP server: Dice Roller MCP Server
Features
Current Implementation
flip_coin- Flip one or more coins and get Heads/Tails resultsroll_dice- Roll dice using standard notation (e.g.d20,2d6+3,4d6-1)roll_advantage- Roll 2d20 and keep the higher, D&D advantage mechanicroll_disadvantage- Roll 2d20 and keep the lower, D&D disadvantage mechanicroll_ability_scores- Generate D&D ability scores (4d6, drop lowest) for one or more stats
Prerequisites
Docker Desktop with MCP Toolkit enabled
Docker MCP CLI plugin (
docker mcpcommand)No API keys or external services required — this server is fully self-contained
Installation
See the step-by-step instructions provided alongside these files.
Usage Examples
In Claude Desktop, you can ask:
"Flip a coin"
"Flip 5 coins"
"Roll 2d6+3"
"Roll a d20"
"Roll with advantage, +5 modifier"
"Roll with disadvantage"
"Roll me a set of D&D ability scores"
"Generate 6 ability scores for a new character"
Architecture
Claude Desktop → MCP Gateway → Dice Roller MCP Server (local, no external calls)Development
Local Testing
# Run directly
python dice_server.py
# Test MCP protocol
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | python dice_server.pyAdding New Tools
Add the function to
dice_server.pyDecorate with
@mcp.tool()Use a single-line docstring and string parameter defaults (
param: str = "")Update the catalog entry with the new tool name
Rebuild the Docker image
Troubleshooting
Tools Not Appearing
Verify the Docker image built successfully
Check catalog and registry files
Ensure Claude Desktop config includes the custom catalog
Restart Claude Desktop
Unexpected Errors
Check container logs with
docker logs <container_name>Confirm dice notation matches the expected format, e.g.
NdM,NdM+K, orNdM-K
Security Considerations
No API keys or secrets are used by this server
Running as a non-root user inside the container
No external network calls are made
License
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate random values and probability distribution samples.
Spin a random picker wheel, pick a random number, and search shared wheels from spinwheelnames.com.
Trade, monitor portfolios, and build Coinrule strategies by chat.
Validates PESEL/NIP/REGON/IBAN/Luhn/ISBN/EAN/SWIFT-BIC/VAT; RPN, date math, hash, tokens, random
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables dice rolling mechanics for tabletop RPGs including standard dice notation, coin flips, advantage/disadvantage rolls, exploding dice, and maintains a history of recent rolls. Supports D\&D 5e mechanics and various gaming dice types (d4, d6, d8, d10, d12, d20, d100).-
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive dice rolling functionality for tabletop games and RPGs, supporting standard dice notation, D\&D ability score generation, advantage/disadvantage rolls, and skill checks against difficulty classes.-
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive dice rolling, coin flipping, and tabletop RPG mechanics for AI assistants like Claude. It enables real-time tabletop gaming through features such as standard NdM notation, advantage/disadvantage rolls, and D\&D character stat generation.1-
- AlicenseAqualityDmaintenanceEnables dice rolling for RPG games using standard dice notation, supporting complex expressions like keep/drop, reroll, exploding dice, and batch rolls.43MIT