Dice Roller MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
dice-roller — tabletop dice, coin flips and exact dice odds on the Pipeworx chance engine…
Fair, reproducible randomness for agents: dice, coins, integers, list picks, shuffles, with seeds.
Fair, reproducible randomness for agents: dice, coins, integers, list picks, shuffles, with seeds.
Fair, reproducible randomness for agents: dice, coins, integers, list picks, shuffles, with seeds.
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.44MIT