Guide · Chile

Chile open data APIs: which official sources you can query by API and MCP, and how to start

A map of the official Chilean sources you can query from your code or an AI agent (CMF, Central Bank, CNE, Coordinador Eléctrico, Diario Oficial, ChileCompra and more), how to find the right tool in one step and one real call per family. All through a single Better Llama MCP; most with no key or sign-up.

Which official Chilean sources are available by API and MCP

Today the Better Llama MCP has 10 tools for Chile. Each one wraps an institution's public API and returns normalized JSON (ISO dates, numbers as numbers, source and official link in every result). This table comes from the real search_tools response of 23 Nov 2026; each source name links to its guide:

Official source and guideDataTool and access
Comisión para el Mercado Financiero — API CMF BancosUF, observed dollar, euro, UTM, CPI, TMC and TIPget_chile_financial_indicators
No key (yours is optional)
Banco Central de Chile — Base de Datos Estadísticos (BDE)BDE series: dollar, policy rate, CPI, Imacec, GDP, unemploymentget_chile_central_bank_series
No key (yours is optional)
Dirección ChileCompra — API Mercado PúblicoTenders, purchase orders and Compra Ágilsearch_chile_public_tenders
Your free provider key
Comisión Nacional de Energía — API Bencina en LíneaGasoline, diesel and gas prices by stationfind_chile_fuel_prices
No key (yours is optional)
Coordinador Eléctrico Nacional — Sistema de Información Pública (SIP)Marginal cost, generation and electricity demandget_chile_electricity_market
No key (yours is optional)
Diario Oficial de la República de ChileLaws, decrees, notices and companies in each editionsearch_chile_official_gazette
No key
Chilexpress — APIs para desarrolladoresRegions, coverage, offices, quotes and trackingchilexpress_shipping
No key for regions and coverage; your key to quote and track
USGS Earthquake Hazards ProgramEarthquakes in Chile: magnitude, depth and Chile timeget_chile_earthquakes
No key
Better Llama (cálculo local con fuentes legales públicas)Holidays, business days, communes and RUTchile_calendar_and_rut
No key
Bolsa de Santiago — API Brain DataStock exchange indices, prices and tradesget_santiago_stock_exchange_data
Your free provider key

Access: 3 tools need no key, 4 use Better Llama's key (you may send your own), 1 needs your key only for some operations and 2 need your free provider key, because their terms say it is personal. The earthquakes tool uses the public USGS catalog (United States) and the holidays tool computes locally from the published laws.

Step by step: find the tool and make the first call

Step 1. Connect the MCP server

Use the MCP https://mcp.betterllama.com/mcp in your client (setup below) or call it over HTTP with JSON-RPC. No sign-up is needed during the beta.

Step 2. Find the tool with search_tools

search_tools searches by task, in Spanish or English. With curl, for example, «feriados» (holidays):

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": "search_tools", "arguments": {"query": "feriados"}}}'

Real, complete response (23 Nov 2026, 20:21, Chile time):

json
{
  "count": 1,
  "tools": [
    {
      "name": "chile_calendar_and_rut",
      "title": "Feriados, días hábiles, comunas y validación de RUT (Chile)",
      "country": "CL",
      "category": "utilidades",
      "access": "none",
      "provider": "Better Llama (cálculo local con fuentes legales públicas)",
      "example_arguments": {
        "operation": "sumar_dias_habiles",
        "startDate": "2026-12-15",
        "businessDays": 10
      }
    }
  ],
  "coverage": {
    "available": [
      "CL",
      "CO",
      "PE",
      "MX"
    ],
    "roadmap": []
  }
}

Other real searches the same day: «valor UF» returned 5 tools, CMF and Central Bank first; «licitaciones» (tenders) returned Mercado Público and Colombia's SECOP II; in English, “earthquakes” returned the earthquakes tool. {"category": "finanzas"} filters by category, and with no arguments it returns the 10 Chile tools.

Step 3. Call it with the example arguments

Every search_tools result includes example_arguments, so you can call the tool right away and adjust later. In Python, the Chile catalog with its access type and a call to the CMF tool with its example arguments:

python
import json, requests

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

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

# 1. Which Chile tools exist and what access do they need?
catalog = call("search_tools", {})
for t in catalog["tools"]:
    if t["country"] == "CL":
        print(f'{t["category"]:<17} {t["access"]:<7} {t["name"]}')

# 2. Use the example arguments of one of them
uf = next(t for t in catalog["tools"] if t["name"] == "get_chile_financial_indicators")
row = call(uf["name"], uf["example_arguments"])["results"][0]
print(row["indicatorName"], row["date"], row["valueRaw"])

Real output (23 Nov 2026, 20:34, Chile time):

output
compras-publicas  byok    search_chile_public_tenders
finanzas          shared  get_chile_financial_indicators
finanzas          shared  get_chile_central_bank_series
energia           shared  find_chile_fuel_prices
logistica         mixed   chilexpress_shipping
energia           shared  get_chile_electricity_market
legal             none    search_chile_official_gazette
geociencias       none    get_chile_earthquakes
finanzas          byok    get_santiago_stock_exchange_data
utilidades        none    chile_calendar_and_rut
Unidad de Fomento (UF) 2026-11-23 41.391,69

If a tool needs your personal key (Mercado Público, Santiago Stock Exchange, or Chilexpress quoting and tracking), send it in the argument or HTTP header shown on its tool page. It is used only for that request and never stored.

Step 4. Go deeper with each source's guide

Each family has a guide with every parameter, real responses and edge cases. They are at the end, grouped by topic.

One real call per data family

