Illinois Lottery MCP server for AI agents
Let Claude, ChatGPT or your own agent read Illinois Lottery: 4 typed functions through one MCP server. No Illinois Lottery API key needed.
- Functions
- 4
- Sign-in
- For account actions
- Works with
- MCP, HTTP, Node, Python
Connect
An MCP server for Illinois Lottery alone, with one tool per function. Paste it into Claude, ChatGPT, Cursor or any MCP client as a remote server.
https://api.bowmark.ai/mcp/site/illinois_lotteryOne MCP server for Illinois Lottery and every other site Bowmark covers. Your agent looks up what it needs and calls it.
https://api.bowmark.ai/mcpSet it up in your clientBoth need a Bowmark API key. The quickstart gets you one and a first result in a few minutes. Functions that need a login use the person's own account: how sign-in works.
Functions
Open a function to see its arguments, what it returns and how to call it.
getCartReads the signed-in player's own Illinois Lottery draw-games cart (My Cart).Arguments
None.
Returns
IllinoisLotteryCartinterface IllinoisLotteryCart { url: string; pageData: Record<string, unknown>; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/illinois_lottery/getCartCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.illinois_lottery.getCart();import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.illinois_lottery.getCart())curl -X POST https://api.bowmark.ai/v1/sites/illinois_lottery/getCart \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.illinois_lottery.getCart();jackpotsLists the current Illinois Lottery instant/Fast Play game jackpots with amount, progressive flag and last-updated time.Arguments
None.
Returns
IllinoisLotteryJackpot[]interface IllinoisLotteryJackpot { gameId: string; amount: number; progressive: boolean; lastUpdated: string | null; url: string; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/illinois_lottery/jackpotsCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.illinois_lottery.jackpots();import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.illinois_lottery.jackpots())curl -X POST https://api.bowmark.ai/v1/sites/illinois_lottery/jackpots \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.illinois_lottery.jackpots();quickPickGenerates random quick-pick numbers for an Illinois Lottery draw game (Powerball, Mega Millions, Lotto, Lucky Day Lotto, Pick 3, Pick 4); buys…Arguments
Name Type Required game"powerball" | "megamillions" | "lotto" | "luckydaylotto" | "pick3" | "pick4"Yes linesnumberNo Returns
IllinoisLotteryQuickPickinterface IllinoisLotteryQuickPick { game: string; name: string; lines: { primary: number[]; secondary: number[] }[]; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/illinois_lottery/quickPickCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.illinois_lottery.quickPick({ game: "powerball" });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.illinois_lottery.quickPick({"game": "powerball"}))curl -X POST https://api.bowmark.ai/v1/sites/illinois_lottery/quickPick \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{"game":"powerball"}}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.illinois_lottery.quickPick({ game: "powerball" });storesFinds Illinois Lottery retailers nearest a latitude/longitude, with address, phone, distance and daily opening hours.Arguments
Name Type Required args{ latitude: number; longitude: number }Yes Returns
IllinoisLotteryRetailer[]interface IllinoisLotteryRetailer { name: string; address: string | null; distance: number | null; latitude: number | null; longitude: number | null; phone: string | null; games: string[]; hours: Record<string, string>; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/illinois_lottery/storesCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.illinois_lottery.stores({ latitude: 41.8839927, longitude: -87.6197056 });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.illinois_lottery.stores({"latitude": 41.8839927, "longitude": -87.6197056}))curl -X POST https://api.bowmark.ai/v1/sites/illinois_lottery/stores \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{"latitude":41.8839927,"longitude":-87.6197056}}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.illinois_lottery.stores({ latitude: 41.8839927, longitude: -87.6197056 });
Use it from code
- Node
npm i @bowmark/web - Python
pip install bowmark-web - HTTP
POST /v1/sites/illinois_lottery/<function> - OpenAPI
/v1/sites/illinois_lottery/openapi.json