MCP server for Japanese statutory annual paid leave (nenkyu) calculations.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Jp Paid Leave.
calculate_entitlementComputes the grant date and number of days for a given grant occurrence, from hire date and reference-date method
check_attendance_rateChecks whether the 80% attendance-rate requirement is met, with a numerator/denominator breakdown
list_grant_scheduleLists the grant schedule for a given number of years from the hire date
proportional_entitlementComputes the proportional grant for part-time workers, based on weekly/annual scheduled working days
calculate_carryoverComputes carryover, forfeiture under the 2-year prescription period, and remaining balance
check_mandatory_five_daysDetermines whether an employee is subject to the mandatory 5-day rule, and reports compliance status
ζ₯ζ¬θͺη README γ―γγ‘γ
An MCP (Model Context Protocol) server for calculating Japan's statutory annual paid leave ("nenkyu") under the Labor Standards Act: entitlement grants, attendance-rate checks, proportional grants for part-time workers, carryover/prescription, and the 5-day mandatory-use rule. It lets MCP-capable clients such as Claude Desktop invoke these calculations directly.
No network access is used at runtime. All statutory rules are embedded as constants in the code.
apply_company_policy.basis field:
"legal_minimum": the statutory minimum value"company_policy_applied": the value after applying a company policy (only from apply_company_policy)apply_company_policy automatically corrects
it to the statutory minimum and returns a warning.meta field with
the effective date and source URL of each rule actually used, the date the data was last verified
(dataVerifiedOn), and a staleness warning when applicable. See
Versioning policy and Maintenance policy below.| Tool | Description |
|---|---|
calculate_entitlement | Computes the grant date and number of days for a given grant occurrence, from hire date and reference-date method |
check_attendance_rate | Checks whether the 80% attendance-rate requirement is met, with a numerator/denominator breakdown |
list_grant_schedule | Lists the grant schedule for a given number of years from the hire date |
proportional_entitlement | Computes the proportional grant for part-time workers, based on weekly/annual scheduled working days |
calculate_carryover | Computes carryover, forfeiture under the 2-year prescription period, and remaining balance |
check_mandatory_five_days | Determines whether an employee is subject to the mandatory 5-day rule, and reports compliance status |
apply_company_policy | Applies a company policy on top of the statutory minimum, correcting and warning if it falls short |
Give the hire date (hireDate) and which grant occurrence to compute (grantNumber: 1 = the first grant
at 6 months of service, 2 = the second grant at 1 year 6 months, etc.).
referenceDateMethod: "individual" (the statutory default β each employee's own basis date) or
"uniform" (a company-wide unified basis date, i.e. "seiitsu-teki toriatsukai")uniformBasisMonthDays: required when uniform is used β an array of "MM-DD" candidate basis dates
(e.g. ["04-01"] or ["04-01","10-01"])weeklyScheduledDays / annualScheduledDays / weeklyScheduledHours: optional, for proportional
grants (part-time workers)For the uniform method, the server correctly computes the recurring chain: once the first front-loaded
basis date is found, every subsequent grant recurs on the same month/day each year. Any period shortened
by front-loading is returned as shortenedPeriod, with a note that this period must be treated as fully
attended for attendance-rate purposes (when calling check_attendance_rate, count it as ordinary worked
days in actualWorkedDays etc. rather than as absence β don't carve it out as unattended).
Returns an error if the statutory basis date (statutoryBasisDate, not the hire date) falls before
2001-04-01. The current grant-days table (introduced by Act No. 112 of 1998) took effect for most
purposes on 1999-04-01, but a transitional schedule with lower figures for certain tenure brackets applied
through 2001-03-31. This tool does not implement that transitional schedule, so 2001-04-01 (once the
transition was fully complete) is the verified floor (see Versioning policy and
CHANGELOG.md).
This floor applies to each grant's own basis date, not to the hire date. No matter how old the hire date is, a specific grant computes fine as long as that grant's basis date is on or after 2001-04-01. For example, for an employee hired in 1995, computing "the most recent grant as of 2026" (the 31st grant, basis date 2025-10-01) succeeds. Only grants whose own basis date is before 2001-04-01 (e.g. that same employee's 1st grant, basis date 1995-10-01) return an error.
Checks the "80% of all working days" requirement for entitlement.
Design principle: deciding whether a given day belongs in the numerator or is excluded from the
denominator is exactly the value this tool should provide β and exactly where humans and AI callers are
most likely to get it wrong. So the caller does not classify anything. Instead, break the period down into
the following 11 day-count fields and pass them as-is (all required except asOfDate β if a category
doesn't apply, pass 0 explicitly; omitting a field is an error, not an assumed zero):
| Argument | Meaning |
|---|---|
scheduledWorkingDays | Total scheduled working days for the period (days with a work obligation; excludes scheduled days off) |
actualWorkedDays | Days actually worked |
paidLeaveTakenDays | Days of annual paid leave taken |
workInjuryOrIllnessLeaveDays | Days on leave for a work-related injury or illness |
maternityLeaveDays | Days of maternity leave (Labor Standards Act Article 65) |
childcareOrFamilyCareLeaveDays | Days of childcare or family-care leave |
employerCausedSuspensionDays | Days suspended for reasons attributable to the employer (including employer-caused management/operational-obstacle suspension) |
lawfulLaborDisputeDays | Days with no work provided due to a lawful strike/labor dispute |
forceMajeureSuspensionDays | Days suspended due to force majeure |
workedOnScheduledDayOffDays | Days worked on what was originally a scheduled day off β not included in scheduledWorkingDays |
otherAbsenceDays | Ordinary absence not covered by any category above (unauthorized absence, personal illness, etc.) |
scheduledWorkingDays must equal the sum of the other 9 fields (everything except
workedOnScheduledDayOffDays). A mismatch is an error β the tool never guesses at a reconciling number.
Based on Labor Standards Act Article 39 paragraph 10 / Article 65, Directive Hakki No. 17 (Sept. 13, 1947), and Directive Kihatsu 0710 No. 3 (July 10, 2013), the tool classifies each field into one of four treatments internally:
actualWorkedDays, paidLeaveTakenDays, workInjuryOrIllnessLeaveDays,
maternityLeaveDays, childcareOrFamilyCareLeaveDaysotherAbsenceDaysemployerCausedSuspensionDays,
lawfulLaborDisputeDays, forceMajeureSuspensionDays (Kihatsu 0710 No. 3, Section 1-3)workedOnScheduledDayOffDays
(Kihatsu 0710 No. 3, Section 1-1)The result's breakdown.classification always includes each field's day count, its resulting treatment,
and the specific legal basis (statute or directive) for that treatment.
Same arguments as calculate_entitlement, plus numberOfYears (how many grant occurrences to list).
For long-tenured employees whose early grants have a basis date before the verified floor (2001-04-01),
the call as a whole no longer fails. Those specific grants are returned as supported: false placeholders
(no grant-days figure), while every other grant is computed normally with supported: true. Check the
supported field on each entry.
Computes the proportional grant from weekly scheduled days (1β4) or annual scheduled days. Returns an error if weekly scheduled hours are 30 or more, or weekly scheduled days are 5 or more (such workers use the standard table instead).
grants: array of grant records (grantDate, grantedDays)usageRecords: array of usage records (date, days)asOfDate: the date to evaluate as ofEach grant expires 2 years after its grant date (Labor Standards Act Article 115). Usage is consumed against the oldest grant first (this is common practice, not an explicit statutory rule β follow your work rules if they specify otherwise).
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-jp-paid-leave)<a href="https://allmcps.com/mcp/mcp-jp-paid-leave"><img src="https://allmcps.com/api/badge/mcp-jp-paid-leave?style=directory" alt="MCP Jp Paid Leave on AllMCPs" /></a>