Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Official Taiwan Lottery draw results: latest and past draws, ticket check, frequencies, schedule
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"taiwan-lottery": {
"command": "npx",
"args": [
"-y",
"mcp-server-taiwan-lottery"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add taiwan-lottery -- npx -y mcp-server-taiwan-lotteryวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"taiwan-lottery": {
"command": "npx",
"args": [
"-y",
"mcp-server-taiwan-lottery"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"taiwan-lottery": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-server-taiwan-lottery"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub adsandcode ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.1) เข้า registry 14 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Reelsaw
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Drive a self-hosted Reelsaw: turn long videos into vertical clips, edit, re-render and export them.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
讓 AI 助理和程式直接查台灣彩券的官方開獎結果:最新一期、歷史開獎、對獎、號碼出現次數、開獎時間。號碼全部來自台灣彩券官方 API,查不到就說查不到,不會自己補。
說明與完整開獎資料:playsport539.com
一個套件兩種用法:MCP 伺服器(給 Claude 這類 AI 助理用),以及指令列工具 taiwan-lottery(給腳本、排程用)。
每個結果都有 more 欄位,附 1 到 3 個 playsport539.com 的相關頁面(歷史開獎、統計、對獎、開獎時間),想看完整資料可以點過去。先說清楚:playsport539.com 是一個台灣彩券開獎與運動比分網站,網站上有廣告。
想直接在網頁上看,常用的幾頁:
| 代號 | 遊戲 | 也可以打 | 對獎會判定的獎項 | 開獎 |
|---|---|---|---|---|
539 | 今彩539 | 今彩、daily539 | 頭獎、貳獎、參獎、肆獎 | 週一至週六 20:30 |
lotto649 | 大樂透 | 649 | 頭獎到柒獎、普獎(特別號自動比對) | 週二、週五 20:30 |
superlotto | 威力彩 | super_lotto638 | 頭獎到玖獎、普獎(要給第二區號碼) | 週一、週四 20:30 |
3d | 3星彩 | 三星彩 | 壹獎、貳獎、參獎(有一種組合不判定,見下方) | 週一至週六 20:30 |
4d | 4星彩 | 四星彩 | 壹獎、貳獎、參獎(同上) | 週一至週六 20:30 |
39m | 39樂合彩 | 39_m5 | 二合、三合、四合 | 用今彩539的號碼 |
49m | 49樂合彩 | 49_m6 | 二合、三合、四合 | 用大樂透的號碼(不含特別號) |
bingo | 賓果賓果 | 賓果 | 只列出對中的號碼,不判定獎項 | 每天 07:05 到 23:55,每 5 分鐘一期 |
38m | 38樂合彩 | 38_m6 | 二合到五合 | 已不在官方開獎時程,資料到 2023-12 |
lotto1224 | 雙贏彩 | 1224 | 頭獎到肆獎 | 已不在官方開獎時程,資料到 2023-12 |
中文名稱直接打就可以,例如「今彩539」「大樂透」「威力彩」;簡體(大乐透、宾果)與「三星」「四星」「威力」這種簡稱也認得。「樂透」這種泛稱不認,因為分不出是哪一個遊戲。
不需要任何 API 金鑰。建議用 Node.js 20 以上。
Node.js 18 也能跑,但安裝時會看到 EBADENGINE 警告:官方 MCP SDK(@modelcontextprotocol/sdk)帶進來的 @hono/node-server 標註要 Node.js 20 以上。這個套件只用 stdio 連線,不會載入它,所以警告不影響執行(把它整個刪掉再跑伺服器與指令列的測試,結果照樣全過)。如果你的 npm 開了 engine-strict,Node.js 18 會直接裝不起來(npm 文件:開了 engine-strict 就拒絕安裝標註不相容目前 Node.js 版本的套件)。
在 claude_desktop_config.json 加上:
{
"mcpServers": { "taiwan-lottery": { "command": "npx", "args": ["-y", "mcp-server-taiwan-lottery"] } } }
claude mcp add taiwan-lottery -- npx -y mcp-server-taiwan-lottery
npx -y -p mcp-server-taiwan-lottery taiwan-lottery latest 539
或是 npm install -g mcp-server-taiwan-lottery 之後直接打 taiwan-lottery。
以下都是實際執行的輸出(2026-10-23 早上,台灣時間)。
$ taiwan-lottery latest 539
今彩539 第 115000256 期 2026-10-22(週四) 開獎號碼(由小到大):03 08 14 23 28 開出順序:03 28 23 14 08 獎項(本期官方公布): 頭獎 4 注 每注 6,000,000 元 貳獎 249 注 每注 20,000 元 參獎 7,153 注 每注 300 元 肆獎 74,792 注 每注 50 元 銷售金額:32,953,350 元 兌獎期限:2027-01-22
說明:
更多: 今彩539開獎號碼 https://playsport539.com/lottery/539/ 今彩539歷史開獎 https://playsport539.com/lottery/539/history/
$ taiwan-lottery check 大樂透 02 05 19 07 11 25 大樂透 第 115000098 期 2026-10-20 你的號碼:02 05 19 07 11 25 開獎號碼:02 05 19 33 40 43 特別號 06 對中:02 05 19(3 個) 結果:普獎(對中當期獎號之任三碼) 本期普獎每注:400 元(官方公布)
說明:
更多: 大樂透對獎 https://playsport539.com/lottery/lotto649/check/ 大樂透玩法與獎項 https://playsport539.com/lottery/lotto649/rules/ 大樂透開獎號碼 https://playsport539.com/lottery/lotto649/
$ taiwan-lottery schedule 威力彩 威力彩 開獎時間 開獎日:週一、週四 時間:20:30(台灣時間) 下一期:2026-10-26(週一) 第 115000086 期 官網公布:台灣彩券官網每晚 21:30 公告當日獎號、22:00 公告開獎結果 來源:https://www.taiwanlottery.com/run_lottery/schedule/ https://www.taiwanlottery.com/customer_service/faq/
說明:
更多: 威力彩開獎時間 https://playsport539.com/lottery/superlotto/schedule/ 威力彩玩法與獎項 https://playsport539.com/lottery/superlotto/rules/ 威力彩開獎號碼 https://playsport539.com/lottery/superlotto/
$ taiwan-lottery stats 539 --last 30 今彩539 最近 30 期的歷史出現次數(2026-09-18 第 115000227 期 ~ 2026-10-22 第 115000256 期) 出現最多:30 14 08 20 34 出現最少:37 11 12 35 07 號碼:次數/上次出現 01: 3次/2期前 02: 5次/8期前 03: 5次/0期前 04: 3次/1期前 05: 4次/13期前 06: 4次/9期前 07: 2次/12期前 08: 6次/0期前 09: 4次/5期前 10: 2次/4期前 11: 1次/13期前 12: 1次/3期前 13: 5次/7期前 14: 7次/0期前 15: 5次/1期前 16: 5次/3期前 17: 4次/12期前 18: 4次/1期前 19: 4次/7期前 20: 6次/4期前 21: 2次/10期前 22: 2次/3期前 23: 4次/0期前 24: 4次/5期前 25: 4次/5期前 26: 4次/4期前 27: 3次/11期前 28: 5次/0期前 29: 3次/14期前 30: 9次/2期前 31: 3次/11期前 32: 5次/4期前 33: 4次/14期前 34: 6次/6期前 35: 1次/28期前 36: 3次/2期前 37: 0次/未開 38: 5次/2期前 39: 3次/4期前
說明:
更多: 今彩539號碼出現次數統計 https://playsport539.com/lottery/539/hot-cold/ 今彩539歷史開獎 https://playsport539.com/lottery/539/history/ 今彩539開獎號碼 https://playsport539.com/lottery/539/
「0期前」是最新一期有開出,「未開」是這 30 期都沒有開出。
$ taiwan-lottery draw 539 --date 2026-10-18
taiwan-lottery: 2026-10-18(週日)沒有今彩539的開獎資料。今彩539的開獎日是週一至週六。
完整用法:
taiwan-lottery latest <遊戲>
taiwan-lottery draw <遊戲> --period <期別> | --date taiwan-lottery list <遊戲> [--month YYYY-MM | --last N | --date YYYY-MM-DD] taiwan-lottery check <遊戲> <號碼...> [--second N] [--period N] taiwan-lottery stats <遊戲> [--last N] taiwan-lottery schedule <遊戲> taiwan-lottery games taiwan-lottery --selftest | --help | --version
加上 --json 會輸出 JSON。威力彩對獎用 --second 給第二區號碼,3星彩、4星彩直接打數字,例如 taiwan-lottery check 3d 073。號碼之間只能用空白、逗號或頓號(、)隔開;小數點、負號或其他符號會直接報錯,不會被當成分隔(3.8 14 23 28 是寫錯的四個號碼,不會被讀成五個)。
| 結束代碼 | 意思 |
|---|---|
| 0 | 完成(包含「沒中獎」) |
| 1 | 官方資料沒有這一期,或還沒更新 |
| 2 | 參數錯誤、官方 API 失敗,或自我測試沒過 |
| 工具 | 輸入 | 回傳 |
|---|---|---|
latest_draw | game | 最新一期:期別、日期、號碼(由小到大與開出順序)、特別號或第二區、本期各獎項注數與每注獎金 |
get_draw | game,加 period 或 date | 指定的一期。賓果賓果一天 203 期,要給期別 |
list_draws | game,加 month(YYYY-MM)或 last_n(最多 100,預設 10);賓果賓果用 date | 多期的號碼(不含獎金表) |
check_ticket | game、numbers,威力彩加 second_zone,可選 period(預設最新一期) | 對中的號碼、獎項名稱、官方中獎條件原文、該期這個獎項的每注獎金 |
number_stats | game、last_n(預設 30,最多 200) | 每個號碼的出現次數、隔幾期沒開、出現最多與最少的號碼,附「每期獨立」的說明 |
draw_schedule | game | 開獎日與時間、官方 API 的下一期開獎日、官方公告、官網公布結果的時間 |
全部是唯讀工具。輸入有誤、查無此期、官方 API 失敗時,回傳 isError,kind 分別是 input、not_found、upstream,訊息是中文。
伺服器啟動時會先跑一次自我測試(用錄下來的官方回應,不連網路),測試沒過就拒絕啟動。指令列也一樣,先過自我測試才回答。
https://api.taiwanlottery.com/TLCAPIWeB/Lottery/。用到的端點(Daily539Result、Lotto649Result、SuperLotto638Result、3DResult、4DResult、39M5Result、49M6Result、38M6Result、Lotto1224Result、BingoResult、LatestBingoResult、NextDrawDate、ExceptionNotice)是從 www.taiwanlottery.com 網頁的 JavaScript 找出來的,2026-10-23 逐一實際呼叫確認過。prizes_pending: true,並說明官方 22:00 公告。21:30 到 22:00 之間官方實際回傳什麼,還沒有在那個時段實測過。獎項名稱與中獎條件照抄台灣彩券官網的遊戲介紹頁(這些頁面由 JavaScript 產生,條文在頁面載入的程式裡):
| 遊戲 | 官方頁面 |
|---|---|
| 今彩539 | https://www.taiwanlottery.com/lotto/info/daily_cash/ |
| 大樂透 | https://www.taiwanlottery.com/lotto/info/lotto649/ |
| 威力彩 | https://www.taiwanlottery.com/lotto/info/super_lotto638/ |
| 3星彩 | https://www.taiwanlottery.com/lotto/info/3_d/ |
| 4星彩 | https://www.taiwanlottery.com/lotto/info/4_d/ |
| 39樂合彩 | https://www.taiwanlottery.com/lotto/info/39_m5/ |
| 49樂合彩 | https://www.taiwanlottery.com/lotto/info/49_m6/ |
| 賓果賓果(不判定獎項) | https://www.taiwanlottery.com/lotto/info/bingo_bingo/ |
| 38樂合彩、雙贏彩 | 官網歷史開獎頁的獎項標示:https://www.taiwanlottery.com/lotto/history/history_result/ |
開獎日來自 https://www.taiwanlottery.com/run_lottery/schedule/ ,20:30 開獎與 21:30、22:00 公布時間來自 https://www.taiwanlottery.com/customer_service/faq/ ,賓果賓果的 07:05 到 23:55 每 5 分鐘來自 https://www.taiwanlottery.com/lotto/result/bingo_bingo/ 。
幾個要知道的地方:
won: null 並說明原因。won 是 null。number_stats 只是把過去開出的號碼數一數。每一期開獎都是獨立的隨機事件,過去出現的次數不能預測下一期,出現得多的號碼不會比較容易再開,很久沒開的號碼也不會「該開了」。工具每次回傳統計都會附上這段說明。
npm install
npm run build npm run selftest # 解析、對獎、統計、連結,用錄下的官方回應,不連網路 node scripts/smoke.mjs # 用 MCP 用戶端實際連伺服器、實際跑指令列(API 換成錄下的回應) node scripts/check-publish-ready.mjs node scripts/live-check.mjs # 真的呼叫官方 API,每個遊戲一次(不在 CI 裡跑) node scripts/record-fixtures.mjs # API 格式改了才需要重錄 fixtures/
mcp-server-taiwan-lottery is an MCP server and CLI for official Taiwan Lottery (台灣彩券) draw results. It reads the official API at api.taiwanlottery.com and nothing else, and never fills in numbers the API does not have.
latest_draw, get_draw, list_draws, check_ticket, number_stats, draw_schedule. All read only.539, lotto649, superlotto, 3d, 4d, 39m, 49m, bingo, plus 38m and lotto1224 (no longer drawn; history to 2023-12). Chinese names are accepted.npx -y mcp-server-taiwan-lottery as an MCP server (stdio), or npx -y -p mcp-server-taiwan-lottery taiwan-lottery latest 539 on the command line. No API key. Node.js 20 or later is recommended. On Node.js 18 npm prints an EBADENGINE warning because @hono/node-server, pulled in by the MCP SDK, declares Node.js 20; this package only uses stdio and never loads it, so it still runs. With npm's engine-strict set, the install fails on Node.js 18.prizes_pending: true (it does not mean nobody won).check_ticket names the prize tier using the official game rules (pages linked above) and shows the per-ticket amount published for that draw. For BINGO BINGO it returns matches only.number_stats counts past draws only. Each draw is independent; past frequency does not predict future draws.more: one to three links to playsport539.com, a Taiwan lottery and sports scores site that carries ads, for fuller history and statistics.MIT