leit.is/mcp
leit.is as a tool for every AI agent. Connect Claude, ChatGPT, Copilot or your own agent to Iceland's local knowledge graph. One key for REST and MCP.
Naudokite leit.is su ChatGPT arba Claude: viena eilutė, kurią reikia nukopijuoti →
Frítt
Grunnur
Fag
Fyrirtæki
Agent-to-agent (A2A)
Hver staður á leit.is er líka sjálfstæður agent sem aðrir agentar geta talað við: spyrja um opnunartíma og verð, biðja um bókun eða tilboð. Agent Card: https://leit.is/a2a/<slug>/.well-known/agent.json · skrá: https://leit.is/a2a/agents.json · JSON-RPC message/send á https://leit.is/a2a/<slug>. Sömu lyklar og mörk og REST/MCP.
MCP
Streamable HTTP, án lotu (stateless): POST https://leit.is/mcp. Sama slóð í Claude, ChatGPT og öðrum sem tala MCP. Lykill er valfrjáls: Authorization: Bearer leit_…
curl -X POST https://leit.is/mcp -H "content-type: application/json" -H "accept: application/json, text/event-stream" -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Notkun
curl -H "Authorization: Bearer leit_…" "https://leit.is/api/search?q=pípari+í+Kópavogi"
curl -H "Authorization: Bearer leit_…" -X POST https://leit.is/api/ask -H "content-type: application/json" -d '{"question":"Hvaða apótek er opið núna?"}'Án lykils: 60 köll/mín og 1.000/dag á hvert IP. Svarhausar: x-ratelimit-*, x-quota-*.
Limits · Takmörk
| Data API (search, place, compare, trends) | 60/min · 1,000/day without a key; per tier with a key (x-ratelimit-* headers) |
| AI endpoints (ask, decode, ingest, business agent, Tilboð intake) | 30 per 10 min · 150/day per IP without a key; 5× with a key (x-ai-remaining, retry-after) |
| Transit | /api/transit/departures and next_departures: Strætó GTFS timetable, refreshed weekly, not real time |
| MCP over HTTP | Same meter as the data API; AI-backed tools (ask_iceland, ask_place) count against the AI budget |
| Retry-After | Every 429 (data API, AI budget, anonymous meter) carries Retry-After in seconds; honour it before retrying |
| Idempotency-Key | Send the same Idempotency-Key header when repeating POST /api/notices; the first response is replayed (Idempotent-Replayed: true) instead of creating a duplicate |
| Coverage | /api/search returns meta.coverage (places in the index, in the requested town, with hours) so a missing hit is not read as "does not exist"; ?format=csv downloads the hits with a source line |
| Kennitala | /kt/{kennitala} resolves a company kennitala to its place page (302) or to the official register; check_kennitala and explain_term MCP tools are deterministic (no model) |
| Caching | Public pages carry ETag and Cache-Control: public, max-age=600; send If-None-Match |
Agents: start at /skill.md (the instruction an assistant follows when it helps a person: what is here, the two ways in, the rules), /llms.txt (plain text: what this is, how to query it, attribution policy) and/a2a/agents.json (A2A directory; each place has /a2a/{slug}/.well-known/agent.json). Please keep the attribution when you reuse data.
Tools
search_places | Search businesses, places and public bodies in Iceland. Understands Icelandic, Polish and English. Returns name, category, address, phone, hours, open-now status, languages spoken, and provenance. |
get_place | Full record for one place by slug: hours, offerings with prices, attributes, contact, verification status. |
is_open | Whether a place is open right now (or at a given ISO datetime), accounting for Icelandic public holidays. |
free_times | The next free times at a place that takes its bookings through Noona, the booking service most Icelandic salons, clinics and many restaurants use. For a salon, clinic or workshop: up to four services, each with its name, its length in minutes and its next three free times within seven days. For a restaurant: free tables for two today and tomorrow. Times are Icelandic time (UTC), asked of Noona at most ten minutes ago. Also returns booking_url, the place's page at Noona: the person makes the booking there themselves. This tool books nothing and holds no time, and a time can be taken before the person gets there. Only for places whose booking_url (in search_places and get_place) is a noona.is address; any other place gives an error. |
ask_iceland | Ask a natural-language question about daily life in Iceland (where, when open, how much, which office). Returns a grounded answer with cited places. Answers in the asker's language. |
ask_place | Talk to a specific business's AI front desk (menu, stock, booking, policies). Answers only from that business's verified knowledge. |
request_quotes | Create a quote request for tradespeople or services (plumber, electrician, painter, translator...). Routed to matching businesses, who reply to the contact given. |
iceland_today | Today's Icelandic public-holiday status and the list of holidays for the year, plus pools and pharmacies open right now. |
search_guides | How things work in Iceland for residents and newcomers: kennitala, payslips, health centres, tax returns, renting, housing benefit, school, preschool waiting lists, driving licence, car ownership, sending money. Returns guide text in the requested language (is, pl, en, uk, lt) with official sources. |
get_guide | Full text of one guide by slug (kennitala, launasedill, heilsugaesla, skattframtal, leiga, husnaedisbaetur, skoli, leikskoli, okuskirteini, bill, senda-peninga) in a language (is, pl, en, uk, lt). |
events_near | Upcoming events in Iceland near a point, at a place (slug), or in a town: concerts, theatre, arts, sports, community, stand-up, exhibitions, kids. Source: Gjugg/Mobilitus feed (attribution required), Auðvitað as fallback. |
place_day | Everything known about a place on a date: weather, events, school/holiday calendar, traffic (Auðvitað context layer). Needs AUDVITAD_API_KEY. |
compare_prices | Ranked Icelandic price comparisons (leit.is/bera-saman): mortgages (verðtryggt/óverðtryggt rates by bank and pension fund), consumer and car loans (ÁHK), electricity retailers (kr/kWh), internet and mobile plans. Every row carries its source URL and verification date; rows older than 60 days are flagged stale. |
road_conditions | Live Icelandic road conditions from Vegagerðin: closed, impassable or slippery segments, optionally filtered by a road or pass name (Hellisheiði, Holtavörðuheiði…). |
weather_forecast | Official Veðurstofa Íslands hourly forecast for a station (1 = Reykjavík): temperature, wind, weather in Icelandic. |
air_quality | Latest air-quality readings per Icelandic monitoring station (PM10, PM2.5, NO2, SO2, H2S) with a simple label (góð/sæmileg/slæm). Source: Umhverfisstofnun. |
list_business_agents | Businesses on leit.is that expose an A2A agent (Agent Card URL + JSON-RPC endpoint), optionally by category. Use ask_place for a direct question, or the A2A endpoint for agent-to-agent conversations. |
iceland_trends | Leitarvísitala: aggregated demand signals from leit.is (what people in Iceland ask for, by intent, language and category) over the last N days. No personal data. |
check_kennitala | Validate an Icelandic kennitala (ten-digit ID): well formed or not, person or company, the date it encodes; for a company, the leit.is place when listed plus official register links. Deterministic, no model. Never returns people's data. |
explain_term | Explain an Icelandic administrative term (kennitala, VSK, ehf., staðgreiðsla, persónuafsláttur, lífeyrissjóður, stéttarfélag, lögheimili…) in is/pl/en/uk/lt from the leit.is glossary. Pass a term or a sentence; returns matching definitions with links. Deterministic. |
latest_news | Latest headlines from Icelandic media (national outlets, regional papers, official bodies; also RÚV and others in English and Polish), read from the outlets' own RSS feeds. Returns headline, the outlet's own short summary, outlet name, time, section, towns named, the link to the outlet, and the same story at other outlets. Never the article text: send the user to the outlet's link and name the outlet. Use query to search the last days (Icelandic inflections match), city for one town's news, top=true for the stories most outlets cover. |
next_departures | Next bus departures in Iceland (Strætó) from a named stop or from the stops nearest a point. Each departure has route, headsign, platform, time and minutes until it leaves; live=true means the time is Strætó's real-time prediction for a tracked bus (delay_min says how late), otherwise it is the timetable. on_demand=true means the trip must be booked by phone. |
cinema_showtimes | What is on at Icelandic cinemas (Sambíóin Egilshöll, Kringlan and Akureyri; Smárabíó; Laugarásbíó; Bíó Paradís): the films and showtimes of one day, or every coming showing of one film, each with the link to the cinema's own ticket page; or the films on their way with premiere dates. Times are Icelandic time (UTC). Read from the cinemas' own sites every few hours; the cinema's page decides, and tickets are bought there. |
search_products | Search products sold by Icelandic web shops (electronics, home, clothing, sports, children, books, health and beauty, food, pets, DIY and garden, jewellery and gifts). Returns title, price in ISK, the earlier price when the shop marks a discount, stock flag, shop name and the link to the product on the shop's own site. Results are spread over shops. Prices and stock are as the shop stated when leit.is last read it; the shop's page decides, and buying happens there. Query in Icelandic works best (catalogues are mostly Icelandic); keep brand and model names as they are. |
find_jobs | Job vacancies in Iceland, read from the job boards alfred.is, storf.is and tvinna.is and from the state's Starfatorg (island.is), newest first. Returns for each job: title, employer (and its place on leit.is when it is plainly the same business), town, postcode and street when given, employment (full, part, summer or temporary, when the board says), field of work when given, ad_language (is, en or pl: the language the ad is written in, when it is plain), posted date, deadline (YYYY-MM-DD) and apply: one link per board that carries the job. Jobs past their deadline are left out. The ad's text is not held: the person reads the ad and applies at the board's link; name the board. |
find_outdoors | Walking, running and cycling routes and outdoor areas in Iceland's capital area (Reykjavík, Kópavogur, Hafnarfjörður, Garðabær, Mosfellsbær, Seltjarnarnes, Kjós), from utumallt.is. Returns for each: name, kind (route or area), types (walk, run, cycle, ski, trail; or green, forest, shore, lake, mountain, history for an area), municipalities, distance_km, climb_m, duration, difficulty ('for everyone' or a step of 4), where it starts (lat, lng and the place's name), surfaces, whether it is lit, how to get there, what an area offers (toilets, playground, grill ...), its page on leit.is (url) and its page at the source (source_url) with the description, photos and the map of the route. With lat and lng the nearest come first, each with km_from_you. |
gift_ideas | Gift ideas for a person in Iceland, with real products from Icelandic web shops. Give what is known: the age, what the person likes, the budget, the occasion, a few words about them. Returns up to six ideas, each with a short label (in Icelandic), sometimes a line on why it fits, and three or four products from different shops (title, price in ISK, stock flag, shop, link to the product on the shop's own site), the budget range used when nothing fitted the budget and it was widened one step, up to two follow-up questions that would narrow the ideas, and page: the leit.is page with these answers filled in, to hand the person. Prices and stock are as the shop stated when leit.is last read it; buying happens at the shop. Experiences on sale as vouchers: find_deals. |
find_deals | Deals on sale now on leit.is (leit.is/kaup): vouchers that Icelandic businesses sell at a lower price for a while. Returns for each: slug, title, the seller and its place slug, town, category, price in ISK, the earlier price and the saving in ISK and per cent when the seller gave an earlier price (null when not), how many are sold, the last day of the sale, the last day the voucher can be used, and the deal's page. Ended and sold-out deals are left out. Titles and text are in the seller's own language, mostly Icelandic. Then get_deal for the seller's terms, and prepare_purchase for the link the person buys through. |
get_deal | One deal by slug, with everything its page states: what the buyer gets, the price, the earlier price and the saving, how many are sold and left, the last day of the sale, when the voucher can be used, the seller's own terms, the seller's address and phone, whether it is on sale and whether payment is open. A fact the record does not hold is the string "unknown" and is named in the unknown list: tell the person it is not known, never fill it in. |
prepare_purchase | Prepare the purchase of a deal for a person. Returns buy_url (the page the person opens to buy, with the quantity filled in), the total in ISK, who pays, and can_buy_now. The person pays there themselves: on leit.is, through iSpay, after signing in with electronic ID, and the money goes to the seller. This tool takes no personal data, creates no order and pays nothing; an assistant never pays or orders for the person. When can_buy_now is false, payment on leit.is is not open yet: say so plainly, and that the page lets the person leave an e-mail to be told when it opens. |
plan_bus_trip | Plan a bus trip in Iceland door to door with Strætó: walk to a stop, one bus or two (one change at most), walk to the destination. from and to accept a stop name, a place or business name, a town, or 'lat,lng'. Returns up to four options, earliest arrival first, each with the time to leave, arrival time, total minutes and the legs (walk minutes and metres; route, headsign, boarding stop and platform, departure, alighting stop, arrival). The first bus carries Strætó's live prediction when the bus is tracked. Also says how long walking the whole way takes when that is under 2.5 km. Timetable based, looks four hours ahead of the departure time. |
list_categories | The canonical category keys with Icelandic, Polish and English labels. |
Connect
Streamable HTTP endpoint: http://localhost:3001/mcp (run npm run mcp:http).
Stdio (Claude Desktop / Claude Code): npm run mcp, or in claude_desktop_config.json:
{"mcpServers":{"leit":{"command":"node","args":["/path/to/leit/src/mcp/stdio.ts"]}}}