
Bizdays
io.github.qinisolabs由 GitHub 帳號 qinisolabs 發布v0.2.0更新於 Oct 24, 2026
Verified business-day math for AI agents: holidays + per-country weekends, not guesses.
概覽
讓助理取得確定性的工作日計算:增減或計算工作日、判斷某天是否為工作日,並查詢各國週末規則。
- 可以做什麼
- 提供六個工具:add_business_days、count_business_days、is_business_day、next_business_day、previous_business_day 與 country_rule。答案來自 206 個國家(含行政區)的國定假日行事曆與各國週末規則,每次結果都會說明星期幾、週末規則及其來源、略過了哪些具名假日,並附上信心標記。它只計算週末與國定假日,不含地區性或選擇性紀念日。
- 適用情境
- 適合助理必須真正推算工作日而非憑感覺回答的情境:安排截止期限、計算某個月的工作日數,或判斷某一天在特定國家是否為工作日。當答案需要考量週末並非週六週日的國家,或需要考量真實國定假日時,值得加入。
- 執行需求
- 以本機程序透過 stdio 執行,例如用 npx 執行 npm 套件 @qinisolabs/bizdays。未宣告任何帳號、API 金鑰、環境變數或標頭。參考資料已內建,函式庫本身不發出網路請求;說明中也提到一個託管的遠端端點。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Bizdays,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
bizdays
Verified business-day math for AI agents — holidays + per-country weekends, not guesses.
Verified, trustworthy data tools for AI agents. "Qiniso" means "truth" in Zulu.
Website · npm · MCP endpoint · MCP Registry
LLMs answer "what date is 5 business days after Dec 22nd in the UK?", "how many working days are in this month?", and "is Friday a working day in Saudi Arabia?" confidently and often wrongly — they miscount, forget public holidays, and assume every country's weekend is Saturday/Sunday. bizdays gives an agent the deterministic answer from real public-holiday calendars and per-country weekend rules, showing the weekend rule and the exact holidays it skipped.
Two things break naive business-day math, and bizdays fixes both: weekends aren't Sat/Sun everywhere (Fri/Sat in Saudi Arabia, Egypt & Israel; Fri in Iran; Sun in India; Sat/Sun in the UAE since 2022), and "holiday" must mean a real day off — off-the-shelf data counts observances like Valentine's Day and Christmas Eve, which are not days off.
Counting the working days in a month, a frontier LLM with no tools is wrong 63% of the time, cold — and 23% across business-day questions overall. bizdays: 0%.
Add it to Claude
Settings → Connectors → Add custom connector, and paste — no login, no key:
Stateless, reads no user data, requires no secrets. Prefer to run it locally over stdio? Add { "command": "npx", "args": ["-y", "@qinisolabs/bizdays"] } under mcpServers in your client config.
Use it as a library
Every tool is also a typed function — no MCP required:
Every function returns a rich result: the answer, the weekday, exactly which weekends and named holidays were skipped, the weekend rule and its source, and a confidence flag.
What it does — 6 tools
Public holidays for 206 countries (and subdivisions) come from date-holidays, filtered to type: "public". Weekends come from Unicode CLDR via the runtime Intl API, plus a curated data/weekend-overrides.json correction layer (e.g. Bangladesh Fri/Sat, Nepal Sat-only) — the maintained data is the moat.
What it is not
- Not all-holidays. It counts weekends and public holidays only — not regional or optional observances. Pass company shutdowns or regional days via
extraHolidays. - Not uniformly verified. A Tier-1 set of ~65 countries is verified; others work but are flagged
unverified. Where no holiday calendar exists (e.g. Qatar, Kuwait, Oman), the correct weekend still applies and the response says so (holidaysApplied: false). - Not a live service dependency. The library makes no network calls; dates are
YYYY-MM-DDin UTC.
Architecture
A single TypeScript package exposing one MCP server over two transports — stdio (local / npx) and a Cloudflare Worker (the hosted edge endpoint) — both driven by the same core.ts tool definitions, which also power the importable library.
Privacy
This tool runs locally on your machine and is built not to collect, store, or transmit your data — no analytics, no telemetry, no account. All reference data is bundled — no network calls, and nothing leaves your device. Full policy: https://qinisolabs.github.io/privacy.html.
License
Apache-2.0. Bundled holiday data is from date-holidays (ISC AND CC-BY-3.0); see NOTICE.
來源:README.md,提交 7712d8a
工具
0版本歷史
1- v0.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分