Japanese holiday and business-day calculations using official Japan Cabinet Office data.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
指定した日付(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}
起点日 YYYY-MM-DD。例: "2026-07-10"。この日自体は数えません。
何営業日先(正)/前(負)かを表す整数。0も指定可: dateをそのまま返し、dateが非営業日ならskippedに1件(date自身とその理由)を記録します。
"standard"(既定)または"banking"(銀行休業日も除外)。
顧客固有の追加休業日(YYYY-MM-DD の配列)。例: ["2026-12-29", "2026-12-30"]
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
指定した日付(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}
| Argument | Type | Description |
|---|---|---|
| date* | string | 起点日 YYYY-MM-DD。例: "2026-07-10"。この日自体は数えません。 |
| days* | number | 何営業日先(正)/前(負)かを表す整数。0も指定可: dateをそのまま返し、dateが非営業日ならskippedに1件(date自身とその理由)を記録します。 |
| calendar | string | "standard"(既定)または"banking"(銀行休業日も除外)。 |
| extra_closed_dates | array | 顧客固有の追加休業日(YYYY-MM-DD の配列)。例: ["2026-12-29", "2026-12-30"] |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"date",
"days"
],
"properties": {
"date": {
"type": "string",
"description": "起点日 YYYY-MM-DD。例: \"2026-07-10\"。この日自体は数えません。"
},
"days": {
"type": "number",
"description": "何営業日先(正)/前(負)かを表す整数。0も指定可: dateをそのまま返し、dateが非営業日ならskippedに1件(date自身とその理由)を記録します。"
},
"calendar": {
"type": "string",
"description": "\"standard\"(既定)または\"banking\"(銀行休業日も除外)。"
},
"extra_closed_dates": {
"type": "array",
"items": {
"type": "string"
},
"description": "顧客固有の追加休業日(YYYY-MM-DD の配列)。例: [\"2026-12-29\", \"2026-12-30\"]"
}
}
}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"}
| Argument | Type | Description |
|---|---|---|
| to* | string | 終点日 YYYY-MM-DD。例: "2026-07-20"。fromより前の日付も指定可(結果は負の営業日数になります)。 |
| from* | string | 起点日 YYYY-MM-DD。例: "2026-07-10"。 |
| calendar | string | "standard"(既定)または"banking"(銀行休業日も除外)。 |
| include_to | boolean | toを営業日数に含めるか。既定はtrue。 |
| include_from | boolean | fromを営業日数に含めるか。既定はfalse。 |
| extra_closed_dates | array | 顧客固有の追加休業日(YYYY-MM-DD の配列)。例: ["2026-12-29", "2026-12-30"] |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string",
"description": "終点日 YYYY-MM-DD。例: \"2026-07-20\"。fromより前の日付も指定可(結果は負の営業日数になります)。"
},
"from": {
"type": "string",
"description": "起点日 YYYY-MM-DD。例: \"2026-07-10\"。"
},
"calendar": {
"type": "string",
"description": "\"standard\"(既定)または\"banking\"(銀行休業日も除外)。"
},
"include_to": {
"type": "boolean",
"description": "toを営業日数に含めるか。既定はtrue。"
},
"include_from": {
"type": "boolean",
"description": "fromを営業日数に含めるか。既定はfalse。"
},
"extra_closed_dates": {
"type": "array",
"items": {
"type": "string"
},
"description": "顧客固有の追加休業日(YYYY-MM-DD の配列)。例: [\"2026-12-29\", \"2026-12-30\"]"
}
}
}指定した日付が日本の祝日(国民の祝日・休日)かどうかを判定します。内閣府公表データに基づきます。入力例: {"date": "2026-01-01"}
| Argument | Type | Description |
|---|---|---|
| date* | string | YYYY-MM-DD形式の日付。例: "2026-01-01" |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"date"
],
"properties": {
"date": {
"type": "string",
"description": "YYYY-MM-DD形式の日付。例: \"2026-01-01\""
}
}
}指定した年または期間の日本の祝日一覧を返します。入力例: {"year": 2026} または {"from": "2026-01-01", "to": "2026-06-30"}
| Argument | Type | Description |
|---|---|---|
| to | string | 期間終了日 YYYY-MM-DD。例: "2026-06-30"。yearとは併用不可。 |
| from | string | 期間開始日 YYYY-MM-DD。例: "2026-01-01"。yearとは併用不可。 |
| year | integer | 西暦年。例: 2026。from/toとは併用不可。 |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"to": {
"type": "string",
"description": "期間終了日 YYYY-MM-DD。例: \"2026-06-30\"。yearとは併用不可。"
},
"from": {
"type": "string",
"description": "期間開始日 YYYY-MM-DD。例: \"2026-01-01\"。yearとは併用不可。"
},
"year": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "西暦年。例: 2026。from/toとは併用不可。"
}
}
}