drand-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@drand-mcp-server Fetch the latest randomness from the drand network."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
drand-mcp-server 🎲
Use verifiable randomness in your AI application. This Model Context Protocol (MCP) server enables you to get a random value from the drand network, verify its validity and use it as an input seed to your model-driven flows!
Use Cases
repeatable, random sampling of input data
interaction with other MCP servers in a verifiable manner (e.g. paying out rewards based on a prompt)
verifying the output of another random process using historical drand beacons
Related MCP server: Random-Generator
Prerequisites
a relatively recent version of node (v21+ -
fetchis required)
Installation
You can run the MCP server either using npx or after building locally.
Usage with VS Code
Create a file called .vscode/mcp.json in your workspace (or in your home directory) and add the following code:
{
"servers": {
"drand": {
"command": "npx",
"args": [
"drand-mcp-server"
]
}
}
}For additional info, see the VS Code docs on MCP
Usage with Claude
You can run the drand-mcp-server alongside claude desktop by adding the following to your config:
{
"mcpServers": {
"drand": {
"command": "npx",
"args": [
"drand-mcp-server"
]
}
}
}Tools
The following tools are available from the MCP server
Name | Params | Description |
get-randomness-latest | none | fetches the latest available beacon from drand quicknet |
get-randomness-by-time | time in milliseconds | fetches the randomness beacon emitted at or just before the time |
provided | ||
get-randomness-by-round | round | fetches the randomness beacon emitted with a given round number |
Building from source
install dependencies with
npm installbuild the application with
npm run buildrun the application with either
npm startornode ./dist/index.mjs
You can also configure VS Code and Claude as above, replacing the command/args with the following:
"command": "node",
"args": ["/path/to/my/project/drand-mcp-server/dist/index.mjs"]Roadmap
fetch latest randomness
fetch randomness by round
fetch randomness by time
select items from a list
Available Tools
3 toolsget-randomness-by-roundC
Get the random value associated with a specfic round from drand quicknet
Inputs: round (required).
get-randomness-by-timeA
Get the random value associated with a specific time from drand quicknet
Inputs: time (required).
get-randomness-latestA
Get the latest random value from drand quicknet
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool requires a distinct input: round number, timestamp, or no input for latest. There is no overlap in purpose, making it easy for an agent to select the correct tool.
All tool names follow the consistent pattern 'get-randomness-by-{criteria}', using hyphenated lowercase. The naming is predictable and clear.
Three tools is appropriate for a focused server that retrieves randomness from drand. The count is not excessive nor insufficient for the domain.
The tools cover the primary ways to fetch randomness (by round, by time, latest). One could argue for a tool to list available rounds, but the current set is functionally complete for the server's purpose.
Maintenance
Related MCP Connectors
Signed time, Bitcoin-anchored notarisation and drand randomness for agents. No account.
Verifiable physical randomness from cosmic-ray detections. Free beacon, paid signed decisions.
Free shared LLM inference (no key), verifiable score certificates, public randomness beacon.
Cryptographically sound randomness for agents, with verifiable commit-reveal.
Related MCP Servers
- AlicenseBqualityDmaintenancedrand-mcp-server is a service that provides verifiable random numbers for model-driven processes in AI applications, supporting the acquisition of random numbers by time or round.32Apache 2.0
- AlicenseAqualityDmaintenanceAn encrypted and secure random number generation server that complies with the MCP protocol, suitable for AI applications, LLMS, and other systems that require high-quality random numbers.72Apache 2.0
- AlicenseNot gradedqualityAmaintenanceMCP server enabling provably-fair random selection and winner picking using drand randomness, with tools for instant picks, scheduled draws, and verification.MIT
- AlicenseAqualityCmaintenanceProvides verifiable randomness for AI agents, enabling dice rolls, coin flips, ranges, winners, and shuffles with on-chain proofs, paid via Circle Agent Wallet.3132 npmMIT