What it does
diceport rolls dice in NdM notation, with an optional die count and flat modifier, flips coins and picks random integers. Each roll reports every individual face that contributed to its total, along with the modifier and the final sum.
It suits scripts or agents that need chance results they can explain afterwards. Passing a seed makes the outcome fixed, so the same seed gives the same result. Seeded calls use a mulberry32 generator, so any reported result can be replayed. Unseeded calls draw from the platform random source. The package offers a command-line interface and a stdio MCP server, started with the mcp subcommand, which exposes three tools: roll_dice, flip_coin and random_number.
Running it means installing the package or using its container image, which starts the MCP server by default; passing CLI arguments switches it to CLI mode. An MCP client needs its own configuration to connect. The CLI exits with code 0 on success, 1 when a roll or range cannot be completed, and 2 for usage errors. The project is released under the MIT license.
Limitations and requirements
A roll or range that cannot be completed, such as bad notation or an inverted range, returns an error and exits with code 1; usage errors exit with code 2. Unseeded calls draw from the platform random source, so their results cannot be replayed. An MCP client must be configured separately to use the server.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
io.github.CloudCorpRecords/diceport
Dice rolls, coin flips, and random numbers, reproducible with a seed.
v0.1.0As shown on registry.modelcontextprotocol.io when we last read it