open-holidays-calendar
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@shadojus/open-holidays-calendar
Deterministic Worldwide Public Holidays (Subdivision-Level), School Breaks & Business-Day Calculator — 100% offline-capable, zero external runtime dependencies ("dependencies": {}), available as a Node.js ESM package, REST API server (OpenAPI 3.1.0), CLI, Model Context Protocol (2024-11-05) stdio server, and Python stdlib package (shadojus-holidays-calendar).
Key Capabilities
Exact Computus & Astronomical Calendar Math (
src/rules.mjs)Meeus/Jones/Butcher Gregorian Easter (
gregorianEaster(year)) valid for all Gregorian years (1583..9999).Julian/Orthodox Easter (
orthodoxEaster(year)) with secular Julian-to-Gregorian conversion.Nth-Weekday & Relative Weekday Rules:
nthWeekdayOfMonth(year, month, weekday, n)(supporting1..5and-1for last occurrence),weekdayBefore,weekdayOnOrAfter(e.g., German Buß- und Bettag, Canadian Victoria Day, Swedish/Finnish Midsummer Day, Swiss Jeûne genevois).Japanese National Holidays: NAOJ astronomical Vernal/Autumnal Equinox equations, Happy Monday system, Furikae Kyūjitsu (Sunday substitute holidays), and Kokumin no Kyūjitsu (Silver Week Citizens' Holiday bridging).
32 Countries with Full Subdivision Granularity
Germany (
DE) — All 16 Bundesländer (DE-BW..DE-TH): Heilige Drei Könige, Internationaler Frauentag (DE-BE,DE-MV), Karfreitag, Ostersonntag (DE-BB), Ostermontag, Tag der Arbeit, Christi Himmelfahrt, Pfingstsonntag (DE-BB), Pfingstmontag, Fronleichnam, Mariä Himmelfahrt, Weltkindertag (DE-TH), Tag der Deutschen Einheit, Reformationstag (including 2017 nationwide anniversary), Allerheiligen, Buß- und Bettag (DE-SN), 1. & 2. Weihnachtstag.Austria (
AT) — All 9 Bundesländer (AT-1..AT-9) including state patron holidays (Josefstag, Florianitag, Rupertitag, Tag der Volksabstimmung, Martinstag, Leopolditag).Switzerland (
CH) — All 26 Cantons (CH-ZH,CH-BE,CH-GE,CH-TI,CH-VD, etc.) including Berchtoldstag, Auffahrt, Bundesfeiertag, Jeûne genevois, Lundi du Jeûne fédéral, Fronleichnam, Allerheiligen, Restauration de la République.Global Coverage:
FR(incl. Alsace-MoselleFR-57/67/68),IT,ES,NL,BE,PL,SE,NO,FI,DK,GB(GB-ENG,GB-WLS,GB-SCT,GB-NIR),IE,US(federal + states + weekend observance shifts),CA,AU,NZ,JP,BR,MX,ZA,PT,CZ,HU,RO,GR,BG,SG,KR,IN.
Working-Day & SLA Calculator (
src/index.mjs)holidaysForYear(country, { year, subdivision })isHoliday(date, country, { subdivision })isBusinessDay(date, country, { subdivision, weekend })nextBusinessDay(date, country, { subdivision, includeToday })addBusinessDays(date, days, country, { subdivision })businessDaysBetween(startDate, endDate, country, { subdivision, inclusive })schoolHolidays({ country, subdivision, year })&fetchSchoolHolidays({ country, subdivision, year, live })with bundled KMK school break windows (data/seed.json) and allowlisted live HTTPS refresh fromhttps://ferien-api.de/api/v1/holidays/{state}/{year}.
Related MCP server: holidays-mcp
Quickstart
Node.js ESM
import {
holidaysForYear,
isHoliday,
isBusinessDay,
nextBusinessDay,
addBusinessDays,
businessDaysBetween,
schoolHolidays,
gregorianEaster,
orthodoxEaster
} from '@shadojus/open-holidays-calendar';
console.log(gregorianEaster(2026)); // "2026-04-05"
console.log(orthodoxEaster(2026)); // "2026-04-12"
const bavariaHolidays = holidaysForYear('DE', { year: 2026, subdivision: 'DE-BY' });
console.log(`Bavaria has ${bavariaHolidays.length} statutory holidays in 2026.`);
console.log(isHoliday('2026-06-04', 'DE', { subdivision: 'DE-BY' }));
// -> { date: '2026-06-04', name: 'Corpus Christi', localName: 'Fronleichnam', ... }
console.log(addBusinessDays('2026-04-02', 1, 'DE')); // "2026-04-07" (skips Good Friday..Easter Monday)
console.log(businessDaysBetween('2026-04-01', '2026-04-10', 'DE', { subdivision: 'DE-BY' }));Command-Line Interface (CLI)
# List all 32 supported countries and subdivision counts
node src/cli.mjs countries
# Statutory holidays for Saxony (DE-SN) in 2026
node src/cli.mjs holidays DE 2026 --subdivision DE-SN
# Check a specific date
node src/cli.mjs check 2026-11-18 DE --subdivision DE-SN --json
# Calculate net business days between two dates
node src/cli.mjs between 2026-04-01 2026-04-10 DE --subdivision DE-BY
# Add 10 working days for an SLA deadline
node src/cli.mjs add 2026-12-18 10 DE --subdivision DE-BY
# Retrieve school holiday windows
node src/cli.mjs school --country DE --subdivision DE-BY --year 2026HTTP REST API Server (OpenAPI 3.1.0)
PORT=3000 node src/server.mjsGET /health— Service health checkGET /openapi.json— OpenAPI 3.1.0 specificationGET /v1/countries— Supported countries, subdivisions, and statutory sourcesGET /v1/holidays/:country/:year?subdivision=DE-BY— Public holidays with SHA-256ETag&304 Not ModifiedGET /v1/check?date=2026-06-04&country=DE&subdivision=DE-BY— Holiday/weekend/business-day checkGET /v1/business-days/between?startDate=2026-04-01&endDate=2026-04-10&country=DE&subdivision=DE-BYGET /v1/business-days/add?date=2026-04-02&days=5&country=DE&subdivision=DE-BYGET /v1/school-holidays?country=DE&subdivision=DE-BY&year=2026
Model Context Protocol (MCP 2024-11-05)
node src/cli.mjs --mcpExposes tools list_countries, holidays_for_year, check_date, business_days_between, add_business_days, school_holidays, computus_easter, and subdivision_matrix over JSON-RPC 2.0 stdio.
Python Package (shadojus-holidays-calendar)
See python/README.md for the zero-dependency Python stdlib library and CLI.
Testing & Verification
node tools/build-data.mjs --check
node --test test/contract.test.mjs
python -m unittest discover -s python/tests -p "test_*.py"License
MIT © shadojus
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Public holidays for 250 countries, regions and stock markets; business days and SLA due times.
11Public holidays for 150+ countries, business-day maths and timezone lookup
Public holidays and working-day maths for 200+ countries, cross-checked across three providers.
Business-day, SLA, cron and recurrence calculations — offline, holiday-aware, no network.
Related MCP Servers
- AlicenseAqualityDmaintenanceA server for business day arithmetic and SLA calculations, supporting holidays for ~150 countries, plus cron and recurrence-rule parsing.14MIT
- AlicenseAqualityDmaintenanceProvides real, official public holiday data for ~100 countries with tools to list holidays for a year and check if a specific date is a holiday. Free, no API key required, powered by Nager.Date.2MIT
- AlicenseNot gradedqualityDmaintenanceReal public/bank/school holiday lookup for 206 countries via a rule-based calendar engine (moveable holidays like Easter computed astronomically, not guessed). Priced per call via x402/USDC on Base.MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying public holiday data by country and year, checking if today is a holiday, and listing upcoming holidays through the MCP protocol.66 npmMIT