npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

drand-mcp-server

v0.0.1-rc1

Published

A model context protocol server for drand

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 | 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