These are real calls to the production MCP, made on 23 Nov 2026 between 20:21 and 20:22 (Chile time). The last two show the error you get when the personal key is missing: it says which key to get and where to send it.

FamilyCallReal result
Finance (CMF)get_chile_financial_indicators {"source": "uf", "period": "current"}UF on 23 Nov 2026: CLP 41,391.69
Finance (Central Bank)get_chile_central_bank_series {"indicators": ["dolar", "tpm"], "latestOnly": true}Observed dollar on 23 Nov 2026: CLP 1017.17; policy rate: 4.5%
Energy (CNE)find_chile_fuel_prices {"comunas": ["Providencia"], "fuels": ["93"], "maxItems": 3}Gasoline 93 at COPEC Pedro de Valdivia 2142, Providencia: CLP 1,504 per litre (reported 19 Nov 2026, 09:02)
Energy (Coordinador)get_chile_electricity_market {"dataset": "costo_marginal_online", "maxItems": 3}Online (preliminary) marginal cost by bus: BA S/E LATORRE 15KV C1, 22 Nov 2026, 00:45: 0.01877 USD/MWh
Regulations (Diario Oficial)search_chile_official_gazette {"fromDate": "2026-11-23", "toDate": "2026-11-23", "sections": ["normas_generales"], "maxItems": 3}Edition 44606 of 23 Nov 2026: Law 21,855, amending the personal data protection law (CVE 2907953)
Logistics (Chilexpress)chilexpress_shipping {"operation": "regiones"}16 regions with their Chilexpress code and INE number
Earth sciences (USGS)get_chile_earthquakes {"minMagnitude": 4.5, "maxItems": 3}Magnitude 4.5, 54 km NNE of Calama, Chile, 22 Nov 2026, 18:47 Chile time, 123 km deep
Utilities (holidays)chile_calendar_and_rut {"operation": "es_feriado", "dates": ["2026-12-08", "2026-12-25"]}8 Dec 2026: Inmaculada Concepción, not a business day; 25 Dec 2026: Navidad (Christmas), mandatory day off
Public procurementsearch_chile_public_tenders {"source": "licitaciones", "tenderStatus": "activas", "maxItems": 3, "fetchDetails": false}Error without a ticket: asks for your free ChileCompra ticket in the ticket argument or the X-MercadoPublico-Ticket header
Santiago Stock Exchangeget_santiago_stock_exchange_data {"operation": "indices"}Error without a key: asks for your free Brain Data API key in the apiKey argument or the X-Bolsa-Api-Key header
  • The observed dollar is computed from the previous business day's trades, so its value is known before the day it applies to begins; the observed dollar guide explains that.
  • The Coordinador's “online” marginal cost is preliminary; for final values use the real marginal cost dataset (details in the electricity market guide).
  • Fuel prices are those each station reports to the CNE, with their update time in priceUpdatedAt.

What about the datos.gob.cl portal?

The State's official open data portal, datos.gob.cl, is a catalog of datasets published by public agencies, with its own catalog API (CKAN). On 23 Nov 2026 at 20:23, its package_search reported 3,162 datasets. It is useful to discover files (CSV, spreadsheets, PDF) and their metadata.

The tools in this guide solve a different problem: they query each institution's API live, with filters (date, commune, fuel, Diario Oficial section) and a uniform response, so an AI agent can answer without downloading or parsing files. They complement each other: if some data only exists as a file on datos.gob.cl, download it there.

Every source from your AI agent (MCP)

Add Better Llama's MCP server in your client (Claude, Cursor, VS Code or any other with remote MCP). One MCP brings search_tools and every tool in this guide, 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 is the UF worth today and what is Chile's policy rate?”, “Where is the cheapest 93 gasoline in Providencia?” or “Which laws were published today in Chile's Diario Oficial?” The agent picks the tool with search_tools and answers with the official figure and its source.

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

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 first on betterllama.com.

Frequently asked questions

Which Chilean open data APIs can I use?

Through the Better Llama MCP: CMF indicators (UF, dollar, UTM, CPI), Central Bank series, CNE fuel prices, the Coordinador Eléctrico Nacional electricity market, the Diario Oficial, Mercado Público tenders, Chilexpress, USGS earthquakes, the Santiago Stock Exchange and utilities for holidays, business days, communes and RUT.

Do I need an API key to query Chilean public data?

Mostly no. Of the 10 Chile tools, 7 work without your key; Chilexpress needs your key only to quote and track shipments, and Mercado Público and the Santiago Stock Exchange need your free key because their terms say it is personal.

How do I find the right tool?

Call search_tools with what you need, in Spanish or English, for example “valor UF”, “licitaciones” or “earthquakes”. It returns the tool name, the source, the access type and ready-to-use example arguments.

How is this different from datos.gob.cl?

datos.gob.cl is the State's official dataset catalog (files and their metadata). Better Llama's tools query each institution's API live with filters and a uniform JSON response, built for code and AI agents. They complement each other.

Is the data official?

Yes: every result carries the source institution and an official link. Better Llama does not change the values; it only normalizes formats. The exceptions are earthquakes, which come from the United States Geological Survey (USGS), and holidays, which are computed from the published laws.

Is it free?

Yes, during the beta: no sign-up and a limit of 60 requests per minute per IP. If paid plans come later, they will be announced first on betterllama.com.

Is there data for other countries?

Yes. The same MCP has SECOP II and the TRM for Colombia, BCRP series for Peru and Banxico indicators for Mexico. search_tools finds them too.

Every guide, by topic

Finance and indicators

Public procurement

Energy

Regulations and logistics

Earth sciences

Utilities: calendar, communes and RUT

Other countries: Colombia, Peru and Mexico

This guide is also available en español.