4D Results (Malaysia, Singapore, Cambodia)

io.github.oddsflowai-team由 GitHub 帳號 oddsflowai-team 發布v1.0.0更新於 Oct 24, 2026

Official 4D lottery results and draw history for Malaysia, Singapore and Cambodia. Results only.

發布方自己的服務:HK Racing AI

已驗證Streamable HTTP可網頁執行金融資料與分析

概覽

AI 產生的概覽

一個遠端 MCP 伺服器,讓助理查詢馬來西亞、新加坡和柬埔寨的官方 4D 彩券開獎結果與開獎歷史。

可以做什麼
取得各營運方的最新一期開獎,或某一天所有營運方的結果,或單一營運方近期的開獎(含獎項、特別號和安慰號)。查詢某個 4 位號碼,列出它歷次中獎的開獎日期、營運方和獎項。取得其他遊戲的官方結果,例如 Toto 5D/6D/Star/Power/Supreme、Magnum Life 與 Jackpot、Da Ma Cai 3+3D 和 Singapore Toto,包含特別號和頭獎金額。查看即將到來的開獎行程及各日期對應的營運方。每筆結果都附有簡短文字摘要、結構化資料和對應頁面連結。
適用情境
適合需要快速了解最新或歷史 4D 開獎結果、某號碼的中獎紀錄、其他彩券遊戲結果,或馬來西亞、新加坡和柬埔寨各營運方開獎日期的情境。
執行需求
遠端 Streamable HTTP 端點;不需要 API 金鑰、OAuth 或註冊。需要能連線至該服務的網路,用戶端需支援遠端 MCP 連接器或 HTTP 傳輸。
安裝前請注意
結果僅供參考;此服務不售票、不接受投注,也不提供號碼推薦或預測。資料來自營運方網站和檔案,最終以營運方官方公告為準。資料採用 CC BY 4.0 授權,展示或轉載時需標示來源。請求可能被限流。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 4D Results (Malaysia, Singapore, Cambodia),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.oddsflowai-team%2F4dlivetoday/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "4d-results-malaysia-singapore-cambodia": {
      "type": "http",
      "url": "https://4dlivetoday.com/mcp"
    }
  }
}

README

4D Results API & MCP Server — 4dlivetoday

[M8ven Score]

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

On draw nights, results are read from each operator's own official website and cross-checked against independent results sites where one exists. Older draws come from results archives (Magnum's official archive back to 1985, the others mainly the check4d.org archive); see data sources for each operator's coverage. 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


What's covered

Operator idNameRegion
magnumMagnum 4DMalaysia
damacaiDa Ma Cai 1+3DMalaysia
totoSports Toto 4DMalaysia
sabah88Sabah 88 4DEast Malaysia
stcSandakan STC 4DEast Malaysia
cashsweepSarawak Cash SweepEast Malaysia
sgSingapore 4D (Singapore Pools)Singapore
gdGrand Dragon 4D (GD Lotto)Cambodia
perdanaPerdana 4D (evening; the afternoon draw appears as perdana3pm)Cambodia
9lotto9 Lotto 4DCambodia

Every 4D draw has 23 numbers: 1st, 2nd and 3rd prize, 10 special (starter) and 10 consolation.

Other official games (game ids):

Game idName
magnum_lifeMagnum Life (8 numbers + 2 bonus)
magnum_jackpot, magnum_goldMagnum 4D Jackpot / Jackpot Gold amounts
damacai_3p3dDa Ma Cai 3+3D (6-digit 1st–3rd, starter, consolation)
damacai_jackpotDa Ma Cai 1+3D Jackpot and 3D Jackpot amounts
toto_5d, toto_6dToto 5D, Toto 6D
toto_star, toto_power, toto_supremeStar Toto 6/50, Power Toto 6/55, Supreme Toto 6/58
toto_jackpotSports Toto 4D Jackpot amounts
sg_totoSingapore 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/mcp

No 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:

json
{  "mcpServers": {    "4dlivetoday": {      "command": "npx",      "args": ["-y", "mcp-remote", "https://4dlivetoday.com/mcp"]    }  }}

Claude Code

bash
claude mcp add --transport http 4dlivetoday https://4dlivetoday.com/mcp

Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in a project):

json
{  "mcpServers": {    "4dlivetoday": { "url": "https://4dlivetoday.com/mcp" }  }}

VS Code

.vscode/mcp.json:

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

