drand-mcp-server
A model context protocol server for drand
Documentation
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
Prerequisites
- a relatively recent version of node (v21+ - `fetch` is 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 install`
- build the application with `npm run build`
- run the application with either `npm start` or `node ./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
- [x] fetch latest randomness
- [x] fetch randomness by round
- [x] fetch randomness by time
- [ ] select items from a list
Frequently asked questions
What is drand-mcp-server?
drand-mcp-server is A model context protocol server for drand
How do I install drand-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is drand-mcp-server open source?
Yes — it is hosted on GitHub at https://github.com/randa-mu/drand-mcp-server.
Related MCP tools
Model Context Protocol Servers
The Open-Source Multimodal AI Agent Stack: Connecting Cutting-Edge AI Models and Agent Infra
A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you
MCP server to provide Figma layout information to AI coding agents like Cursor
The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Instant is the best backend for AI-coded apps. You get auth, permissions, storage, presence, and streams — everything you need to ship apps your users will love.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP