Skip to main content
Glama
Luxembourg MCP

Luxembourg MCP

by amirdaraee

Luxembourg MCP

CI PyPI License: MIT

Keyless Model Context Protocol access to Luxembourg public data.

Hosted endpoint — no install needed: point any MCP client at https://mcp.luxembourg-mcp.com/mcp (streamable HTTP). Or run it yourself with uvx luxembourg-mcp. Website: luxembourg-mcp.com

Luxembourg MCP turns fragmented public APIs and open datasets into 44 consistent tools that AI agents can call directly. It covers laws, official statistics, mobility, environmental measurements, parliament, accessibility, addresses, geospatial features, and the national open-data catalogue.

  • 44 MCP tools

  • 28 public data systems

  • No API keys or accounts

  • No scraping

  • Source URL returned with every result

  • Stdio and Streamable HTTP transports

Origin and credit

This project is directly inspired by Allemannsdata, created by Thomas Heggelund.

Heggelund's original idea was to give public data the same openness suggested by Norway's allemannsretten, the right to roam: public information should be straightforward to reach, combine, and use. Allemannsdata removes the repetitive integration work between agents and Norwegian public services by presenting many unrelated data sources through consistent, keyless MCP tools.

Luxembourg MCP applies that idea to the Grand Duchy. It is an independent implementation for Luxembourg, not a fork, official regional edition, or affiliated project. Credit for the original public-data-over-MCP catalogue concept belongs to Thomas Heggelund and Allemannsdata.

Related MCP server: mcp-gouv-fr

Available tools

Tool

Public source

Purpose

search_datasets

data.public.lu

Search the national open-data catalogue

get_dataset

data.public.lu

Inspect metadata and current resources

geocode_address

Geoportail

Resolve an official address

reverse_geocode

Geoportail

Find the nearest official address

list_geo_collections

Geoportail OGC API

Discover queryable geospatial layers

get_geo_features

Geoportail OGC API

Retrieve bounded GeoJSON features

get_weather_alerts

MeteoLux

Read current weather warnings

search_legislation

Legilux

Search legislation and consolidated laws

search_statistics

STATEC LUSTAT

Discover statistical dataflows

get_statistics

STATEC LUSTAT

Retrieve labelled SDMX observations

get_city_parking

Ville de Luxembourg

Read live city parking availability

list_cfl_parking

CFL

List Park and Ride facilities

get_cfl_parking

CFL

Read live P+R occupancy and free spaces

get_traffic

CITA

Read live motorway traffic measurements

get_water_levels

Water Management Administration

Read current water-station levels

get_air_quality

Environment Administration

Read national air-quality measurements

search_chamber_bodies

Chamber of Deputies

Search bodies, memberships, and roles

get_accessibility_figures

Digital Accessibility Observatory

Read national accessibility totals

get_accessibility_audits

Digital Accessibility Observatory

List recent public-sector audits

search_transit_stops

Public Transport Administration

Search nationwide GTFS stops

get_city_mobility

Ville de Luxembourg Maps

Retrieve mobility locations as GeoJSON

get_weather_observations

MeteoLux

Live temperature, wind, pressure at Findel

get_public_holidays

data.public.lu

Legal public holidays in four languages

search_parliamentary_questions

Chamber of Deputies

Search parliamentary questions and answers

get_housing_prices

Observatoire de l'Habitat

Advertised housing sale prices by commune

get_election_results

CTIE

2023 legislative election results

get_ev_charging

Chargy

Public EV charging with live availability

get_waste_collections

Environment Administration

Upcoming waste-collection dates by commune

get_weather_forecast

MeteoLux

Official forecast, UV index, sunrise and sunset

get_fuel_prices

Ministère de l'Économie

Monthly fuel, hydrogen and EV-charging prices

get_public_alerts

LU-Alert

National warnings, including food recalls

get_commune_leaders

Ministère des Affaires intérieures

Current mayor and aldermen per commune

get_commune_population

CTIE

Resident population by commune, age group and sex

get_pharmacies_on_duty

Pharmacie.lu

Pharmacies on duty, with address and phone

get_electricity_prices

Open Data Lëtzebuerg

Day-ahead power prices per quarter hour

get_carsharing

CFL Mobility

Available FLEX carsharing vehicles

get_bike_sharing

Vël'OK

Live bike-sharing availability in the south

