server-dice-roll
MCP Server for simulating dice rolls
Documentation
server-dice-roll
A Model Context Protocol (MCP) server for simulating dice rolls with support for standard dice notation and Fate/Fudge dice.
Features
- Dice Notation Parsing: Parse standard dice notation strings like `2d6`, `1d20+5`, or `4dF`
- Multiple Dice Types: Support for both standard dice and Fate/Fudge dice
- Random Rolling: Generate truly random dice rolls with accurate probability distributions
- Validation: Full input and output validation using Zod schemas
- MCP Integration: Seamlessly integrates with any MCP-compatible client like Claude Desktop
Usage
This MCP server provides two main tools:
1. Parse Dice Notation
Parses a dice notation string and returns the structured representation.
parse_dice_roll_notation
input: { notation: "3d6+4" }
output: { type: "standard", count: 3, sides: 6, modifier: 4 }2. Roll Dice
Rolls dice based on a dice roll configuration and returns the results.
dice_roll
input: { type: "standard", count: 3, sides: 6, modifier: 4 }
output: { rolls: [5, 2, 6], total: 17, original: "3d6+4" }Installation and Setup
Using with Claude Desktop
Add this server to your Claude Desktop configuration:
{
"mcpServers": {
"dice": {
"command": "npx",
"args": ["-y", "server-dice-roll"]
}
}
}Using with npm/npx
# Install globally
npm install -g server-dice-roll
# Run the server
mcp-server-dice-roll
# Or run directly with npx
npx server-dice-rollUnderstanding Dice Notation
Dice notation is a system used in tabletop role-playing games to represent different dice rolls.
Standard Notation
The standard format is `NdS+M` where:
- `N` is the number of dice to roll (optional, defaults to 1)
- `d` indicates a die roll
- `S` is the number of sides on each die
- `+M` is a modifier to add to the total (optional)
Examples:
- `d6` - Roll one 6-sided die
- `2d10` - Roll two 10-sided dice and sum the results
- `3d8+5` - Roll three 8-sided dice, sum the results, and add 5
Fate/Fudge Dice
Fate dice (also known as Fudge dice) are special 6-sided dice with values of -1, 0, and +1 (two sides each).
Format: `NdF` where:
- `N` is the number of dice to roll
- `dF` indicates Fate dice
Example:
- `4dF` - Roll four Fate dice (results in values between -4 and +4)
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Author
Created by Luke Bayliss
Release Process
This project uses a single integrated workflow for versioning, releases, and publishing:
1. Version Bump Labels: Each PR to the main branch should include exactly one version bump label:
2. Sequential Workflow: The integrated Release and Publish workflow consists of three sequential jobs:
3. Automated Triggers: The workflow runs automatically in these scenarios:
All these steps run in a coordinated workflow with proper dependencies to ensure reliability.
PR Requirements
All PRs should include exactly one version bump label (`patch`, `minor`, or `major`). If no label is specified, the system will automatically add the `patch` label as the default. PRs with multiple version labels will still be blocked from merging.
Manual Versioning
To manually trigger a version bump without creating a PR:
1. Go to Actions > Version Bump workflow
2. Click "Run workflow"
3. Select the branch and bump type (patch, minor, major)
4. Click "Run workflow"
The rest of the process (creating release and publishing) will happen automatically.
Frequently asked questions
What is server-dice-roll?
server-dice-roll is MCP Server for simulating dice rolls
How do I install server-dice-roll?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is server-dice-roll open source?
Yes — it is hosted on GitHub at https://github.com/lpbayliss/server-dice-roll and has 2 stars.
Related MCP tools
Playwright MCP server TypeScript-based implementation. Trusted by 22000+ developers. Trusted by 22000+ developers. Trusted by 22000+ developers.
Official Notion MCP Server TypeScript-based implementation. Trusted by 3400+ developers. Trusted by 3400+ developers. Trusted by 3400+ developers.
Directory for Awesome MCP Servers TypeScript-based implementation. Trusted by 1900+ developers. Trusted by 1900+ developers.
🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes.
MCP Aggregator, Orchestrator, Middleware, Gateway in one docker TypeScript-based implementation. Trusted by 1400+ developers.
MCP Server for kubernetes management commands TypeScript-based implementation. Trusted by 1100+ developers. Trusted by 1100+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP