Guide · Chile utilities

Chile public holidays API: 2026 holidays, business days between dates and RUT validation as JSON

How to get Chile's public holidays from your code or an AI agent: which holidays fall in 2026, which are mandatory days off, how to check whether a date is a holiday, how many business days lie between two dates and when a deadline falls, as clean JSON with Better Llama's MCP tool, with no key.

What are Chile's public holidays and who sets them?

Chile's public holidays are set by law: each one has its own statute (for example Law 2,977 for several historical and religious holidays, or Law 21,357 for the National Day of Indigenous Peoples). Some are mandatory days off for retail under Law 19,973: in 2026, January 1, May 1, September 18 and 19, and December 25.

Computing them by hand has traps. Holy Week depends on the date of Easter; Saint Peter and Saint Paul and the Encuentro de Dos Mundos move to a Monday under Law 19,668; the Indigenous Peoples' day falls on the winter solstice; and some holidays apply only in one region or commune, such as June 7 in Arica y Parinacota or August 20 in Chillán and Chillán Viejo. Election days are also holidays (Law 18,700), and December 31 is a holiday for banks only.

So to count business days, work out a legal deadline or schedule deliveries, it pays to query a source that already applies those rules instead of keeping a fixed list in your code.

Better Llama's holidays tool (over MCP)

Our Holidays, business days and RUT tool, chile_calendar_and_rut, computes Chile's public holidays from the laws that establish them and returns the result ready to use:

  • National, regional and local holidays from 2022 to 2035, with name, type, scope, legal basis and whether they are mandatory days off.
  • Whether one or more dates are a holiday, a weekend or a business day, applying the region or commune you give.
  • Business days between two dates and the date after adding or subtracting business days, optionally counting Saturdays as business days (details, legal deadlines and edge cases in the Chile business days API guide).
  • Regions, provinces and communes with their CUT code (details in the Chile communes API guide), and RUT validation or check-digit calculation.

It is computed locally by the server, so it does not depend on another website being up. Use it as an MCP tool from Claude, Cursor or other agents, or over HTTP with JSON-RPC from any language.

Step by step: get holidays and business days

Step 1. Choose the operation

The operation argument sets what to compute: feriados (holidays), es_feriado (is it a holiday), dias_habiles (business days), sumar_dias_habiles (add business days), regiones, provincias, comunas or validar_rut. These are Chile's 2026 public holidays as the tool returns them for {"operation": "feriados", "years": ["2026"]} (names come in Spanish):