search_tenders

Portail des marchés publics

Open public procurement notices

get_plenary_votes

Chamber of Deputies

Plenary votes with tallies per party and per deputy

get_deputies

Chamber of Deputies

Current deputies, party, constituency and email

lookup_luxembourgish

Lëtzebuerger Online Dictionnaire

Translations, pronunciation and examples

get_traffic_events

CITA

Live roadworks, closures and incidents

get_electricity_grid

Open Data Lëtzebuerg

Daily load, generation mix and cross-border flows

get_unemployment

ADEM

Monthly jobseekers and vacancies, national or by commune

Quick start

Python 3.11 or newer is required.

python -m venv .venv
. .venv/bin/activate
pip install -e .
luxembourg-mcp --transport http --port 8000

Once running:

Interface

URL

Tool catalogue

http://127.0.0.1:8000/

MCP endpoint

http://127.0.0.1:8000/mcp

Health check

http://127.0.0.1:8000/health

Upstream status

http://127.0.0.1:8000/status

/status reports whether each tool's official upstreams are reachable; the catalogue shows it as a light on every tool card. Each upstream gets one lightweight check (only the first few kilobytes are read) at most every 10 minutes, however many people load the page. One failed check marks an upstream degraded, two in a row down.

Stdio client

{
  "mcpServers": {
    "luxembourg": {
      "command": "luxembourg-mcp"
    }
  }
}

Docker

docker build -t luxembourg-mcp .
docker run --rm -i luxembourg-mcp                                          # stdio (default)
docker run --rm -p 8000:8000 luxembourg-mcp --transport http --host 0.0.0.0  # HTTP

Example questions

After connecting an MCP client, an agent can answer questions such as:

  • What weather warnings are active in Luxembourg?

  • How many spaces are free at a CFL Park and Ride?

  • What is the latest water level at Mersch?

  • Find legislation concerning pensions.

  • Which STATEC datasets contain population figures?

  • What are the latest traffic measurements on the A6?

  • Are there roadworks or lane closures on the A4 right now?

  • How did each party vote on the latest tramway bill?

  • What does the Luxembourgish word "Schiertech" mean?

  • Find the official coordinates for an address in Luxembourg City.

  • Which bus or tram stops match Hamilius?

Protocol behavior

The server:

  • validates arguments against every advertised tool input schema;

  • rejects JSON-RPC batches and other non-object JSON with -32600 Invalid Request;

  • supports MCP 2026-07-28 (stateless: per-request _meta, server/discover, cache hints) alongside the initialize-handshake revisions 2025-11-25, 2025-06-18, and 2025-03-26 on the same endpoint and over stdio;

  • validates the MCP-Protocol-Version, Mcp-Method, and Mcp-Name headers against the request body for HTTP requests;

  • returns tool failures as MCP tool results without terminating the server;

  • bounds large upstream responses before placing them in agent context.

The built-in HTTP server is stateless and does not provide an SSE stream. By default it accepts browser origins only from loopback addresses; hosted deployments can extend this with LUXEMBOURG_MCP_ALLOWED_ORIGINS (a comma-separated origin list, or *), which also enables CORS preflight and response headers for the allowed origins. Public deployments should add TLS, response caching, and observability at a reverse proxy or application gateway.

Security and deployment

The built-in server includes baseline controls, but it is not a replacement for a production API gateway:

  • HTTP request bodies are limited to 1 MiB.

  • Upstream responses are limited to 25 MiB.

  • Metadata-derived downloads are restricted to trusted data.public.lu HTTPS resource hosts, including redirects; fixed upstream URLs only follow HTTPS redirects on the same host.

  • Upstream XML declaring DTD entities is rejected before parsing, and user-supplied identifiers cannot form ./.. URL path segments.

  • GTFS ZIP members are checked for decompressed size, encryption, and suspicious compression ratios before extraction.

  • HTTP clients are limited to 60 MCP requests per minute by default; IPv6 clients are grouped by /64 prefix.

  • The HTTP server serves at most 32 concurrent connections by default and closes connections idle for 30 seconds.

  • The Docker image runs as an unprivileged app user from a digest-pinned base image.

