
Mycal
io.github.Junhui20由 GitHub 帳號 Junhui20 發布v0.1.4更新於 Oct 24, 2026
Malaysia public holidays, school terms, business days & a leave optimizer (13 tools).
概覽
本機 MCP 伺服器,讓助理查詢馬來西亞各州公共假期、學校學期與考試、工作日計算及請假規劃。
- 可以做什麼
- 依年份、州屬、類型或月份查詢馬來西亞公共假期,並判斷某日期是假期、週末、工作日還是上課日
- 尋找下一個假期、日期區間內的假期、長週末以及近期資料變更
- 計算兩個日期之間的工作日數量,或在某日期上加上若干工作日
- 透過請假優化器建議最省假的請假方案,以取得最長連續假期
- 列出各州屬並將 KL、JB 等別名解析為標準州屬代碼
- 取得學校學期、學校假期以及 SPM、STPM、MUET、PT3 考試時程
- 適用情境
- 適合處理馬來西亞日期相關事務:依各州假期與週末安排會議或截止日期、依長週末規劃年假,或查詢學校學期與考試時程作為安排依據。
- 執行需求
- 透過 npx 以本機程序方式執行 npm 套件 @catlabtech/mycal-mcp-server,需要 Node.js 以及連線至該專案託管 API 的網路。未宣告需要 API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mycal,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Malaysia Calendar API
Malaysia's most complete calendar API — public holidays, school calendar, exam schedules, and MCP server for AI tools.
[npm: mycal-core] [npm: mycal-sdk] [npm: mycal-mcp-server] [License: MIT] [Deploys on Cloudflare]
Data source: Official government gazette (JPM BKPP), JAKIM, KPM, MPM. Not scraped from third-party websites.
Links
- Website + demo: https://mycal-web.pages.dev
- Developer docs: https://mycal-web.pages.dev/docs
- API base URL: https://mycal-api.huijun00100101.workers.dev/v1
- GitHub: https://github.com/Junhui20/malaysia-calendar-api
Packages
Published to npm under the @catlabtech scope:
Features
- 50 public holidays for 2026 from official gazette (Warta Kerajaan) — federal + state-specific
- 13 states + 3 Federal Territories with aliases (KL, JB, Penang, etc.)
- Weekend-aware — Kedah/Kelantan/Terengganu use Fri-Sat (Kumpulan A), all others use Sat-Sun (Kumpulan B), with Johor's historical switch tracked
- Cuti ganti (replacement holiday) auto-calculation per state weekend config
- Business day calculator — per-state, holiday-aware
- School calendar — terms, holidays, KPM cuti perayaan (Lampiran A/B/C)
- Exam schedules — SPM, STPM, MUET, PT3
- iCal subscription feeds — per-state
.icsfeeds - MCP Server for AI agents — 13 tools for Claude, ChatGPT, and other assistants
- TypeScript SDK (
@catlabtech/mycal-sdk) with typed responses - OpenAPI 3.1 spec + interactive docs
- Trilingual — Bahasa Melayu, English, Chinese names (三语支持)
Quick Start
API Examples
Base URL: https://mycal-api.huijun00100101.workers.dev/v1
List holidays
Check a date
Response:
Business days
School calendar
Next holiday
State resolution
Full API Reference
See the full OpenAPI 3.1 spec for request/response schemas.
SDK Usage
MCP Server
Connect the Malaysia Calendar API to Claude, ChatGPT, or any MCP-compatible AI assistant.
Setup with Claude Desktop / Claude Code
Add to your MCP configuration:
Available Tools (13)
State Codes
State aliases are case-insensitive. Use GET /v1/states/resolve?q=kl to resolve any alias to the canonical code.
Project Structure
Data Sources
All data is sourced from official Malaysian government publications:
Holiday data includes gazette references (e.g., P.U.(B) 305/2025) for traceability.
Deploy
Two parts deploy independently:
API → Cloudflare Workers
Website → Cloudflare Pages
First-time Pages setup:
- Create a Pages project named
mycal-webin the Cloudflare dashboard. - Either connect the GitHub repo for automatic builds, or rely on the GitHub Actions workflow (
.github/workflows/deploy.yml) to push viawrangler pages deploy. - Required GitHub secrets:
CLOUDFLARE_API_TOKEN,CLOUDFLARE_ACCOUNT_ID.
CI/CD
GitHub Actions handles:
- PR gate — Zod schema validation + cross-source checks on every PR
- Deploy — On merge to
main: build and deploy API to Workers + Web to Pages in parallel - Daily scrape — Government portal monitoring for updates
- Rukyah monitor — Islamic date confirmation tracking
Contributing
See CONTRIBUTING.md for how to:
- Report a missing holiday or cuti peristiwa
- Fix data errors
- Add new features
License
MIT
來源:README.md,提交 975b7a0
工具
0版本歷史
1- v0.1.4最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分