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 🙏

© 2026 – Pkg Stats / Ryan Hefner

lotero-mcp

v0.1.0

Published

MCP server for Lotero — play a provably fair on-chain slot machine from any AI agent. Pay 1.1 USDC per spin via x402 on Base (no account, no gas), poll the Chainlink VRF result, and claim winnings straight to the human's wallet. Built-in session spin limi

Readme

lotero-mcp

MCP server for Lotero — play a provably fair on-chain slot machine from any AI agent. Pay 1.1 USDC per spin via x402 on Base (no account, no gas), poll the Chainlink VRF result, and claim winnings straight to the human's wallet.

⚠️ This is gambling (RTP ~93%, negative expected value). The server ships with an enforced session spin limit (default 10) and the tools require explicit human authorization and a budget before playing.

Install

Claude Code:

claude mcp add lotero -- npx -y lotero-mcp

Cursor / any MCP client (.mcp.json / mcp.json):

{
  "mcpServers": {
    "lotero": {
      "command": "npx",
      "args": ["-y", "lotero-mcp"],
      "env": {
        "LOTERO_WALLET_PRIVATE_KEY": "0x...",
        "LOTERO_PLAYER_ADDRESS": "0xYOUR_HUMANS_WALLET"
      }
    }
  }
}

Configuration

| Env var | Required | Description | |---|---|---| | LOTERO_WALLET_PRIVATE_KEY | for spin/claim | Dedicated wallet with USDC on Base — pays 1.1 USDC per spin + 0.1 per claim via x402, gasless. Never use the human's main wallet. | | LOTERO_PLAYER_ADDRESS | recommended | Default player — use the human's wallet: wins accrue there and claim sends the USDC there. | | LOTERO_MAX_SPINS_PER_SESSION | no | Enforced guardrail, default 10. | | LOTERO_API_BASE | no | Default https://api.lotero.xyz. |

The free tools (get_round, get_balances, get_contract_health) work without any configuration.

Tools

| Tool | Cost | What it does | |---|---|---| | spin | 1.1 USDC | One spin for player — returns a requestId (result is async via VRF). Refuses past the session limit | | get_round | free | Spin result by requestId, with stuck-round diagnosis (pending.vrfSubscriptionFunded) | | get_balances | free | Earnings / claims / referral stats (claimable = earned − claimed) | | claim | 0.1 USDC | Withdraws everything to the player — claim once at the end of the session | | get_contract_health | free | Bankroll + VRF subscription status |

Fairness

Randomness is Chainlink VRF 2.5, generated on-chain — neither Lotero nor the player can manipulate results. Every spin has a public txHash verifiable on BaseScan (contract 0xC4b88e90a73fA9ec588E504255A43d4Ccb82edE9, events SpinRequestedSpinResolved). Reel model and RTP math: DOCS/RTP_MODEL.md.

Full agent guide: lotero.xyz/skill.md · LLM index: lotero.xyz/llms.txt