Skip to main content
MCP server CX Codex

D20DAO Verifiable Randomness — Claude Code MCP server: install

Run verifiable dice rolls, coin flips, selections and shuffles through an MCP server. Paid draws use USDC from a Circle Agent Wallet.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env D20_DAILY_LIMIT_USDC=<D20_DAILY_LIMIT_USDC> --env D20_NETWORK=<D20_NETWORK> --env D20_PAY_CHAIN=<D20_PAY_CHAIN> --env D20_WALLET_ADDRESS=<D20_WALLET_ADDRESS> --env D20_CIRCLE_CLI=<D20_CIRCLE_CLI> --transport stdio d20dao-verifiable-randomness -- npx -y @d20dao/mcp
Open on GitHub

What D20DAO Verifiable Randomness does

The server can roll dice, choose numbers from a range, flip a coin, select one or more entries, or shuffle a list. Each paid draw costs 0.05 USDC and returns a result with transaction references and a proof that can be replayed. get_result and setup_status are free tools.

You need the Circle CLI, a logged-in agent wallet and USDC, with funds deposited into Circle Gateway. Set D20_DAILY_LIMIT_USDC to control the UTC-day spending cap; 0 disables paid draws. If payment went through but the result is unknown, check get_result before requesting another draw. Clients may ask for approval before draw runs because it has a paid side effect.

Add the server to Claude Code with claude mcp add vrf -- npx -y @d20dao/mcp. On Arc, draws use D20DAO's API. Robinhood Chain instead requires a contract to request randomness directly with @d20dao/vrf-sdk. Repeating an identical draw with the same seed within five minutes returns the earlier result without another charge.

What it helps with

  • flip a coin and verify the outcome
  • select a winner from a list
  • roll dice or draw a number from a range
  • shuffle entries with a verifiable result
  • look up a paid draw by its identifier

Example prompts for the agent

  • Flip a coin and show me the result and its proof.
  • Pick one winner from this list using a verifiable draw.
  • Look up the result for my previous payment.

How to install D20DAO Verifiable Randomness

Platform CLI

claude mcp add --env D20_DAILY_LIMIT_USDC=<D20_DAILY_LIMIT_USDC> --env D20_NETWORK=<D20_NETWORK> --env D20_PAY_CHAIN=<D20_PAY_CHAIN> --env D20_WALLET_ADDRESS=<D20_WALLET_ADDRESS> --env D20_CIRCLE_CLI=<D20_CIRCLE_CLI> --transport stdio d20dao-verifiable-randomness -- npx -y @d20dao/mcp

Replace <…> with your own values. 1 more environment variable is in the server README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about D20DAO Verifiable Randomness

How do I install D20DAO Verifiable Randomness in Claude Code?

Run claude mcp add vrf -- npx -y @d20dao/mcp. Before paid draws, set up the Circle CLI, sign in and fund the agent wallet with USDC.

What does D20DAO Verifiable Randomness do?

It runs VRF-backed draws, such as dice rolls, winner selection and list shuffles. Results include links for checking the proof.

What do I need before making paid draws?

You need the Circle CLI, a logged-in agent wallet with USDC, and funds deposited into Circle Gateway. Each draw costs 0.05 USDC.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor