7 months ago
A Model Context Protocol (MCP) server for simulating dice rolls with support for standard dice notation and Fate/Fudge dice. It provides tools to parse dice notation strings (like "3d6+4") and generate random dice rolls. Integrates with MCP-compatible clients like Claude Desktop and features full input/output validation using Zod schemas. It supports both standard dice (NdS+M format) and Fate/Fudge dice (NdF format) commonly used in tabletop role-playing games.
Overview
What is Dice Roll?
Dice Roll is a Model Context Protocol (MCP) server designed for simulating dice rolls, supporting standard dice notation and Fate/Fudge dice. It allows users to parse dice notation strings and generate random rolls with accurate probability distributions, making it ideal for tabletop role-playing games.
How to use Dice Roll?
To use Dice Roll, you can either integrate it with MCP-compatible clients like Claude Desktop or run it directly using npm/npx. You can parse dice notation strings and roll dice based on configurations.
Key features of Dice Roll?
- Dice Notation Parsing: Parses strings like
3d6+4to structured representations. - Multiple Dice Types: Supports standard and Fate/Fudge dice.
- Random Rolling: Generates random rolls with accurate distributions.
- Validation: Full input/output validation using Zod schemas.
- MCP Integration: Works seamlessly with MCP-compatible clients.
Use cases of Dice Roll?
- Simulating dice rolls for tabletop RPGs.
- Generating random outcomes for games.
- Validating and parsing complex dice notation for game mechanics.
FAQ from Dice Roll?
- Can Dice Roll handle all types of dice notation?
Yes! It supports both standard and Fate/Fudge dice notation.
- Is Dice Roll easy to integrate with existing applications?
Yes! It can be easily integrated with any MCP-compatible client.
- How accurate are the random rolls generated?
The rolls are generated using accurate probability distributions, ensuring fairness in gameplay.
Server Config
{
"mcpServers": {
"dice": {
"command": "npx",
"args": [
"server-dice-roll"
]
}
}
}