Hari Libur Indonesia

v1.0.0
io.github.EzkielynaGroup/mcp-hari-libur-indonesia Checked 2 days ago Published 22 days ago

Indonesian holidays and cuti bersama 2025-2027 (SKB 3 Menteri) plus working-day math.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

daftar_libur Daftar hari libur / List holidays

Daftar libur nasional dan cuti bersama Indonesia per tahun (opsional per bulan), sesuai SKB 3 Menteri, lengkap dengan nomor SKB dan sumber. Lists Indonesian national public holidays and collective leave for 2025, 2026, 2027. Offline, free.

ParameterTypeDescription
year *integerYear (2025, 2026, 2027).
include_cuti_bersamabooleanInclude cuti bersama (collective leave). Default true.
monthintegerOptional month 1-12.

cek_tanggal Cek tanggal / Check a date

Cek apakah suatu tanggal libur nasional, cuti bersama, akhir pekan, atau hari kerja, beserta alasannya. Checks whether a date is a holiday, weekend or working day in Indonesia, with the reason. Default date: today (Asia/Jakarta).

ParameterTypeDescription
cuti_bersama_offbooleanTreat cuti bersama (collective leave) as a day off. Default true. Set false for businesses that work on cuti bersama.
datestringDate as YYYY-MM-DD (also DD-MM-YYYY, DD/MM/YYYY, or "today"/"hari ini" in Asia/Jakarta). Default today.
saturday_workingbooleanSaturday is a working day (6-day work week). Default false. National holidays on Saturday stay off.

hitung_hari_kerja Hitung hari kerja / Count working days

Menghitung jumlah hari kerja di antara dua tanggal (tidak termasuk akhir pekan, libur nasional, dan opsional cuti bersama). Counts Indonesian working days between two dates, inclusive of both by default. Reversed ranges are swapped.

ParameterTypeDescription
end *stringEnd date (inclusive). Date as YYYY-MM-DD (also DD-MM-YYYY, DD/MM/YYYY, or "today"/"hari ini" in Asia/Jakarta).
start *stringStart date. Date as YYYY-MM-DD (also DD-MM-YYYY, DD/MM/YYYY, or "today"/"hari ini" in Asia/Jakarta).
count_startbooleanCount the start date itself. Default true. Set false for "working days after start, up to and including end".
cuti_bersama_offbooleanTreat cuti bersama (collective leave) as a day off. Default true. Set false for businesses that work on cuti bersama.
saturday_workingbooleanSaturday is a working day (6-day work week). Default false. National holidays on Saturday stay off.

hari_kerja_berikutnya Tambah hari kerja / Add working days

Tanggal setelah N hari kerja dari suatu tanggal (untuk SLA, tenggat, estimasi pengiriman). N negatif = mundur. N=0 = hari kerja terdekat. Adds N Indonesian working days to a date (start date not counted), skipping weekends, holidays and optionally cuti bersama.

ParameterTypeDescription
n *integerWorking days to add (negative = go back, 0 = this date if it is a working day, else the next one).
cuti_bersama_offbooleanTreat cuti bersama (collective leave) as a day off. Default true. Set false for businesses that work on cuti bersama.
datestringStart date. Date as YYYY-MM-DD (also DD-MM-YYYY, DD/MM/YYYY, or "today"/"hari ini" in Asia/Jakarta). Default today.
saturday_workingbooleanSaturday is a working day (6-day work week). Default false. National holidays on Saturday stay off.