Dice Roller MCP Server
Click on "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables 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).
- Flicense-qualityDmaintenanceProvides 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.
- Flicense-qualityDmaintenanceProvides 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
Related MCP Connectors
Trade, monitor portfolios, and build Coinrule strategies by chat.
Create diagrams in chat, rendered as live interactive draw.io diagrams. 10,000+ searchable shapes.
D&D 5e MCP — wraps the D&D 5th Edition API (free, no auth)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sandeepgandhi500/dice-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server