MCP.so
ログイン

Dice Roll

@lpbayliss

Dice Roll について

MCP Server for simulating dice rolls

基本情報

カテゴリ

その他

ライセンス

MIT

ランタイム

node

トランスポート

stdio

公開者

lpbayliss

投稿者

Luke Bayliss

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "dice": {
      "command": "npx",
      "args": [
        "server-dice-roll"
      ]
    }
  }
}

ツール

2

Parses dice roll notation

Make a dice roll

概要

What is Dice Roll?

An MCP (Model Context Protocol) server that simulates dice rolls using standard dice notation and Fate/Fudge dice. It provides tools for parsing dice notation strings and generating random results, designed for use with MCP-compatible clients like Claude Desktop.

How to use Dice Roll?

Install globally with npm install -g server-dice-roll or run directly via npx -y server-dice-roll. Configure in Claude Desktop by adding the server to mcpServers in the configuration file. The server exposes two tools: parse_dice_roll_notation (parses a notation string to structured data) and dice_roll (rolls dice based on a configuration and returns results).

Key features of Dice Roll

  • Parses standard dice notation strings (e.g., 2d6, 1d20+5)
  • Supports both standard dice and Fate/Fudge dice
  • Generates random dice rolls with accurate probability distributions
  • Validates input and output using Zod schemas
  • Seamlessly integrates with any MCP-compatible client

Use cases of Dice Roll

  • Add dice rolling to a tabletop RPG assistant via Claude Desktop
  • Simulate Fate/Fudge dice rolls for narrative games
  • Parse and validate dice notation in applications that need structured roll data
  • Enable random number generation through MCP for automation tools

FAQ from Dice Roll

What dice notation formats are supported?

Standard notation NdS+M (e.g., 2d10, 3d8+5) and Fate dice notation NdF (e.g., 4dF). The number of dice defaults to 1 if omitted, and the modifier is optional.

How do I install and run this server?

Install globally via npm install -g server-dice-roll and run mcp-server-dice-roll, or use npx -y server-dice-roll without installation. Configure in Claude Desktop by adding the server block with "command": "npx", "args": ["-y", "server-dice-roll"].

Can I parse a dice notation string without rolling?

Yes, use the parse_dice_roll_notation tool. It takes a notation string like "3d6+4" and returns a structured object with type, count, sides, and modifier.

What are Fate/Fudge dice and how do I use them?

Fate dice are 6-sided with two sides each of -1, 0, and +1. Use NdF notation (e.g., 4dF). The server's dice rolling tool accepts type: "fudge" in the configuration.

Does this server require any external service or authentication?

No. The server runs locally over stdio MCP transport and has no authentication. All dice rolls are generated locally without external dependencies.

コメント

「その他」の他のコンテンツ