# PlugRail Japanese Calendar [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/plugrail/servers  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/plugrail-japanese-calendar

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

## Tools
Capabilities this server exposes over MCP:

- **is_holiday** — 指定した日付が日本の祝日（国民の祝日・休日）かどうかを判定します。内閣府公表データに基づきます。入力例: {"date": "2026-01-01"}
- **list_holidays** — 指定した年または期間の日本の祝日一覧を返します。入力例: {"year": 2026} または {"from": "2026-01-01", "to": "2026-06-30"}year は数値（例: 2026。文字列の "2026" は不可）。from/to は YYYY-MM-DD の実在日のみ（例: "2026-01-01"。2026/01/01・20260101 は不可）。year と from/to は併用不可。
- **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}
- **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"}

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "plugrail-japanese-calendar": {
    "url": "https://jp-calendar.plugrail.dev/mcp"
  }
}
```

## Documentation

## What PlugRail Japanese Calendar does

PlugRail Japanese Calendar exposes Japanese holiday and business-day calculations through MCP. Its holiday data is adapted from the Japan Cabinet Office’s National Holidays page. The tools cover both direct holiday checks and date-range calculations, so an MCP client can answer questions such as whether a date is a holiday, which holidays fall within a period, or how many working days separate two dates.

The server is intended for workflows that depend on Japan-specific calendars. It excludes Saturdays, Sundays, and Japanese national holidays from ordinary business-day calculations. A banking calendar option additionally excludes December 31 through January 3.

## How it works

The hosted MCP endpoint is `https://jp-calendar.plugrail.dev/mcp`. In the hosted deployment, a `jp-calendar` Worker accesses holiday data stored in Cloudflare D1 and uses Cloudflare KV for cached data. An MCP client sends structured tool calls and receives the resulting holiday or date calculation.

`add_business_days` counts from the day after the supplied date when moving forward. Negative values count backward from the preceding day, and the starting date is not included. `business_days_between` uses an exclusive `from` and inclusive `to` boundary by default. Its `include_from` and `include_to` options change those boundaries. Reversed dates produce a signed result rather than an error, using the corresponding reversed boundary settings.

Dates must use the `YYYY-MM-DD` format and represent real calendar dates. For `list_holidays`, a numeric `year` can be supplied, or a `from` and `to` range can be used; these two query styles cannot be combined.

## Setup and configuration

For hosted use, configure an MCP client with the endpoint `https://jp-calendar.plugrail.dev/mcp`.

Self-hosting uses the `packages/servers/jp-calendar/` package and Cloudflare resources:

1. Copy `wrangler.example.jsonc` to `wrangler.jsonc`.
2. Fill in the Cloudflare resource IDs.
3. Create the D1 database and KV namespace referenced by the configuration.
4. Deploy with `pnpm --filter @plugrail/jp-calendar deploy`.

The self-hosted deployment operates independently. Authentication, rate limiting, and usage metering belong to the hosted service and are not part of the self-hosted deployment.

## Tools and capabilities

- `is_holiday`: Checks whether a date is a Japanese national holiday or holiday based on Cabinet Office data.
- `list_holidays`: Returns holidays for a numeric year or for an inclusive-looking date range specified by `from` and `to`.
- `add_business_days`: Moves forward or backward by a requested number of business days, excluding weekends and Japanese holidays.
- `business_days_between`: Counts business days between two dates with configurable endpoint inclusion and signed results for reversed ranges.
- `calendar="banking"`: Applies the additional December 31 through January 3 bank-holiday exclusion to the two business-day calculation tools.

## Limitations and notes

The service is not an official Japanese government service, and its information is not guaranteed or endorsed by the National Tax Agency, Digital Agency, or other government bodies. Holiday data is based on the Cabinet Office National Holidays source.

`list_holidays` accepts either a numeric `year` or a `from`/`to` range, not both. Date strings such as `2026/01/01` and `20260101` are invalid. A `days` value of zero in `add_business_days` does not perform a movement; its skipped information can be used to determine the relevant business-day status.

_Full upstream README: https://allmcps.com/mcp/plugrail-japanese-calendar/readme_