ToolInputWhat it returns
get_latest_results—The newest draw for every operator
get_results_by_datedate (YYYY-MM-DD, Malaysia time)Every operator's draw on that date
get_operator_resultsoperator, limit (1–30, default 10)That operator's most recent draws
lookup_numbernumber (4 digits, e.g. "0650")Every draw in which the number won, with prize tier, newest first, plus a total count
get_other_game_resultsgame, limit (1–30, default 10)Recent results of one of the other games listed above
get_draw_schedule—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 & pathDescription
GET /api/v1Index: endpoints and envelope fields
GET /api/v1/latestNewest draw for every operator
GET /api/v1/results/{date}All operators on a date (YYYY-MM-DD, Malaysia time)
GET /api/v1/operators/{operator}?limit=10Recent draws of one operator (limit 1–30)
GET /api/v1/numbers/{number}Every winning appearance of a 4-digit number
GET /api/v1/games/{game}?limit=10Recent results of another official game
GET /api/v1/scheduleUpcoming draw dates
GET /api/v1/openapi.jsonOpenAPI 3.1 description

Examples

bash
curl https://4dlivetoday.com/api/v1/latestcurl https://4dlivetoday.com/api/v1/results/2026-09-27curl "https://4dlivetoday.com/api/v1/operators/magnum?limit=5"curl https://4dlivetoday.com/api/v1/numbers/1063curl "https://4dlivetoday.com/api/v1/games/sg_toto?limit=3"curl https://4dlivetoday.com/api/v1/schedule

More 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):

json
{  "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:

Endpointdata
/latest{ results: [draw, …] } — newest draw of each operator
/results/{date}{ date, results: [draw, …] } (empty results plus a note on a day with no draws)
/operators/{operator}{ operator, operator_name, results: [draw, …] }
/numbers/{number}{ number, count, results: [{ operator, operator_name, date, draw_no, tier, url }, …] } — tier is 1st, 2nd, 3rd, special or consolation
/games/{game}{ game, game_name, operator, results: [game result, …] }
/schedule{ schedule: [{ date, kind, operators: [{ id, name }, …] }, …] } — kind is regular or special

A 4D draw (real, trimmed):

json
{  "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:

statusMeaning
checkedOfficial result confirmed by an independent second source
verifyingPublished, second-source check still running (usually minutes after the draw)
single_sourceOnly one official source exists for this operator
historyImported from the archive

A game result (real, trimmed):

json
{  "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

json
{ "error": { "code": "invalid_date", "message": "date must be a real calendar date in YYYY-MM-DD format" } }
HTTPcodeWhen
400invalid_date, invalid_operator, invalid_number, invalid_game, invalid_limitBad input
429—Too many MCP requests from one address; wait for Retry-After
503upstream_unavailableResults 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

  • On draw nights each result is read from the operator's own official site. Where a second independent source exists, the result is cross-checked and its status becomes checked.
  • Older draws were imported from results archives. They carry status: history, or checked where a second source confirmed the same numbers (for example every Magnum draw back to 1985). How far each operator goes back, and how many older draws a second source has confirmed, is listed on the data sources page.
  • 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

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.

來源:README.md,提交 1613ee6

工具

6

get_latest_results

Latest 4D results

Returns the official newest 4D draw result for every operator (Magnum, Da Ma Cai, Sports Toto, Singapore 4D, Sabah 88, Sandakan STC, Sarawak Cash Sweep, Grand Dragon, Perdana including its afternoon draw, and 9 Lotto). Official results only; no number recommendations or forecasts.

無需輸入參數。

get_results_by_date

4D results by date

Returns every operator's official 4D draw result for a given calendar date. Returns an empty result set with a note if no draws happened that date. Official results only; no number recommendations or forecasts.

輸入參數date必填

get_operator_results

One operator's recent 4D results

Returns one 4D operator's most recent official draw results (1st, 2nd, 3rd, special and consolation numbers), newest first. Official results only; no number recommendations or forecasts.

輸入參數limitoperator必填

lookup_number

4D number history

Lists every official 4D draw in which a given 4-digit number appeared as a winning number, with its date, operator and prize tier. Past winning appearances only, not a ranking. Official results only; no number recommendations or forecasts.

輸入參數number必填

get_other_game_results

Other 4D-family game results

Returns official results for 4D-family games other than the main draw: Toto 5D/6D/Star/Power/Supreme, Magnum Life/Jackpot/Gold, Da Ma Cai 3+3D/Jackpot, and Singapore Toto, including numbers, bonus numbers and jackpot amounts. Official results only; no number recommendations or forecasts.

輸入參數game必填limit

get_draw_schedule

Official 4D draw schedule

Returns the official upcoming 4D draw schedule (regular and special draw dates) and which operators draw on each date, from the site's calendar. Official results only; no number recommendations or forecasts.

無需輸入參數。

版本歷史

1
  1. v1.0.0最新Sep 30, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Hkracing 整合