
Mcp Jp Calendar
io.github.skypier-jp-works由 GitHub 帳號 skypier-jp-works 發布v1.1.0更新於 Oct 24, 2026
MCP server for Japanese business days, holidays, and fiscal-period calculations.
概覽
本機 MCP 伺服器,讓助理計算 2020 至 2030 年間的日本營業日、假日、結算日與會計期間。
- 可以做什麼
- 判斷某日期是否為日本營業日,並附上星期六等理由
- 依可設定的週末與公司自訂休業日,推算或計算營業日數
- 找出下一個五十日結算日(5、10、15、20、25 日或月底),以及遇假日時實際入帳的營業日
- 查詢月底與有效結帳日,並判斷某日期所屬的會計年度與季度
- 列出指定年份的日本國定假日
- 適用情境
- 適合助理處理日本的排程、開票、付款到期日或財務報表時使用,需要正確處理振替休日、國民休日以及四月起算的會計年度,而不是單純判斷星期幾。
- 執行需求
- 以 stdio 方式在本機執行,通常透過 npx 或全域 npm 安裝,也可用 Claude Desktop 的一鍵安裝包;npm 方式需要 Node.js。不需 API 金鑰、帳號,執行時也不連網。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Jp Calendar,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-jp-calendar
[npm version] [license] [MCP Registry]
Give your AI agent correct answers about Japanese business days. An MCP server that tells Claude (or any MCP client) whether a date is a working day in Japan, what date payment is actually due, and which fiscal quarter you're in — accounting for national holidays, substitute holidays, and conventions no simple weekday check gets right. No API keys, no network calls: all holiday data (2020–2030) is embedded in the package.
Contents
- Why this exists
- Install
- Tools
- Supported range & data source
- The
metafield - Versioning policy
- Maintenance policy
- Disclaimer
- Development
- Related tools
Why this exists
A naive "is it a weekday" check gets Japanese business dates wrong more often than you'd expect. A few real examples this server handles correctly:
Get any of these wrong in a scheduling or invoicing agent and you'll pick a bank holiday as a due date, or misreport a quarter. This server encodes the actual rules so your agent doesn't have to guess.
Install
Option 1 — npx (recommended)
No install step required. Add this to your Claude Desktop config (claude_desktop_config.json):
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Restart Claude Desktop and the tools become available. You can also run it directly:
Or install it globally:
Option 2 — .mcpb bundle (one-click install for Claude Desktop)
MCP Bundles let you install a local MCP server with a single double-click, no terminal required. Build one from source:
Then double-click the resulting mcp-jp-calendar.mcpb file to install it in Claude for macOS/Windows.
Tools
All dates are given and returned in YYYY-MM-DD format (e.g. 2026-08-15). month_end_info takes a YYYY-MM month string (e.g. 2026-08).
All of is_business_day, add_business_days, count_business_days, next_gotobi, and month_end_info accept two optional parameters:
weekendDays: array of weekday numbers to treat as non-working days.0=Sun …6=Sat. Defaults to[0, 6].customHolidays: array ofYYYY-MM-DDstrings for company-specific closures (e.g. a year-end shutdown).
Examples
is_business_day — a Saturday:
add_business_days — 1 business day after a Friday:
count_business_days — a full Mon–Sun week:
next_gotobi — the 15th falls on a Saturday, so it's pushed back:
month_end_info — month-end falls on a Sunday:
fiscal_period — December, under Japan's standard April-start fiscal year:
list_holidays — excerpt showing a citizens' holiday (国民の休日):
(Examples above are abbreviated for readability — every response also includes a meta field; see The meta field.)
Supported range & data source
Only dates from 2020 to 2030 are supported. Dates outside this range return an error.
- Holiday data for 2020–2027 is confirmed, sourced directly from Japan's Cabinet Office (内閣府) official holiday CSV: https://www8.cao.go.jp/chosei/shukujitsu/gaiyou.html
- Holiday data for 2028–2030 is a computed estimate: the vernal/autumnal equinox holidays (春分の日 / 秋分の日) aren't officially announced that far ahead, so they're calculated with the standard astronomical approximation formula and may differ from the eventual official announcement by up to a day.
- The 2020/2021 Tokyo Olympics special holiday moves (Marine Day, Sports Day, Mountain Day) are included.
- Substitute holidays (振替休日) and citizens' holidays (国民の休日) are computed automatically and have been cross-checked against the official Cabinet Office data for 2020–2027.
The meta field
Every tool response includes a meta block alongside the actual result:
dataVerifiedOn: the date this server's holiday data was last checked against the primary source.sources: the source(s) backing this response (fiscal_perioddoesn't use holiday data at all, so itssourcesis an empty array).staleWarning: a bilingual (Japanese/English) warning when more than 6 months have passed sincedataVerifiedOn;nullotherwise.
Dates outside the supported range (2020–2030) still return a hard error rather than a warning, since no data exists for those dates at all.
Versioning policy
- Any update to the embedded holiday data bumps the minor version (e.g. 1.1.0 → 1.2.0). Patch versions are reserved for bug fixes and documentation.
- Changes are recorded in CHANGELOG.md, noting when and what was updated.
Maintenance policy
- The maintainer intends to update
src/holidays.tswhenever the Public Holiday Act is amended or the Cabinet Office publishes updated data. Since this server never makes network calls at runtime, reflecting a change requires a manual update. - If you're aware of a holiday change (new/moved/removed holiday), please report it via GitHub Issues: https://github.com/skypier-jp-works/mcp-jp-calendar/issues
- For anything important, check
meta.dataVerifiedOnandmeta.staleWarning, and confirm against the latest Cabinet Office announcement if needed.
Disclaimer
- The accuracy of this tool's calculations is not guaranteed.
- Actual business days and closing dates are governed by each company's own work rules and by agreements with business partners, which always take precedence over this tool's output.
- If you are using this tool for any important business decision, you must independently verify the results yourself.
Development
Clone and build from source if you want to modify the server:
Claude Desktop config for a locally built copy:
Project structure
If a holiday law changes, this server's embedded data will not update automatically — src/holidays.ts needs to be updated manually.
Related tools
Other MCP servers by the same author:
- mcp-jp-paid-leave — calculates Japanese statutory annual paid leave (entitlement grants, attendance-rate checks, proportional grants, carryover, the 5-day mandatory-use rule, and more)
- mcp-jp-corporate-id — validates and normalizes Japanese corporate numbers and qualified invoice registration numbers
License
來源:README.md,提交 92af5d2
工具
0版本歷史
1- v1.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分