Repository avatar
Developer Tools
v1.0.0
active

powerball-mega-millions-winning-numbers-mcp

io.github.theluckystrike/powerball-mega-millions-winning-numbers-mcp

Powerball and Mega Millions winning numbers: latest draws, by date, ticket checker, hot numbers.

Documentation

powerball-mega-millions-winning-numbers-mcp

Powerball and Mega Millions winning numbers for AI assistants. Ask for last night's Powerball numbers, check whether a ticket won and how much, look up a past draw, or see the most and least drawn numbers.

This is a Model Context Protocol (MCP) server. It reads the New York State Gaming Commission winning numbers published as open data on data.ny.gov at call time. It needs no API key.

Tools

ToolWhat it returns
lottery_latest_numbersThe latest Powerball and Mega Millions winning numbers (or the last 2 to 10 draws) with the Power Play, Double Play numbers and the next draw date.
lottery_numbers_by_dateWinning numbers for one draw date, or the draws just before and after when no draw was held that day, or every draw in a range of up to 400 days.
lottery_check_ticketCheck a ticket against the latest draw or a draw date: matched numbers, prize tier, prize amount with Power Play or the Mega Millions multiplier, and the odds of that tier.
lottery_number_frequencyHot, cold and longest-unseen white balls and Powerballs or Mega Balls over the last 10 to 1000 draws of the current game.

Every result has structured JSON, a plain-text summary, as_of, source and more (a page on mcpstamp.com). Every tool is marked read-only.

What it knows that your model does not

  • Last night's numbers. Powerball draws Monday, Wednesday and Saturday at 10:59 pm ET; Mega Millions draws Tuesday and Friday at 11:00 pm ET.
  • The current prize tables: Powerball with Power Play (Match 5 with Power Play is $2,000,000) and the $5 Mega Millions game with its built-in 2x to 10x multiplier since 2025-04-08.
  • Frequency counts restricted to the current number matrix, so old 75-ball or 59-ball draws do not skew them.

Install

Hosted (custom connector, ChatGPT developer mode, any remote MCP client)

Paste this URL. No token, no sign-up.

https://powerball-mega-millions-winning-numbers-mcp.lipmichal.workers.dev/mcp

Cursor

Add to ~/.cursor/mcp.json.

{
  "mcpServers": {
    "lottery-numbers": { "url": "https://powerball-mega-millions-winning-numbers-mcp.lipmichal.workers.dev/mcp" }
  }
}

VS Code

Add to .vscode/mcp.json.

{
  "servers": {
    "lottery-numbers": { "type": "http", "url": "https://powerball-mega-millions-winning-numbers-mcp.lipmichal.workers.dev/mcp" }
  }
}

Local stdio

The npm package is not published. Build it from this repository with Node 20 or newer, then point your MCP client at node /path/to/powerball-mega-millions-winning-numbers-mcp/dist/stdio.js.

git clone https://github.com/theluckystrike/powerball-mega-millions-winning-numbers-mcp && cd powerball-mega-millions-winning-numbers-mcp
npm install && npm run build
node dist/stdio.js

Example prompts

  • "What were last night's Powerball numbers?"
  • "Did my Powerball ticket 7 19 33 41 62 Powerball 11 with Power Play win on Saturday?"
  • "What were the Mega Millions numbers on November 13, 2026?"
  • "When is the next Mega Millions drawing?"
  • "What are the most common Powerball numbers over the last 100 draws?"

Data sources

Full list in DATA_SOURCES.md.

Limitations

  • Results usually reach the open data feed the morning after the draw, so the newest draw can be a few hours behind the live broadcast.
  • Jackpot amounts and winner counts are not in the feed.
  • California pays non-jackpot prizes pari-mutuel, so amounts there differ. Prize amounts are priced for the current games only (Powerball since 2015-10-07, Mega Millions since 2025-04-08).
  • Always confirm a winning ticket with the official lottery. Past frequency does not change any number's odds.

More

More MCP servers that answer questions your assistant cannot answer alone are on mcpstamp.com.

Part of the Zovo MCP collection at https://mcp.zovo.one

Built by theluckystrike.

Development

npm install
npm test                              # builds, then runs the fixture tests and an offline stdio test
node scripts/stdio-transcript.mjs     # live stdio round trip, writes .live/stdio-transcript.jsonl

CI (.github/workflows/bundle.yml) runs the tests, the type check and wrangler deploy --dry-run --outdir out, and uploads the Worker bundle as an artifact.

License

MIT