mcp-dice: A MCP Server for Rolling Dice
Created at 20 hours ago
by yamaton
A MCP server enabling LLMs to roll dice
Categories
Tags
mcp-dice
dice-rolling
llm-integration
mcp-dice: A MCP Server for Rolling Dice
What is mcp-dice?
mcp-dice is a Model Context Protocol (MCP) server that allows Large Language Models (LLMs) to roll dice based on standard dice notation. It outputs individual rolls and the total sums of the rolls, making it useful for games and simulations requiring randomness.
How to use mcp-dice?
To utilize mcp-dice, you must have uv
installed. Then, you can run the server using a command like uvx mcp-dice
, and you can send input via JSON format to get the dice rolls.
Key features of mcp-dice?
- Supports various dice notations (e.g.,
1d20
,3d6
,2d8+1
). - Returns individual roll results and their total sum.
- Integrates easily with external applications like Claude Desktop.
- Provides debugging support through MCP Inspector.
Use cases of mcp-dice?
- Rolling dice for tabletop games such as Dungeons & Dragons.
- Generating random numbers for simulations and tests.
- Assisting developers in debugging applications that use dice rolls.
FAQ from mcp-dice?
- Can mcp-dice handle multiple dice rolls at once?
Yes, it can handle complex notations, such as
3d6
, which rolls three six-sided dice at once.
- Is there a graphical interface for mcp-dice?
Currently, it operates via command line and JSON inputs, with no dedicated graphical interface.
- Where can I find the installation instructions?
Full installation steps are available in the project documentation on the GitHub page.
View More