Skip to main content

MCP server for rolling dice with quantum random numbers

Project description

quantum-dice-mcp

MCP server that rolls dice using real quantum random numbers from hardware quantum random number generators.

Sources:

Uses rejection sampling to eliminate modulo bias — every roll is truly uniform.

Install

pip install quantum-dice-mcp

Connect to Claude Code

claude mcp add dice -- quantum-dice-mcp

Or add to your project's .mcp.json:

{
  "mcpServers": {
    "dice": {
      "command": "quantum-dice-mcp"
    }
  }
}

Tool: roll_dice

Rolls dice using standard notation.

Input Output
d20 One 20-sided die
3d6 Three 6-sided dice
2d100 Two percentile dice
4d8 Four 8-sided dice

Returns:

{
  "notation": "3d6",
  "rolls": [4, 2, 6],
  "total": 12,
  "source": "QRNG (LfD)"
}

Run standalone

quantum-dice-mcp

Or:

python -m quantum_dice_mcp

Zero dependencies

Uses only Python stdlib (urllib.request, json). No API keys required.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantum_dice_mcp-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantum_dice_mcp-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file quantum_dice_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: quantum_dice_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.1","id":"xia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for quantum_dice_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a2271ae7ecb787a2e667e4077052774ff47cbd93374075b6c97ae5bc206b32b3
MD5 80f4a3b7f92b4e304034d1018af24151
BLAKE2b-256 55c39ea31958b93c0ba13137cf7079eded7ac3ab880ddfdc2e1b501bb78e9926

See more details on using hashes here.

File details

Details for the file quantum_dice_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: quantum_dice_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.1","id":"xia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for quantum_dice_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86ffa543a61cbd492e60e135069b5689a1deda771f0deb1fe4f9ca7d4af4910f
MD5 37a53b05a76666d41db715881549add5
BLAKE2b-256 9db968cb97558f5c03231cdbad5b7754b48cf5d61bf42b90f4d376d0949d38bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page