Gasoline and diesel prices (CNE)
Current price of 93, 95 and 97 gasoline, diesel, kerosene, LPG and CNG at every station in Chile, by commune, brand or distance.
find_chile_fuel_prices
Use it over MCP
- Connect the server
https://mcp.betterllama.com/mcpin your client (setup per client). - Ask your agent, for example:
- «Where is the cheapest 95 gasoline in Ñuñoa?»
- «Diesel within 5 km of Plaza Italia, sorted by price»
- Or call the tool
find_chile_fuel_priceswith these arguments:
{
"comunas": [
"Providencia"
],
"fuels": [
"93"
],
"maxItems": 5
}This tool needs no key.
Beta: free and with no sign-up while we test the service.
Direct HTTP call (JSON-RPC)
Without an MCP client, POST to the same server:
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": "find_chile_fuel_prices", "arguments": {"comunas": ["Providencia"], "fuels": ["93"], "maxItems": 5}}}'import json, requests
# Call a Better Llama MCP tool over HTTP (JSON-RPC)
URL = "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(URL, json=body, headers=HEADERS, timeout=120)
r.raise_for_status()
result = r.json()["result"]
data = json.loads(result["content"][0]["text"])
if result.get("isError"):
raise RuntimeError(data["error"])
return data
data = call("find_chile_fuel_prices", {"comunas": ["Providencia"], "fuels": ["93"], "maxItems": 5})
for row in data["results"]:
print(row)
print(data["attribution"])The answer text is JSON with results, count, warnings, attribution and source.
Example response
Real results returned by the source (2026-11-12), shortened:
{
"results": [
{
"kind": "precio",
"stationCode": "pe1312302",
"brand": "ARAMCO",
"operator": "Esmax Red Limitada",
"region": "Metropolitana de Santiago",
"regionCode": "13",
"comuna": "Providencia",
"comunaCode": "13123",
"address": "Eliodoro Yañez 921",
"latitude": -33.433724499949456,
"longitude": -70.62296569347382,
"inMaintenance": false,
"mapsUrl": "https://www.google.com/maps/search/?api=1&query=-33.433724499949456,-70.62296569347382",
"officialUrl": "https://www.bencinaenlinea.cl",
"dataSource": "Comisión Nacional de Energía (CNE), Bencina en Línea – precios informados por cada estación de servicio",
"retrievedAt": "2026-11-12T20:01:55.272Z",
"fuelCode": "93",
"fuelName": "Gasolina 93",
"serviceType": "autoservicio",
"price": 1534,
"unit": "$/L",
"priceUpdatedAt": "2026-10-22T08:49:24"
}
],
"attribution": "Fuente: Comisión Nacional de Energía (CNE), Bencina en Línea — https://api.cne.cl"
}Parameters
| Argument | Description | Type |
|---|---|---|
output | Output — precios = one row per station and fuel (ideal for «where is it cheapest?»); estaciones = one row per station with all its prices. Values: precios, estaciones; Default: "precios" | string |
fuels | Fuels — Empty = all. Values: 93, 95, 97, DI, KE, GLP, GNC | array<string> |
serviceType | Service — Filter by full-service or self-service price. Values: todos, asistido, autoservicio; Default: "todos" | string |
regions | Regions — CNE code (13) or name (Valparaíso, Biobío, RM…). Accents and case are ignored. Empty = all of Chile. | array<string> |
comunas | Communes — Name (Providencia, Ñuñoa…) or code. Empty = all. | array<string> |
brands | Brands — Copec, Shell, Aramco, Petrobras, Abastible… Empty = all. | array<string> |
latitude | Latitude — Optional: reference point used to compute distance (e.g. -33.4263). | string |
longitude | Longitude — Optional (e.g. -70.6170). | string |
radiusKm | Radius (km) — Optional: only stations within this radius of the point. Max: 3000 | integer |
sortBy | Sort — Default: distance if you give a point; otherwise price (precios) or unsorted (estaciones). Values: precio, distancia, ninguno | string |
includeMaintenance | Include stations under maintenance — Skipped by default. Default: false | boolean |
maxItems | Maximum number of results to return (1-200). Default 20. Default: 20; Max: 200 | integer |
Source and attribution
Fuente: Comisión Nacional de Energía (CNE), Bencina en Línea — https://api.cne.cl Source site: api.cne.cl.
FAQ
Which fuels and stations does it cover?
Gasoline 93, 95 and 97, diesel, kerosene, LPG and CNG at every gas station in Chile, from the Comisión Nacional de Energía (CNE) Bencina en Línea API. Each price says whether it is full-service or self-service.
Do I need a CNE account?
No. The server queries the CNE API with a Better Llama account and caches answers for 15 minutes. Each station reports its own prices to the CNE.
How fresh are the prices?
Each call queries the CNE API live. Prices are reported by each station, which is responsible for their accuracy; the priceUpdatedAt field shows the last reported update in Chile time.
How much does it cost?
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.