mcp-dice
The mcp-dice server allows Large Language Models (LLMs) to roll dice using standard notation (e.g., 1d20, 3d6, 2d8+1, 1d4-1).
Input: Accepts dice notation through a JSON object containing a
notationstringOutput: Returns individual dice roll results, their sum, modifier, and total result
Integration: Easily integrates with Claude Desktop and is compatible with MCP Inspector for debugging
Customization: Supports custom configurations for macOS and Windows (including WSL)
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-diceroll 2d20 for my character's attack"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-dice: A MCP Server for Rolling Dice
A Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to roll dice. It accepts standard dice notation (e.g., 1d20) and returns both individual rolls and their sum.
Features
Supports standard dice notation (e.g.,
1d20,3d6,2d8+1)Returns both individual rolls and the total sum
Easy integration with Claude Desktop
Compatible with MCP Inspector for debugging
Related MCP server: superpowers-mcp
Installation
Installing via Smithery
To install Dice Roller for Claude Desktop automatically via Smithery:
npx @smithery/cli install mcp-dice --client claudeMake uv available: https://docs.astral.sh/uv/getting-started/installation/
Usage
Basic Command Line Usage
# Using uvx
uvx mcp-diceInput Format
The server accepts a JSON object with a notation field:
{
"notation": "2d6+3"
}Example responses:
{
"rolls": [
3,
1
],
"sum": 4,
"modifier": 3,
"total": 7,
"notation": "2d6+3",
"timestamp": "2024-12-03T16:36:38.926452"
}Claude Desktop Configuration
Location
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.json
Examples
{
"mcpServers": {
"dice": {
"command": "uvx",
"args": ["mcp-dice"]
}
}
}{
"mcpServers": {
"dice": {
"command": "wsl",
"args": [
"-e",
"zsh",
"-lc",
"uvx mcp-dice"
]
}
}
}Note: Replace zsh with your login shell.
Development and Debugging
Installing Development Dependencies
# Clone the repository
git clone https://github.com/yourusername/mcp-dice
cd mcp-dice
# Install development dependencies
uv pip install -e ".[dev]"Running Tests
uv run pytestUsing MCP Inspector
The MCP Inspector is a useful tool for debugging your MCP server. Install and run it using npm:
npx @modelcontextprotocol/inspector uvx mcp-diceClaude Desktop Configuration for Development
{
"mcpServers": {
"dice": {
"command": "uv",
"args": [
"run",
"--directory",
"path/to/mcp-dice-repo",
"mcp-dice"
]
}
}
}Note: Replace path/to/mcp-dice-repo with the path to the repository on your filesystem.
{
"mcpServers": {
"dice": {
"command": "wsl",
"args": [
"-e",
"zsh",
"-lc",
"uv run --directory path/to/mcp-dice-repo mcp-dice"
]
}
}
}Note: Replace zsh with your login shell. Also, replace path/to/mcp-dice-repo with the path to the repository on your WSL filesystem.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityCmaintenanceAn MCP server that provides LLMs access to other LLMsLast updated42979MIT
- Alicense-qualityFmaintenanceAn MCP server that makes superpowers skills available to any LLM that supports the Model Context Protocol.Last updated1,19414MIT
- Alicense-qualityFmaintenanceAn MCP server that enables AI agents to act as dynamic dungeon masters for text-based RPGs with dynamically generated rule systems and comprehensive game state management.Last updated309MIT
- Alicense-qualityBmaintenanceAn MCP server enabling AI agents to autonomously play D\&D as players and Dungeon Masters, with real dice rolls and full campaign management.Last updated2MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yamaton/mcp-dice'
If you have feedback or need assistance with the MCP directory API, please join our Discord server