Labsco
MCP SERVER

RandomWeb3MCP

by suxiongye

Draw random numbers from an EVM block hash, so the result can be re-derived afterwards.

Developer Conversions, Encoding & Test Data
Summary
Verifiable randomness, for draws someone else has to be convinced by.

Every result derives from a blockchain hash instead of a local PRNG, which is what matters when a participant asks how they know the giveaway was not rigged — the block is public and the draw can be recomputed. generate_random_weighted is the one to reach for when the odds are deliberately uneven; it takes weights on a 0-1000 scale rather than percentages.

What it is

A random-element service that takes its entropy from EVM block hashes rather than a local generator: single integers, arrays, weighted picks, distribution samples and randomised feature sets.

What you get
  • A random integer between a minimum and maximum you set, both inclusive
  • An array of random integers, with the length and the range yours to choose
  • A weighted pick from a list of options, weights given on a 0-1000 scale
  • Samples drawn from a probability distribution
  • Randomised feature sets, for generating several varied attributes at once
  • An optional salt on every call, mixed in alongside the block hash
  • A blockchain hash as the entropy source, so a draw can be re-derived from the block it came from
Requirements

Python. Install from the repository with pip install -e ., then launch it with uv pointed at the project directory.

Setup effort

Build from source — clone the repository and build it, then point your client at the binary