chile-kit
ES Support

chile-kit

The toolkit for building software in Chile: RUT, pesos, IVA, regions and communes, banks, UF/UTM and Santiago dates. Typed, zero dependencies, with an MCP server for AI agents.

npm version CI status MIT license zero dependencies

Get started Explore 346 communes MCP for agents Buy me a coffee on Ko-fi

Install

npm install chile-kit
pnpm add chile-kit
yarn add chile-kit
bun add chile-kit

For AI agents

Give Claude, Cursor or any MCP client Chilean superpowers with one command. See MCP server.

claude mcp add chile-kit -- npx -y chile-kit-mcp

Agents reading docs can start at llms.txt.

Quick start

import { isValidRut, formatRut } from "chile-kit/rut";
import { formatCLP } from "chile-kit/clp";
import { splitGross } from "chile-kit/iva";
import { findCommune } from "chile-kit/regions";
import { formatChileDateTime } from "chile-kit/date";

isValidRut("12.345.678-5");          // true
formatRut("123456785");              // "12.345.678-5"
formatCLP(1234567);                  // "$1.234.567"
splitGross(9990);                    // { net: 8395, iva: 1595, gross: 9990 }
findCommune("nunoa")?.code;          // "13120"
formatChileDateTime(new Date());     // "04-12-2026 14:05" (Santiago time, on any server)

Modules

Design principles

En español

Utilidades chilenas para TypeScript y agentes de IA: validar RUT y dígito verificador, formatear pesos chilenos, calcular IVA, lista de regiones y comunas de Chile con código CUT, valor UF, UTM y dólar hoy, códigos de bancos y fechas en hora de Santiago.