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 - notationstring
- Output: 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) 
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 
Installation
Installing via Smithery
To install Dice Roller for Claude Desktop automatically via Smithery:
Make uv available: https://docs.astral.sh/uv/getting-started/installation/
Usage
Basic Command Line Usage
Input Format
The server accepts a JSON object with a notation field:
Example responses:
Claude Desktop Configuration
Location
- macOS: - ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: - %APPDATA%/Claude/claude_desktop_config.json
Examples
Note: Replace zsh with your login shell.
Development and Debugging
Installing Development Dependencies
Running Tests
Using MCP Inspector
The MCP Inspector is a useful tool for debugging your MCP server. Install and run it using npm:
Claude Desktop Configuration for Development
Note: Replace path/to/mcp-dice-repo with the path to the repository on your filesystem.
Note: Replace zsh with your login shell. Also, replace path/to/mcp-dice-repo with the path to the repository on your WSL filesystem.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
A MCP server enabling LLMs to roll dice
Related MCP Servers
- Asecurity-licenseAqualityAn MCP server that provides LLMs access to other LLMsLast updated -1667MIT License
- -security-license-qualityAn MCP server that provides tools to load and fetch documentation from any llms.txt source, giving users full control over context retrieval for LLMs in IDE agents and applications.Last updated -766MIT License
- Asecurity-licenseAqualityAn MCP server that enables LLMs to interact with Moodle platforms to manage courses, students, assignments, and quizzes through natural language commands.Last updated -718MIT License
- Apache 2.0