PlugRail Japanese Calendar

dev.plugrail由 plugrail.dev 發布官方發布者v0.2.0更新於 Oct 28, 2026

Japanese holiday and business-day calculations using official Japan Cabinet Office data.

已驗證Streamable HTTP可網頁執行效率與工作流資料與分析

概覽

AI 產生的概覽

遠端 MCP 伺服器,讓助理依日本內閣府資料判斷日本國定假日,並計算或推算營業日。

可以做什麼
  • 判斷指定日期是否為日本國定假日
  • 依年份或日期區間列出日本假日
  • 從某日期起加上或減去 N 個營業日,跳過週末與假日,可選擇排除銀行休業日
  • 計算兩個日期之間的營業日數,可調整是否包含起訖日
適用情境
適合圍繞日本假日與工作日進行排程與規劃,例如設定截止日、付款日或必須落在日本營業日的交付時間。
執行需求
遠端 MCP 端點;未宣告需要驗證、環境變數或請求標頭。需要能連線至該託管服務的網路。
安裝前請注意
此服務並非日本政府官方服務,資料不受任何日本公共機關保證。託管端點可能啟用驗證、流量限制與用量計費;自架需自備 Cloudflare D1 與 KV 資源。查詢皆為唯讀操作。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PlugRail Japanese Calendar,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "plugrail-japanese-calendar": {
      "type": "http",
      "url": "https://jp-calendar.plugrail.dev/mcp"
    }
  }
}

README

plugrail

[License: MIT] [MCP]

A collection of MCP servers that connect to Japanese public data. The name alone does not describe the project, so plugrail is not related to railways or railway services.

Live servers

ServerMCP endpointToolsStatus
jp-calendarhttps://jp-calendar.plugrail.dev/mcpis_holiday, list_holidays, business_days_between, add_business_daysLive

Connect

See the jp-calendar connection guide.

Self-hosting

  1. In packages/servers/jp-calendar/, copy wrangler.example.jsonc to wrangler.jsonc and fill in your Cloudflare resource IDs.
  2. Create the D1 database and KV namespace referenced by that configuration.
  3. Run pnpm --filter @plugrail/jp-calendar deploy.

The self-hosted server runs independently. Authentication, rate limiting, and usage metering are features of the hosted service only.

Architecture

text
MCP client    |    vjp-calendar Worker --> Cloudflare D1 (holiday data)                   --> Cloudflare KV (cached data)

Sources and disclaimer

This is not an official service of the National Tax Agency, the Digital Agency, or any other Japanese government body. Information provided does not represent their official views and is not guaranteed by them.

Source: Adapted from the Cabinet Office "National Holidays" page (https://www8.cao.go.jp/chosei/shukujitsu/gaiyou.html)

Contributing

Issues and pull requests are welcome. Please include enough context to reproduce a problem or explain a proposed change.

License

MIT. See LICENSE.

來源:README.md,提交 1cccfd6

工具

4

is_holiday

指定した日付が日本の祝日(国民の祝日・休日)かどうかを判定します。内閣府公表データに基づきます。入力例: {"date": "2026-01-01"}

輸入參數date必填

list_holidays

指定した年または期間の日本の祝日一覧を返します。入力例: {"year": 2026} または {"from": "2026-01-01", "to": "2026-06-30"}

輸入參數tofromyear

add_business_days

指定した日付(date)の翌日から数えてN営業日目(days)の日付を返します。dateの当日は数えません。daysが負の場合は過去方向(dateの前日から遡ってN営業日目)に計算します。土日・日本の祝日を除外し、calendar="banking"を指定すると銀行休業日(12/31〜1/3)も除外します。dateが営業日かどうかだけ知りたい場合は is_holiday を使ってください(days=0でも同じ情報がskipped経由で得られます)。入力例: {"date": "2026-07-10", "days": 3}

輸入參數date必填days必填calendarextra_closed_dates

business_days_between

from〜to間の営業日数を数えます。既定では「fromを含まず、toを含む」境界です(例:「今日から支払期日まで何営業日か」)。include_from/include_toで境界を変更できます。土日・日本の祝日を除外し、calendar="banking"を指定すると銀行休業日(12/31〜1/3)も除外します。from > to の場合はエラーにせず、from/toとinclude_from/include_toを入れ替えて計算した結果の符号を反転した値(負の営業日数)を返します(反対称則: count(A,B,x,y) = -count(B,A,y,x)。A≠B、すなわちfrom≠toの場合に成立する恒等式で、from===toはこの分岐に入らないため対象外)。入力例: {"from": "2026-07-10", "to": "2026-07-20"}

輸入參數to必填from必填calendarinclude_toinclude_fromextra_closed_dates

版本歷史

2
  1. v0.2.0最新Oct 7, 2026
  2. v0.1.1Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

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

其他 Plugrail 整合