mcpField
D
drand-mcp-server 🎲

drand-mcp-server 🎲

Local
github.com/randa-muDeveloper Tools0Updated 76w ago

About drand-mcp-server 🎲

drand-mcp-server gives AI applications access to verifiable randomness from the drand network. It supports retrieving the latest beacon or one selected by time or round.

Key features

  1. 01Fetch the latest drand quicknet beacon
  2. 02Retrieve a beacon by timestamp
  3. 03Retrieve a beacon by round number
  4. 04Access randomness for model-driven flows

Use cases

  1. 01Seed repeatable random sampling of input data
  2. 02Use verifiable randomness across MCP servers
  3. 03Check another random process against historical beacons

MCP support

The MCP server exposes tools for fetching the latest drand beacon or retrieving one by time or round.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"drand": {
"command": "npx",
"args": [
"-y",
"drand-mcp-server"
]
}
}
}
Run commandnpx -y drand-mcp-server

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmdrand-mcp-server

Tools

3

Saved tool list · updated 3w ago

This tool takes no parameters.

Details

From the project README

drand-mcp-server 🎲

build

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

NameParamsDescription
get-randomness-latestnonefetches the latest available beacon from drand quicknet
get-randomness-by-timetime in millisecondsfetches the randomness beacon emitted at or just before the time
provided
get-randomness-by-roundroundfetches 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

  • fetch latest randomness
  • fetch randomness by round
  • fetch randomness by time
  • select items from a list

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.