Portugal (public data)
io.github.ThiagoJacobLannes/portugal-mcp
Portugal public data: weather, INE, Parliament, contracts, SNS, fuel, transit, power cuts.
- active_incidents — What emergency services (civil protection, ANEPC) are responding to right now in Portugal, closest first.
Live occurrences of every kind: fires, road collisions, fallen trees, floods, rescues, with t
- bpstat_search — Find Banco de Portugal statistical series by keyword.
Examples: "euribor 12 meses", "taxa de juro novos empréstimos habitação", "dólar", "dívida pública",
"depósitos particulares", "preços habitação"
- bpstat_series — Observations of Banco de Portugal series (ids from bpstat_search).
Args:
series_ids: one or more series ids (max 10), e.g. [12559924].
last_n: latest observations per series (1-500). Ignored
- broadband_coverage — Which fixed broadband technologies reach a place in Portugal, according to ANACOM: fibre,
coaxial cable (DOCSIS 3.1 / 3.0) and copper with ADSL, with the date of the data.
Args:
near: a postal co
- bus_find_stops — Find Carris Metropolitana bus stops by name and/or near a coordinate.
Use this first whenever the user names a place, street, station or gives a location,
to get the stop_id needed by bus_next_arriva
- bus_line_info — Details of a Carris Metropolitana line: name, route ends, directions, municipalities.
Use for "where does line 4715 go?", "which bus goes from Cacilhas to Almada?", or to check
whether a line passes
- bus_next_arrivals — Upcoming buses at a Carris Metropolitana stop, real-time where available.
Use for "when is the next bus at X?" (get stop_id from bus_find_stops first).
Each arrival says whether it is "realtime" (liv
- bus_service_alerts — Service alerts (detours, works, strikes, stops not served) for Carris Metropolitana.
Use before recommending a trip, or when the user asks "is line X disrupted?". Filter by
line and/or stop; with no
- bus_vehicle_positions — Live GPS positions of the buses currently running on a Carris Metropolitana line.
Use for "where is the 3508 right now?" or to see how many buses are out on a line.
Each vehicle includes its position
- diario_republica — What the latest Diário da República issue published, with a link to each act.
Args:
series: 1 (laws, decree-laws, ordinances, government resolutions; default) or 2
(dispatches, notices, a
- earthquakes — Recent earthquakes recorded by IPMA.
Args:
region: "mainland" (mainland Portugal and Madeira) or "azores".
days: look back this many days (max 30).
min_magnitude: only quakes at or above
- election_results — Official results of a Portuguese election for the country, a district, a municipality or a parish.
Args:
election: "legislativas2025" (default), "legislativas2024", "legislativas2022",
"a
- electricity_grid — How much electricity mainland Portugal used on a day, the peak, and how much wind, solar and
hydro the distribution grid generated (E-REDES, 15-minute data, usually one day behind).
Args:
day: "Y
- electricity_local — Electricity in one place (mainland Portugal): billed consumption per month, and how often and
for how long the power went out there in recent years compared with the average municipality.
Args:
m
- electricity_price — Portugal's day-ahead wholesale electricity price (OMIE), per 15-minute period, in €/MWh.
Useful for indexed ("dynamic") tariffs: when is electricity cheapest to run the washing
machine or charge the
- ev_charger_detail — Everything about one MOBI.E charging site: all its points with live status, power,
connectors and price, plus operator contact, opening hours and accepted authentication
(app, RFID card, credit card..
- ev_chargers — Public EV charging sites near a point in Portugal (MOBI.E network), nearest first,
with live status and the price the network publishes for each charging point.
Use for "where can I charge near X?",
- find_medicine_near — One-shot answer to "I need medicine X in city Y — what do I do?" in Portugal.
Runs medicine_availability(medicine) and pharmacies(city or lat/lon), and returns: the shortage
status (compact), the pha
- fire_risk — Wildfire danger (RCM, risco de incêndio rural) for a municipality, today or tomorrow.
Args:
municipality: concelho name, e.g. "Sintra", "Monchique".
day: 0 = today, 1 = tomorrow.
Scale: 1 red
- fuel_prices — Cheapest fuel stations in Portugal for one fuel type, cheapest first (official DGEG prices).
Use for "where is diesel/petrol/LPG cheapest in Lisboa / near me / in Braga?". Give an
area as a district,
- fuel_station_detail — Full details of one fuel station: every fuel it sells with price and last update,
opening hours, services (car wash, shop, tyre air...) and payment methods.
Use after fuel_prices, with a station `id`
- fuel_types — List DGEG fuel types (id, name, unit) and the districts accepted by fuel_prices.
Only needed when unsure which fuel name to pass; fuel_prices also understands
"diesel", "petrol", "95", "98", "lpg".
- ine_indicator — Values of an INE indicator, latest periods first.
Args:
varcd: 7-digit indicator code from ine_search, e.g. "0008074".
place: geography name to keep, e.g. "Portugal", "Lisboa", "Norte", "Port
- ine_search — Find INE indicators by keyword (e.g. "inflação", "desemprego", "população", "rendas", "turismo").
Searches INE's catalogue of key indicators. Returns varcd codes to pass to ine_indicator.
Any other I
- lisbon_events — What's on in Lisbon: the city's official cultural agenda (exhibitions, concerts, theatre,
dance, cinema, guided visits, kids, festivals).
Args:
day: ISO date, e.g. "2026-11-14". Default today.
- lisbon_metro_status — Is the Lisbon Metro running normally right now? Status of the four lines (Amarela, Azul,
Verde, Vermelha) as Metropolitano de Lisboa publishes it, with the disruption text if any.
For timetables use
- lisbon_recycling — The nearest recycling points in Lisbon of a given kind.
Args:
lat, lon: where you are.
kind: "ecoponto" (paper, plastic, glass), "vidrao" (glass), "papel", "oleo" (used cooking oil),
- lisbon_street_works — Street works and public-space occupations in Lisbon: what is (or will be) blocking a street.
Two official sources: licensed temporary occupations of public space (filming, events,
scaffolding, contai
- local_accommodation — Look up the national register of local accommodation (Alojamento Local, RNAL).
Answers "is this flat/guesthouse registered?" and "how many AL are on my street?".
Args:
registration: the RNAL numb
- medicine_availability — Is a medicine in shortage in Portugal? Checks Infarmed's published availability information.
Use when someone can't find a medicine, or asks whether X is in shortage ("rutura",
"esgotado", "falta").
- medicine_help — Verified help lines in Portugal for medicine problems: 112, SNS 24, Linha 1400, Infarmed.
Use when someone can't find a medicine, needs urgent advice, or asks who to call. Each
line has its number, w
- municipality — A municipality (concelho): district, INE code, area, parishes, 2021 census, town-hall contacts.
- notable_trees — Classified trees of public interest (arvoredo de interesse público, ICNF): species, size, age.
Args:
municipality: list a municipality's trees (e.g. "Sintra"), or
near / lat / lon: the trees
- open_data_dataset — Details and downloadable files of one dados.gov.pt dataset (id or slug from open_data_search).
- open_data_preview — First rows of a CSV or JSON file hosted on dados.gov.pt (reads at most 512 KB).
Args:
url: a resource url from open_data_dataset (must be on dados.gov.pt).
rows: how many rows to return (1-10
- open_data_search — Search the datasets of Portugal's national open-data portal (dados.gov.pt).
Args:
query: e.g. "acidentes rodoviários", "escolas", "qualidade do ar", "alojamento local".
organization: optional
- parliament_deputies — Members of Parliament (deputados): party, constituency (círculo), status. Seats per party included.
Args:
name: part of the parliamentary or full name.
party: group acronym, e.g. "PSD", "PS",
- parliament_initiative — Full record of one initiative: every phase with dates, every vote with each group's position, text link.
Args:
initiative_id: the `id` from parliament_search (e.g. "356403"), or a reference like
- parliament_search — Search initiatives in the Portuguese Parliament: bills, resolutions, inquiries.
Args:
query: words in the title, e.g. "habitação", "IRS", "imigração".
type: e.g. "Projeto de Lei", "Proposta d
- parliament_votes — Recent plenary votes, with how each parliamentary group voted.
Args:
party: show this group's position on each vote (e.g. "PS", "CH"); only votes where it is recorded.
query: words in the ini
- pharmacies — Pharmacies in a Portuguese municipality, with which ones are on duty today and open now.
Use for "farmácia de serviço em X", "pharmacy open now near me", or to list pharmacies
to call. Each pharmacy
- porto_road_closures — Streets in Porto with traffic or parking restrictions active on a day (default today).
Args:
near: a street name ("Rua de Santa Catarina", matches part of it) or a Porto postal code
("400
- porto_sensors — Latest readings of Porto's street sensors: air quality, noise and weather.
Args:
kind: "air" (PM2.5, PM10, NO2, O3, CO in µg/m³), "noise" (LAeq in dB(A)), "weather"
(temperature, humidity
- post_offices — CTT post offices, postal agents and post boxes near a place, closest first (ANACOM register).
Args:
near: a postal code or municipality; or pass lat/lon.
kind: "stations" (post offices, with
- postal_code — Look up a Portuguese postal code (código postal, 'XXXX-XXX' or 'XXXX').
Returns district, municipality, locality and the streets the code covers, plus a central point.
- power_cuts — Planned power cuts (E-REDES maintenance works) for a postal code, municipality or parish.
Args:
postal_code: "2795-082" for that street, or "2795" for the whole postal area.
municipality: e.g
- protected_areas — Is this place in a protected area or Natura 2000 site? (mainland Portugal, ICNF)
Args:
near: a postal code or municipality (its centre is used); for a precise answer pass lat/lon.
Checks the Nati
- public_contracts — Search Portuguese public contracts (Portal BASE) for one year.
Args:
query: words in the contract object, e.g. "software", "limpeza", "ambulâncias".
buyer: public body name or 9-digit NIF, e.
- public_contracts_summary — Totals for one buyer or supplier in a year: number of contracts, total value, by procedure, top partners.
Args:
entity: name or 9-digit NIF of a public body or a company.
role: "buyer", "supp
- public_holidays — Portugal's public holidays for a year (default: this year), with weekday.
Always lists the national holidays. Pass `municipality` (a concelho, e.g. "Braga", "Lisboa",
"Funchal") to add its own munici