Date (2026)HolidayScope
Año Nuevonational, mandatory day off
Viernes Santonational
Sábado Santonational
Día Nacional del Trabajonational, mandatory day off
Día de las Glorias Navalesnational
Asalto y Toma del Morro de Aricaregional (Arica y Parinacota)
Día Nacional de los Pueblos Indígenasnational
San Pedro y San Pablonational
Día de la Virgen del Carmennational
Asunción de la Virgennational
Nacimiento del Prócer de la Independencia (Bernardo O'Higgins)local (Chillán and Chillán Viejo)
Independencia Nacionalnational, mandatory day off
Día de las Glorias del Ejércitonational, mandatory day off
Encuentro de Dos Mundosnational
Día Nacional de las Iglesias Evangélicas y Protestantesnational
Día de Todos los Santosnational
Inmaculada Concepciónnational
Navidadnational, mandatory day off

With no region, the list includes regional and local holidays, marked with scope «regional». If you give a region or commune, only the ones that apply there are used.

Step 2. Connect the MCP server

Use the MCP https://mcp.betterllama.com/mcp in your client or call it over HTTP with JSON-RPC, as in the examples. This tool needs no key, and no account or sign-up is required during the beta.

Step 3. Build your query

ParameterWhat it does
yearsYears to list with feriados (2022 to 2035). Empty = current year
fromDate / toDateRange (YYYY-MM-DD, inclusive) for dias_habiles or to filter feriados
datesDates to check with es_feriado. Empty = today, Chile time
startDate / businessDaysFor sumar_dias_habiles: start date (counting starts the next day) and business days to add (negative = subtract)
region / comunaApplies regional or local holidays. Region by code (13), abbreviation (RM) or name; commune by name or CUT code
includeBankCounts December 31, a bank-only holiday (off by default)
saturdayIsBusinessDayCounts Saturdays as business days, for deadlines that include them
rutsRUTs to check with validar_rut (up to 5,000), with or without dots and hyphen

Real example: August 20, 2026 is a holiday with "comuna": "Chillán", but a business day with no commune. December 31, 2026 is a business day by default and a bank holiday with "includeBank": true.

Step 4. Call the tool with curl

A JSON-RPC POST returns the result as JSON. This call counts the business days in December 2026:

curl
curl -s https://mcp.betterllama.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "chile_calendar_and_rut", "arguments": {"operation": "dias_habiles", "fromDate": "2026-12-01", "toDate": "2026-12-31"}}}'

The same in Python

The holidays left in 2026, the business days in December and a 10-business-day deadline:

python
import json
import requests

URL = "https://mcp.betterllama.com/mcp"
HEADERS = {"Accept": "application/json, text/event-stream"}

def call(arguments):
    body = {"jsonrpc": "2.0", "id": 1, "method": "tools/call",
            "params": {"name": "chile_calendar_and_rut", "arguments": arguments}}
    resp = requests.post(URL, json=body, headers=HEADERS, timeout=60)
    resp.raise_for_status()
    return json.loads(resp.json()["result"]["content"][0]["text"])

holidays = call({"operation": "feriados", "fromDate": "2026-11-21", "toDate": "2026-12-31"})
for f in holidays["results"]:
    print(f["date"], f["weekday"], f["name"])

business = call({"operation": "dias_habiles", "fromDate": "2026-12-01", "toDate": "2026-12-31"})
print("Business days in December:", business["results"][0]["businessDays"])

deadline = call({"operation": "sumar_dias_habiles", "startDate": "2026-12-15", "businessDays": 10})
print("10 business days after Dec 15:", deadline["results"][0]["resultDate"])

Real output (November 21, 2026, 12:27 Chile time; weekday and holiday names come in Spanish):

output
2026-12-08 martes Inmaculada Concepción
2026-12-25 viernes Navidad
Business days in December: 21
10 business days after Dec 15: 2026-12-30

From JavaScript or any other language, a POST with the same JSON-RPC body is all you need (for example, with fetch).

Validate a RUT

The same tool checks the RUT (Chilean tax ID) check digit with the modulo 11 algorithm, without looking up any personal data. With the arguments {"operation": "validar_rut", "ruts": ["76.086.428-5", "12.345.678-9"]}, the real results are:

json
[{"input": "76.086.428-5", "valid": true, "body": 76086428, "dv": "5", "expectedDv": "5",
  "normalized": "76086428-5", "formatted": "76.086.428-5", "personType": "persona_juridica"},
 {"input": "12.345.678-9", "valid": false, "body": 12345678, "dv": "9", "expectedDv": "5",
  "personType": "persona_natural", "error": "dígito verificador incorrecto"}]

Accepted formats, common errors, computing the check digit and batch validation: Chile RUT validation API guide.

Use the holidays API from an AI agent (MCP)

Add the Better Llama MCP server to your client (Claude, Cursor, VS Code or any other client with remote MCP). One MCP brings chile_calendar_and_rut and the rest of the catalog, with no sign-up during the beta.

Cursor · mcp.json
{
  "mcpServers": {
    "better-llama": {
      "url": "https://mcp.betterllama.com/mcp"
    }
  }
}
Claude Code
claude mcp add --transport http better-llama https://mcp.betterllama.com/mcp

Setup for Claude, Codex, Gemini CLI, Windsurf, VS Code and other clients: connect your agent.

Ready-to-run Python and Node.js examples, with config files for each client: examples repository on GitHub.

Then ask, for example: “What date is 10 business days after December 15, 2026 in Chile? Take public holidays into account.”

Beta: free and with no sign-up while we test the service.

Which fields it returns

With feriados, each row in results has date, weekday, name, type (civil or religious), scope (national or regional), irrenunciable (mandatory day off) and legalBasis; regional ones add regionCode, comunaCodes and a note. With es_feriado, each date has isHoliday, isWeekend, isBusinessDay and the holidays that fall that day. The response also includes count, warnings, attribution, source and retrievedAt.

Real, complete response to the curl call above (November 21, 2026, 12:23 Chile time). December 2026 has 31 days, 21 business days, 8 weekend days and 2 holidays on weekdays:

json
{
  "tool": "chile_calendar_and_rut",
  "count": 1,
  "results": [
    {
      "kind": "dias_habiles",
      "fromDate": "2026-12-01",
      "toDate": "2026-12-31",
      "calendarDays": 31,
      "businessDays": 21,
      "weekendDays": 8,
      "holidaysOnWorkdays": 2,
      "holidays": [
        "2026-12-08 Inmaculada Concepción",
        "2026-12-25 Navidad"
      ],
      "saturdayIsBusinessDay": false,
      "source": "Cálculo local según la legislación chilena (Código del Trabajo y leyes citadas en legalBasis); fechas electorales según Ley 18.700."
    }
  ],
  "warnings": [],
  "stopReason": "completed",
  "attribution": "Calculado por Better Llama a partir de leyes de feriados y la División Político-Administrativa publicadas por el Estado de Chile.",
  "source": "https://betterllama.com/",
  "retrievedAt": "2026-11-21T15:23:35.585Z"
}

Pricing

Free during the beta, with no sign-up and a limit of 60 requests per minute per IP. If paid plans come later, we will announce them on betterllama.com first. This tool needs no key.

Frequently asked questions

Is there an API for Chile's public holidays?

Yes. Better Llama's chile_calendar_and_rut tool returns Chile's public holidays from 2022 to 2035 as JSON, over MCP or JSON-RPC, with no key. It covers national, regional and local holidays, with their legal basis and whether they are mandatory days off.

How many public holidays does Chile have in 2026?

According to the tool, 16 national holidays, plus 2 that apply only in part of the country: June 7 in the Arica y Parinacota region and August 20 in Chillán and Chillán Viejo. Several fall on a weekend, such as June 21 and November 1 (Sunday).

Which 2026 holidays are mandatory days off?

January 1, May 1, September 18 and 19, and December 25, under Law 19,973. Every holiday carries the irrenunciable field in the answer.

How do I count business days between two dates in Chile?

Call chile_calendar_and_rut with operation «dias_habiles», fromDate and toDate. It excludes weekends and holidays; for example, December 2026 has 21 business days. If your deadline counts Saturdays, use saturdayIsBusinessDay.

How do I add business days to a date?

Use operation «sumar_dias_habiles» with startDate and businessDays. Counting starts the day after startDate: 10 business days after December 15, 2026 is Wednesday, December 30.

Is December 31 a holiday in Chile?

Only for banks. By default the tool treats it as a business day; with includeBank it counts it as a bank holiday.

Do I need a key for the holidays API?

No. It is computed locally by the Better Llama server, free during the beta, with a limit of 60 requests per minute per IP.

Can I validate a RUT with the same API?

Yes. With operation «validar_rut» and up to 5,000 RUTs per call, the tool checks the check digit and returns the normalized and formatted RUT. It does not look up who the RUT belongs to.

Can I use the holidays API from Claude, Cursor or another AI agent?

Yes. Add the Better Llama MCP server (https://mcp.betterllama.com/mcp) to your client and the agent can use chile_calendar_and_rut to check holidays, count business days or work out deadlines in natural language.

Other guides

This guide is also available en español.