Skip to content

Lottery (Brazil)

Caixa Econômica Federal lottery draws as MCP tools for Claude. Mega Sena, Lotofácil, Quina, Lotomania, and Dupla Sena. Every draw is fetched from Caixa’s public API, fingerprinted, and signed by signed-data.org.

Endpoint: https://lottery.mcp.signed-data.org/mcp Domain spec: lottery.brazil

Add to your Claude Desktop config (~/.config/claude/claude_desktop_config.json):

{
"mcpServers": {
"signeddata-lottery": {
"url": "https://lottery.mcp.signed-data.org/mcp"
}
}
}

Or test via curl:

Terminal window
curl -X POST https://lottery.mcp.signed-data.org/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
ToolDescription
get_mega_sena_latestLatest draw — numbers, prizes, acumulado
get_mega_sena_by_concursoSpecific draw by number
get_mega_sena_recentLast N draws (up to 20)
check_mega_sena_ticketCheck if a set of numbers won
get_mega_sena_statisticsFrequency analysis over the last N draws
URIDescription
lottery://mega-sena/latestLatest result as JSON
lottery://mega-sena/schemaCDS content type + payload schema
GameNumbersDrawsContent type
Mega Sena6 from 1–60Wed, Satvocab/lottery-brazil/mega-sena-result
Lotofácil15 from 1–25Mon–Frivocab/lottery-brazil/lotofacil-result
Quina5 from 1–80Mon–Frivocab/lottery-brazil/quina-result
Lotomania20 of 100Mon, Wed, Frivocab/lottery-brazil/lotomania-result
Dupla Sena2 × 6 from 1–50Mon, Frivocab/lottery-brazil/dupla-sena-result

Official Caixa Econômica Federal API — no authentication required.

GET https://servicebus2.caixa.gov.br/portaldeloterias/api/megasena/
GET https://servicebus2.caixa.gov.br/portaldeloterias/api/megasena/{concurso}
VariableDescriptionDefault
CDS_PRIVATE_KEY_PATHPath to RSA private key for signing(unsigned if not set)
CDS_PUBLIC_KEY_PATHPath to RSA public key for verification(skip verification)
CDS_ISSUERIssuer URI in signed eventssigned-data.org