Set LUXEMBOURG_MCP_RATE_LIMIT to change the per-minute, per-client limit. A value of 0 disables the built-in limiter. The limiter intentionally uses the direct TCP peer address and does not trust forwarding headers unless LUXEMBOURG_MCP_CLIENT_IP_HEADER names one explicitly (for example CF-Connecting-IP behind Cloudflare); only set it when a trusted proxy controls that header, since clients could otherwise spoof it to escape the limit. Set LUXEMBOURG_MCP_MAX_CONNECTIONS to change the concurrent-connection cap; connections beyond it are closed immediately.

Tool output is untrusted external data. Dataset descriptions, legislation titles, and other public text may contain misleading or adversarial instructions. MCP clients and agent hosts must treat tool results as data, not system instructions, and should require confirmation or policy checks before allowing powerful sibling tools to act on content returned here.

Testing

The default suite is deterministic and does not use the network. It covers JSON-RPC behavior, schema validation, provider parsers, catalogue packaging, and the tools/call contract for all 28 tools.

PYTHONPATH=src python -m unittest discover -s tests -v

The opt-in live suite calls every real upstream service:

LUXEMBOURG_MCP_LIVE=1 PYTHONPATH=src \
  python -m unittest tests.test_live_tools -v

Live tests may fail when a source is unavailable or changes its published data. They also download larger STATEC, air-quality, Chamber, and GTFS resources.

Current limitations

  • The official ATP API for real-time departures and journey planning requires a personal access key. This project exposes keyless static stops from the official GTFS feed instead.

  • The cache is bounded but local to one process. Multiple workers do not share cached data.

  • Upstream availability, update frequency, schemas, and licensing remain controlled by each data producer.

  • Tool coverage is not yet at parity with Allemannsdata. Candidates include parliamentary votes, court decisions, historical weather, EV charging, road works, and more environmental measurements.

Independence and data ownership

Luxembourg MCP is a community project. It is not affiliated with Thomas Heggelund, Allemannsdata, the Luxembourg government, or any agency whose data it exposes.

The project does not own the upstream data. Each producer's licence and terms continue to apply. Tool results preserve the upstream source URL so agents and users can inspect the authoritative record.

Licence

The Luxembourg MCP source code is released under the MIT licence. Upstream public data is licensed separately by its respective producer.


mcp-name: io.github.amirdaraee/luxembourg-mcp

Available Tools

38 tools
geocode_addressCInspect

Resolve a Luxembourg address to official Geoportail coordinates.

Inputs: query (required).

get_accessibility_auditsBInspect

Get the latest public-sector digital accessibility audits.

Inputs: limit.

get_accessibility_figuresCInspect

Get national Digital Accessibility Observatory key figures.

Inputs: no named parameters.

get_air_qualityBInspect

Get the latest national telemetric air-quality measurements by station.

Inputs: city.

get_bike_sharingBInspect

Get live Vel'OK bike-sharing availability at stations in southern Luxembourg.

Inputs: query, available_only.

get_carsharingBInspect

Find currently available CFL FLEX carsharing vehicles by station, town or fuel type.

Inputs: query, fuel_type.

get_cfl_parkingCInspect

Get live occupancy and details for a CFL Park and Ride facility.

Inputs: parking_id (required).

get_city_mobilityBInspect

Get Ville de Luxembourg mobility locations as GeoJSON features.

Inputs: category (required).

get_city_parkingCInspect

Get current Ville de Luxembourg car-park capacity and free spaces.

Inputs: query, available_only.

get_commune_leadersBInspect

Get the current mayor and aldermen of Luxembourg communes.

Inputs: commune.

get_commune_populationAInspect

Get official resident population by commune, split by adults, minors and sex.

Inputs: commune.

get_datasetAInspect

Get metadata and current download resources for an official dataset.

Inputs: dataset_id_or_slug (required).

get_election_resultsAInspect

Get machine-readable 2023 legislative election results, national and per circonscription.

Inputs: no named parameters.

get_electricity_pricesAInspect

Get Luxembourg day-ahead wholesale electricity prices per quarter hour, with the cheapest and most expensive slots.

Inputs: no named parameters.

get_ev_chargingAInspect

Get Chargy public EV charging stations with live connector availability.

Inputs: query, available_only.

get_fuel_pricesBInspect

Get official monthly Luxembourg prices for petrol, diesel, hydrogen, LPG, home electricity and public EV charging.

Inputs: months.

get_geo_featuresCInspect

Fetch GeoJSON features from an official Geoportail OGC collection.

