Dice Rolling MCP
D

Dice Rolling MCP

An MCP server based on TypeScript that provides advanced dice rolling functionality for AI assistants, solving the problem that LLMs cannot truly roll dice randomly. It is suitable for scenarios such as tabletop games and RPGs that require real random numbers.
2 points
5.4K

What is the Dice Rolling MCP Server?

This is a Model Context Protocol (MCP) server based on TypeScript, specifically designed to provide real dice rolling functionality for AI assistants. It solves the problem that AI cannot truly generate random numbers, allowing AI to play games and perform simulations as if using real dice.

How to use the Dice Rolling MCP Server?

After configuring an AI assistant (such as Claude Desktop) to connect to this MCP server, users can directly send dice rolling requests to the AI, for example, '3d6+2'. The AI will forward the request to the server, and the server will generate a real random result and return it to the AI.

Applicable Scenarios

Suitable for any scenario that requires real random number generation, including but not limited to: tabletop games, role - playing games (RPGs), statistical simulations, teaching demonstrations, etc.

Main Features

Standard Dice Notation
Supports various dice notations, including basic dice (1d20), modifiers (+5), combinations of multiple types of dice (3d6 + 2d8), and percentage dice (1d%).
Advanced Dice Mechanisms
Supports complex rules such as advantage/disadvantage (2d20kh1/kl1), drop mechanisms (4d6dl1/dh1), exploding dice (3d6!), and reroll mechanisms (4d6r1).
Verification Tool
Provides a dice expression verification function to ensure the input format is correct and explains the meaning of each part in detail.
Secure Random Number Generation
Uses Node.js's crypto.randomInt() to generate cryptographically secure random numbers, ensuring the unpredictability and fairness of the results.
Advantages
Provides true random number generation to ensure the fairness of games and simulations.
Supports multiple dice mechanisms to meet the needs of different game systems.
Easy to integrate into AI assistants (such as Claude Desktop) to enhance the user experience.
Limitations
Requires certain technical configuration to use (such as installing Node.js and the MCP client).
Does not support very complex custom dice rules (new features need to be developed).

How to Use

Clone the Project
Get the Dice Rolling MCP server code from GitHub.
Install Dependencies
Enter the project directory and install all necessary dependency packages.
Build the Project
Compile the TypeScript code to prepare for running.
Configure the AI Assistant
Add the MCP server connection information to the configuration file of the AI assistant (such as Claude Desktop).
Start the Server
Run the MCP server to receive dice rolling requests.

Usage Examples

Basic Dice Rolling
The user asks the AI to calculate the damage of 3d6+2.
Advantage System
The user asks the AI to calculate an attack of 2d20+5 with advantage.
Verify Dice Notation
The user asks whether '4d6kh3+2d8+5' is a valid dice notation.

Frequently Asked Questions

Why do we need to use the Dice Rolling MCP Server instead of directly letting the AI generate random numbers?
How to use this MCP server in Claude Desktop?
Can we customize the dice rules?
Does the server support Chinese?

Related Resources

GitHub Repository
Project source code and documentation
Live Demo
Online demo page where you can directly test the MCP server functionality
MCP Protocol Documentation
Official documentation of the Model Context Protocol
Node.js Official Documentation
Official documentation of the Node.js runtime environment

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "dice-rolling-remote": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/client-stdio", 
        "connect", 
        "https://dice-rolling-mcp.vercel.app/mcp"
      ]
    }
  }
}

{
  "mcpServers": {
    "dice-roller": {
      "command": "node",
      "args": ["path/to/dice-rolling-mcp/dist/index.js"]
    }
  }
}

{
  "mcpServers": {
    "dice-roller": {
      "command": "wsl",
      "args": ["node", "/path/to/dice-rolling-mcp/dist/index.js"]
    }
  }
}

{
  "mcpServers": {
    "dice-roller": {
      "command": "node",
      "args": ["/path/to/dice-rolling-mcp/dist/index.js"]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

S
Shadcn Ui MCP Server
An MCP server that provides shadcn/ui component integration for AI workflows, supporting React, Svelte, and Vue frameworks. It includes functions for accessing component source code, examples, and metadata.
TypeScript
11.2K
5 points
A
Annas MCP
The MCP server and CLI tool of Anna's Archive are used to search for and download documents on the platform and support access through an API key.
Go
6.7K
4.5 points
M
MCP Server Weread
The WeRead MCP Server is a lightweight service that bridges WeRead data and AI clients, enabling in - depth interaction between reading notes and AI.
TypeScript
13.2K
4 points
M
MCP Youtube
Download YouTube subtitles via yt - dlp and connect to Claude.ai through the MCP protocol for video content analysis
TypeScript
11.1K
4 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
24.9K
5 points
G
Godot MCP
Godot MCP is a Model Context Protocol server designed for the Godot game engine, providing functions such as editor control, project execution, and debug output capture, and supporting the interaction between AI assistants and the Godot engine.
JavaScript
9.9K
4 points
M
MCP Unity
MCP Unity is a Unity Editor extension that implements the Model Context Protocol, allowing AI assistants to interact with Unity projects and providing a bridge between Unity and the Node.js server.
JavaScript
9.4K
5 points
U
Unreal MCP
Documentation for the integration of the Unreal Engine Model Context Protocol (MCP), helping to understand, set up, and use the MCP system.
Python
15.4K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
15.7K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
15.9K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
24.9K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
44.3K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
20.3K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
45.1K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
16.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
29.8K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase