Bet on YesPlay Bet on Hollywoodbets
Bet on YesPlay Bet on Hollywoodbets

Ask your AI assistant for lottery results

The official ResultsZA MCP server connects Claude, Cursor, VS Code and other AI assistants to the ResultsZA API, using your own API key.

resultsza.co.za  /  For developers

MCP (Model Context Protocol) is the standard way for AI assistants to use outside tools. Add the ResultsZA MCP server to your assistant and you can simply ask: "What were last night's Powerball numbers?", "Did my Lotto line win on Saturday?" or "Which race meetings were on at Greyville this week?" The assistant calls the ResultsZA API for you and answers from the official results.

What you need

Set it up

Paste the block for your assistant, replace YOUR_API_KEY with your key, and restart the assistant. The package is resultsza-mcp on npm; npx downloads and runs it for you.

claude_desktop_config.json (Settings, Developer, Edit Config)
{ "mcpServers": { "resultsza": { "command": "npx", "args": ["-y", "resultsza-mcp"], "env": { "RESULTSZA_API_KEY": "YOUR_API_KEY" } } } }
~/.cursor/mcp.json
{ "mcpServers": { "resultsza": { "command": "npx", "args": ["-y", "resultsza-mcp"], "env": { "RESULTSZA_API_KEY": "YOUR_API_KEY" } } } }
.vscode/mcp.json (VS Code asks for the key and stores it securely)
{ "inputs": [{ "type": "promptString", "id": "resultsza-api-key", "description": "ResultsZA API key", "password": true }], "servers": { "resultsza": { "type": "stdio", "command": "npx", "args": ["-y", "resultsza-mcp"], "env": { "RESULTSZA_API_KEY": "${input:resultsza-api-key}" } } } }

What your assistant can do

All ten tools are read-only.

ToolWhat it doesCost
get_lottery_resultsResults for South African games (with prize divisions and jackpot), UK 49's, EuroMillions, Irish Lotto, US Powerball, Mega Millions, Kenya, Nigeria, Ghana and Gosloto1 call
check_lottery_numbersCheck up to 10 lines against a South African draw1 call
bulk_check_lottery_numbersCheck up to 500 lines against a South African draw1 call per line
get_horse_racing_meetingsSouth African race meetings in a date range of up to 7 days1 call
get_horse_racing_cardAll races at a meeting with the top three and tote dividends1 call
get_horse_raceThe full runner table for one race1 call
generate_lottery_numbersRandom lines for a game1 call
lucky_numbers_from_textNumbers from a name or phrase1 call
get_number_statisticsHot and cold numbers, frequencies or common pairs1 call
check_balanceYour plan, calls used and calls leftFree

What it costs

The MCP server is free. Each tool call is a normal API call on your ResultsZA plan, exactly as if you called the API yourself, and checking your balance is free. Badly formed requests, such as a date that is not YYYY-MM-DD or an unknown game, are rejected before they use a call. A valid request that finds nothing, such as an unknown racecourse, still uses one.

Privacy and security

More

Full endpoint reference: API documentation. Source code and the Node and Python SDKs: GitHub. Questions: info@resultsza.co.za.

ResultsZA is an independent service and is not affiliated with the South African National Lottery or any lottery or racing operator.