Inputs: collection_id (required), bbox, limit.

get_housing_pricesBInspect

Get advertised housing sale prices by commune from the official Observatoire de l'Habitat.

Inputs: year, commune, property_type.

get_pharmacies_on_dutyAInspect

Get the pharmacies on duty in Luxembourg for a date, with address and phone number.

Inputs: date, locality.

get_public_alertsCInspect

Get recent LU-Alert public warnings: floods, storms, food recalls and other national alerts.

Inputs: limit, language, active_only.

get_public_holidaysAInspect

List Luxembourg legal public holidays in four languages, optionally for one year.

Inputs: year.

get_statisticsCInspect

Retrieve recent observations from a STATEC LUSTAT SDMX dataflow.

Inputs: dataflow_id (required), key, max_rows, last_n_observations.

get_trafficCInspect

Get live CITA motorway speed, occupancy, and flow measurements.

Inputs: road.

get_waste_collectionsBInspect

Get upcoming municipal waste-collection dates for a Luxembourg commune.

Inputs: commune (required), limit, street, waste_type.

get_water_levelsBInspect

Get the latest official measured water level at Luxembourg stations.

Inputs: station.

get_weather_alertsAInspect

Get current official MeteoLux weather warnings published on data.public.lu.

Inputs: language.

get_weather_forecastBInspect

Get the official MeteoLux forecast for a place in Luxembourg: current conditions, 24 hours, 5 days, UV index, sunrise and sunset.

Inputs: language, latitude, longitude.

get_weather_observationsAInspect

Get live MeteoLux weather observations at Luxembourg-Airport: temperature, wind, pressure, humidity, visibility.

Inputs: no named parameters.

list_cfl_parkingAInspect

List official CFL Park and Ride facilities.

Inputs: no named parameters.

list_geo_collectionsCInspect

Search official Geoportail OGC feature collections by title, description, or keyword.

Inputs: limit, query.

reverse_geocodeAInspect

Find the nearest official Luxembourg address to WGS84 coordinates.

Inputs: latitude (required), longitude (required).

search_chamber_bodiesCInspect

Search official Chamber committees, delegations, bodies, memberships, and roles.

Inputs: query (required), limit.

search_datasetsCInspect

Search Luxembourg's official data.public.lu catalog.

Inputs: query (required), page, page_size.

search_legislationCInspect

Search official Luxembourg legislation and consolidated laws through Legilux.

Inputs: query (required), limit.

search_parliamentary_questionsBInspect

Search Chamber of Deputies parliamentary questions by keyword, newest first.

Inputs: query (required), limit.

search_statisticsBInspect

Search STATEC LUSTAT statistical dataflows by topic or title.

Inputs: query (required), limit.

search_tendersBInspect

Search Luxembourg public procurement notices with deadlines, buyers and CPV codes.

Inputs: limit, query, open_only.

search_transit_stopsCInspect

Search official nationwide public-transport stops from the current ATP GTFS feed.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 38 tools

    Disambiguation4/5

    Each tool targets a distinct resource or action, and the descriptions clarify the differences between similar-sounding tools like weather observations, forecasts, and alerts. A few parking and mobility tools could be momentarily confused, but their live/current versus list/static distinction is clear.

    Naming Consistency5/5

    All 38 tool names follow a consistent lowercase snake_case verb_noun pattern, with get_, search_, and list_ used predictably. The naming convention is uniform and makes the tool set easy to scan despite its size.

    Tool Count3/5

    38 tools is on the heavy side and spans many unrelated domains, from weather to legislation to carsharing. The breadth is somewhat justified for a national open-data gateway, but the surface is large enough to feel overwhelming for typical agent use.

    Completeness4/5

    The server covers most major Luxembourg public-data areas: transport, weather, geo, energy, government, statistics, and legislation. Minor gaps exist—such as no dedicated legal-text retrieval or train schedules—but the core workflows an agent would need are largely covered.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for exploring French public open data via APIs like data.gouv.fr, geo.api.gouv.fr, INSEE Sirene, and Radio France.
      11
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Keyless remote MCP server for German public-infrastructure open data: weather, air quality, traffic, public transit, parking and roadworks across 84+ German cities (DWD, Umweltbundesamt, Mobilithek, GovData). 38 read-only tools.
      12
      17
      Apache 2.0