Provably fair on-chain slot machine for AI agents: x402 spins on Base, Chainlink VRF results.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Provably Fair Casino for AI Agents
A provably fair, on-chain slot machine with Chainlink VRF 2.5. Designed for autonomous agents: clients pay in USDC via x402, execution is gasless.
Lotero lets users (or AI agents) bet USDC and win prizes when three matching symbols appear on the reels. The game uses Chainlink VRF 2.5 for provably fair randomness.
β οΈ Frontend in development β The web app in
packages/frontendis incomplete. The contracts and agent are production-ready.
| Item | Value |
|---|---|
| Address | 0xC4b88e90a73fA9ec588E504255A43d4Ccb82edE9 |
| Token | USDC. Bet 1 USDC, win up to 30 USDC. |
| VRF | Chainlink VRF 2.5 |
| Events | SpinRequested, SpinResolved |
Core functions
playFor(player, referringUserAddress, amountToPlay) β Pay on behalf of another address; the player receives the round, wins, and stats.claimPlayerEarnings(userAddress) β Claim winnings and referral earnings.isResolved(requestId) β Check if a round has been resolved.Stateless HTTP API that sells spins and claims as a service. Clients pay via x402 (1.1 USDC spin, 0.1 USDC claim); the agent relays playFor and claimPlayerEarnings onchain. Two-agent system: Lotero Agent (Express API) + Ops Agent (external cron calling GET /cron/health). See packages/agent/README.md.
POST /spinWith1USDC β Paid (x402). Execute spin for player.POST /claim β Paid (x402). Claim player earnings (gasless).GET /round?requestId=..., GET /player/:address/balances, GET /contract/health β Read-only.GET /cron/health β Ops Agent: system status, may execute transfers and Telegram alerts.Documentation: DOCS/AGENT_FLOWS.md | DOCS/AGENT_API.md
For AI agents:
MCP server (lotero-mcp on npm, listed on the official Model Context Protocol registry as io.github.csacanam/lotero): exposes 5 MCP tools over stdio β spin (paid via x402), get_round, get_balances, claim and get_contract_health β built with the official MCP TypeScript SDK (@modelcontextprotocol/sdk), with an enforced session spin limit as a responsible-gambling guardrail. Install:
See mcp/README.md for configuration and tool reference.
Agent skill: npx skills add csacanam/lotero-core (or read it at lotero.xyz/skill.md) β wallet setup, x402 spin/poll/claim flow, payouts, budget guardrails.
LLM index: lotero.xyz/llms.txt.
| Doc | Description |
|---|---|
| DOCS/AGENT_FLOWS.md | Flow diagrams (cron health, spin, claim) |
| DOCS/AGENT_API.md | API reference, endpoints, env, constants |
| DOCS/DEPLOY_BASE.md | Deploy contracts to Base |
| DOCS/RTP_MODEL.md | RTP math and reel layout |
1. Install dependencies
2. Run local chain
3. Deploy contracts (new terminal)
4. Run tests
5. Start the frontend (optional, in development)
App runs at http://localhost:3000.
For Base mainnet: see DOCS/DEPLOY_BASE.md. Contract address above. Fund the VRF subscription with LINK.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/lotero)<a href="https://allmcps.com/mcp/lotero"><img src="https://allmcps.com/api/badge/lotero?style=directory" alt="Lotero on AllMCPs" /></a>