dice-rolling-mcp
If you are the rightful owner of dice-rolling-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A TypeScript-based Model Context Protocol (MCP) server that provides comprehensive dice rolling capabilities to AI assistants, supporting standard dice notation with advanced mechanics commonly used in tabletop gaming.
The Dice Rolling MCP Server addresses the limitations of Large Language Models (LLMs) in generating truly random dice rolls. LLMs, being deterministic, cannot produce genuine randomness, which is crucial for gaming integrity, simulation accuracy, and reproducibility. This server bridges the gap by providing AI assistants with access to cryptographically secure random number generation, ensuring fair and authentic dice rolls. It supports a wide range of dice notations and advanced mechanics, making it suitable for tabletop RPGs and other applications requiring precise randomness. By parsing dice notation and applying real dice mechanics, the server returns genuine random results, enhancing the AI's capability to simulate real-world dice rolling scenarios.
Features
- Standard Dice Notation: Supports basic rolls, modifiers, multiple dice types, percentile dice, and fudge dice.
- Advanced Mechanics: Includes advantage/disadvantage, drop mechanics, exploding dice, reroll mechanics, and success counting.
- Security: Utilizes Node.js crypto.randomInt() for cryptographically secure randomness.
- Extensibility: Modular architecture allows easy addition of new dice mechanics.
- Compatibility: ES2022 target with fallbacks for broader Node.js version support.
Tools
dice_roll
Executes dice rolls using standard notation with optional labeling and verbose output.
dice_validate
Validates dice notation without executing the roll, providing detailed breakdown of what the notation means.