4dlivetoday
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@4dlivetodayWhat were last night's Magnum 4D results?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
4D Results API & MCP Server — 4dlivetoday
Official 4D lottery results for Malaysia, Singapore and Cambodia, as a free JSON API and a remote MCP server that AI assistants (Claude, ChatGPT, Cursor and others) can query directly.
MCP server:
https://4dlivetoday.com/mcp(Streamable HTTP, no sign-in)REST API:
https://4dlivetoday.com/api/v1/(JSON, no key)Docs page: https://4dlivetoday.com/en/developers
Data licence: CC BY 4.0 — free to use, including commercially, with attribution
Results are compiled from each operator's own official website and cross-checked where a second source exists. This service publishes results and draw history only. It does not sell tickets or accept bets, and it offers no number recommendations, "hot" numbers or forecasts.
Contents
Related MCP server: Malaysian Weather MCP Server
What's covered
Operator id | Name | Region |
| Magnum 4D | Malaysia |
| Da Ma Cai 1+3D | Malaysia |
| Sports Toto 4D | Malaysia |
| Sabah 88 4D | East Malaysia |
| Sandakan STC 4D | East Malaysia |
| Sarawak Cash Sweep | East Malaysia |
| Singapore 4D (Singapore Pools) | Singapore |
| Grand Dragon 4D (GD Lotto) | Cambodia |
| Perdana 4D (evening; the afternoon draw appears as | Cambodia |
| 9 Lotto 4D | Cambodia |
Every 4D draw has 23 numbers: 1st, 2nd and 3rd prize, 10 special (starter) and 10 consolation.
Other official games (game ids):
Game id | Name |
| Magnum Life (8 numbers + 2 bonus) |
| Magnum 4D Jackpot / Jackpot Gold amounts |
| Da Ma Cai 3+3D (6-digit 1st–3rd, starter, consolation) |
| Da Ma Cai 1+3D Jackpot and 3D Jackpot amounts |
| Toto 5D, Toto 6D |
| Star Toto 6/50, Power Toto 6/55, Supreme Toto 6/58 |
| Sports Toto 4D Jackpot amounts |
| Singapore Toto (6 numbers + additional number, Group 1 prize) |
History: 4D results go back decades (Magnum from 1985). Magnum and Da Ma Cai other games cover the last 12 months and grow daily; Sports Toto games and Singapore Toto are kept from late September 2026 onward.
Draw days and times: see https://4dlivetoday.com/en/schedule (or the get_draw_schedule tool).
Use it from an AI assistant (MCP)
The server speaks Streamable HTTP at:
https://4dlivetoday.com/mcpNo API key and no OAuth.
Claude (claude.ai and Claude Desktop, via connectors)
Settings → Connectors → Add custom connector → paste https://4dlivetoday.com/mcp.
Claude Desktop (config file, via mcp-remote)
claude_desktop_config.json:
{
"mcpServers": {
"4dlivetoday": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://4dlivetoday.com/mcp"]
}
}
}Claude Code
claude mcp add --transport http 4dlivetoday https://4dlivetoday.com/mcpCursor
~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"4dlivetoday": { "url": "https://4dlivetoday.com/mcp" }
}
}VS Code
.vscode/mcp.json:
{
"servers": {
"4dlivetoday": { "type": "http", "url": "https://4dlivetoday.com/mcp" }
}
}Try it
Ask your assistant things like:
"What were last night's Magnum 4D results?"
"Show me every operator's 4D results for 27 September 2026."
"Has 1063 ever won a prize? When?"
"What's the latest Supreme Toto 6/58 result and jackpot?"
"When is the next Singapore 4D draw?"
Ready-made config files are in examples/mcp.
MCP tools
Tool | Input | What it returns |
| — | The newest draw for every operator |
|
| Every operator's draw on that date |
|
| That operator's most recent draws |
|
| Every draw in which the number won, with prize tier, newest first, plus a total count |
|
| Recent results of one of the other games listed above |
| — | Upcoming draw dates (regular and special) and which operators draw |
Every tool result includes a short text summary plus the full structured data, and each result carries a url to the matching page on 4dlivetoday.com so the assistant can link to it.
REST API
Base URL: https://4dlivetoday.com/api/v1
Method & path | Description |
| Index: endpoints and envelope fields |
| Newest draw for every operator |
| All operators on a date ( |
| Recent draws of one operator ( |
| Every winning appearance of a 4-digit number |
| Recent results of another official game |
| Upcoming draw dates |
| OpenAPI 3.1 description |
Examples
curl https://4dlivetoday.com/api/v1/latest
curl https://4dlivetoday.com/api/v1/results/2026-09-27
curl "https://4dlivetoday.com/api/v1/operators/magnum?limit=5"
curl https://4dlivetoday.com/api/v1/numbers/1063
curl "https://4dlivetoday.com/api/v1/games/sg_toto?limit=3"
curl https://4dlivetoday.com/api/v1/scheduleMore in examples/: curl, Python, Node.js.
CORS is open (Access-Control-Allow-Origin: *), so you can call it from a browser.
Response format
Every successful response has the same envelope (url is the matching human-readable page on 4dlivetoday.com):
{
"data": { "results": [ ] },
"source": "4dlivetoday.com",
"license": "CC BY 4.0",
"license_url": "https://creativecommons.org/licenses/by/4.0/",
"attribution": "Results from 4dlivetoday.com (https://4dlivetoday.com), compiled from each operator's official site.",
"url": "https://4dlivetoday.com/en/results/2026-09-27",
"generated_at": "2026-09-30T12:00:00.000Z"
}What data holds per endpoint:
Endpoint |
|
|
|
|
|
|
|
|
|
|
|
|
|
A 4D draw (real, trimmed):
{
"operator": "magnum",
"operator_name": "Magnum 4D",
"date": "2026-09-27",
"draw_no": "428/26",
"first": "1063",
"second": "2421",
"third": "5815",
"special": ["6814", "7902", "… 10 numbers"],
"consolation": ["1091", "8204", "… 10 numbers"],
"status": "checked",
"url": "https://4dlivetoday.com/en/results/2026-09-27"
}Numbers are always strings, so leading zeros are kept ("0650", never 650).
status tells you how far a result has been verified:
status | Meaning |
| Official result confirmed by an independent second source |
| Published, second-source check still running (usually minutes after the draw) |
| Only one official source exists for this operator |
| Imported from the archive |
A game result (real, trimmed):
{
"game": "sg_toto",
"game_name": "Singapore Toto",
"operator": "sg",
"date": "2026-09-28",
"draw_no": "4221",
"numbers": ["14", "22", "25", "27", "34", "37"],
"bonus": ["18"],
"jackpots": { "Group 1 prize": "S$ 1,298,326" },
"url": "https://4dlivetoday.com/en/sg-toto"
}Money amounts are strings exactly as the operator published them, with currency ("RM 12,749,753.62", "S$ 1,298,326"). draw_no can be empty for operators that don't publish a readable draw number.
Errors
{ "error": { "code": "invalid_date", "message": "date must be a real calendar date in YYYY-MM-DD format" } }HTTP | code | When |
400 |
| Bad input |
429 | — | Too many MCP requests from one address; wait for |
503 |
| Results store temporarily unreachable; retry shortly |
A date with no draws (for example a regular Monday for the weekly operators) is not an error: it returns 200 with an empty list.
In MCP, the same problems come back as a tool result with isError: true and the same message.
Fair use and caching
No key and no sign-up. Responses are cached for about 60 seconds; results change only around draw times, so please cache on your side too.
Unknown query parameters are dropped with a redirect to the canonical URL.
The MCP endpoint accepts one request per call (no JSON-RPC batches).
Draw nights (roughly 18:30–21:30 Malaysia time on draw days) are when results change; polling more often than once a minute gains nothing.
Abusive traffic may be rate-limited without notice.
Attribution
The data is licensed CC BY 4.0. If you show or republish it, credit:
Results from 4dlivetoday.com, compiled from each operator's official site.
A link back is appreciated and is how this stays free.
Data quality
Every result comes from the operator's own official site. Where a second independent source exists, the result is cross-checked and its
statusbecomeschecked.Always treat the operator's own announcement as final. If you find a result that differs from the operator's official site, please open an issue with the date, operator and the operator's page.
Licence
Data returned by the API and MCP server: Creative Commons Attribution 4.0 International (CC BY 4.0). See DATA-LICENSE.md.
Code and documentation in this repository: MIT.
4dlivetoday is an independent results site. It is not affiliated with any operator named above; operator names are used only to identify their results. For readers aged 21 and over, where the law allows.
This server cannot be deployed
Maintenance
Related MCP Connectors
Winning numbers for 30+ world lotteries, minutes after each draw. Free, no key, CC BY 4.0.
Malaysian SME accounting, e-Invoice and payroll for your AI. 64 tools; writes are approved drafts.
Historical football results, draws and no-draw streaks. 11 read-only tools, 6 need no API key.
Verified local business registry for AI agents. Currently serving Malaysia.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables interaction with VibeDoge lottery system through comprehensive tools for user profile management, lottery participation, result checking, and activity statistics. Supports secure authentication and real-time lottery operations through natural language.-
- FlicenseNot gradedqualityDmaintenanceProvides real-time weather forecasts for locations across Malaysia by fetching data directly from MET Malaysia's API. It enables AI assistants to query today's conditions and seven-day forecasts for states, districts, and towns.-
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive access to Singapore's OneMap APIs, enabling AI assistants to perform location searches, routing, and coordinate conversions. It features over 35 tools for accessing thematic layers, population statistics, and public transport data.1-
- AlicenseAqualityDmaintenanceProvides tools to query Chinese lottery results, check prizes, and update data for 双色球 (Double Color Ball) and 大乐透 (Super Lotto).41MIT