Luxembourg MCP

io.github.amirdaraee由 GitHub 帳號 amirdaraee 發布v0.7.0更新於 Oct 24, 2026

Keyless MCP access to official Luxembourg public data: laws, statistics, mobility, and more.

已驗證Streamable HTTP可網頁執行位置與生活效率與工作流資料與分析

概覽

AI 產生的概覽

免金鑰即可透過 MCP 存取盧森堡官方公共資料,讓助理查詢法律、統計、交通、天氣與議會紀錄。

可以做什麼
搜尋並檢視國家開放資料目錄,取得資料集中介資料與資源,結果保留來源網址。透過 Geoportail 查詢官方地址與地理圖層,包括地理編碼、反向地理編碼和 GeoJSON 圖徵。檢索法律、STATEC 統計資料、議會質詢、議院機構、全院投票與議員,以及公共採購公告。讀取即時交通與環境資料:市政和 CFL 停車場、路況、水位、空氣品質、電動車充電、汽車共享、共享單車和公車站點。取得天氣警報、觀測與預報、公共警報、燃油與電價、房價、人口、假日、值班藥局等資訊。
適用情境
適合回答依賴官方來源的盧森堡相關問題:法律、統計、選舉、議會、地址、交通、停車、天氣、價格或公共警報。若不想逐一介接各公共 API,可用這一個免金鑰端點。
執行需求
可連線託管的 streamable HTTP 端點,或在本地以 Python 3.11 以上執行該套件(uvx 或 pip 安裝)。不需要 API 金鑰、帳號或環境變數。需要能連線各官方上游服務的網路。
安裝前請注意
工具輸出屬於不可信的外部資料;README 提醒公開文字可能含有誤導性或對抗性指令,應視為資料而非指令。伺服器對上游僅供讀取,但會將查詢送往第三方公共服務。上游可用性、資料結構與授權由各資料提供者決定,本專案與盧森堡政府無隸屬關係。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Luxembourg MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.amirdaraee%2Fluxembourg-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "luxembourg": {
      "type": "http",
      "url": "https://mcp.luxembourg-mcp.com/mcp"
    }
  }
}

README

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.

Available tools

ToolPublic sourcePurpose
search_datasetsdata.public.luSearch the national open-data catalogue
get_datasetdata.public.luInspect metadata and current resources
geocode_addressGeoportailResolve an official address
reverse_geocodeGeoportailFind the nearest official address
list_geo_collectionsGeoportail OGC APIDiscover queryable geospatial layers
get_geo_featuresGeoportail OGC APIRetrieve bounded GeoJSON features
get_weather_alertsMeteoLuxRead current weather warnings
search_legislationLegiluxSearch legislation and consolidated laws
search_statisticsSTATEC LUSTATDiscover statistical dataflows
get_statisticsSTATEC LUSTATRetrieve labelled SDMX observations
get_city_parkingVille de LuxembourgRead live city parking availability
list_cfl_parkingCFLList Park and Ride facilities
get_cfl_parkingCFLRead live P+R occupancy and free spaces
get_trafficCITARead live motorway traffic measurements
get_water_levelsWater Management AdministrationRead current water-station levels
get_air_qualityEnvironment AdministrationRead national air-quality measurements
search_chamber_bodiesChamber of DeputiesSearch bodies, memberships, and roles
get_accessibility_figuresDigital Accessibility ObservatoryRead national accessibility totals
get_accessibility_auditsDigital Accessibility ObservatoryList recent public-sector audits
search_transit_stopsPublic Transport AdministrationSearch nationwide GTFS stops
get_city_mobilityVille de Luxembourg MapsRetrieve mobility locations as GeoJSON
get_weather_observationsMeteoLuxLive temperature, wind, pressure at Findel
get_public_holidaysdata.public.luLegal public holidays in four languages
search_parliamentary_questionsChamber of DeputiesSearch parliamentary questions and answers
get_housing_pricesObservatoire de l'HabitatAdvertised housing sale prices by commune
get_election_resultsCTIE2023 legislative election results
get_ev_chargingChargyPublic EV charging with live availability
get_waste_collectionsEnvironment AdministrationUpcoming waste-collection dates by commune
get_weather_forecastMeteoLuxOfficial forecast, UV index, sunrise and sunset
get_fuel_pricesMinistère de l'ÉconomieMonthly fuel, hydrogen and EV-charging prices
get_public_alertsLU-AlertNational warnings, including food recalls
get_commune_leadersMinistère des Affaires intérieuresCurrent mayor and aldermen per commune
get_commune_populationCTIEResident population by commune, age group and sex
get_pharmacies_on_dutyPharmacie.luPharmacies on duty, with address and phone
get_electricity_pricesOpen Data LëtzebuergDay-ahead power prices per quarter hour
get_carsharingCFL MobilityAvailable FLEX carsharing vehicles
get_bike_sharingVël'OKLive bike-sharing availability in the south
search_tendersPortail des marchés publicsOpen public procurement notices
get_plenary_votesChamber of DeputiesPlenary votes with tallies per party and per deputy
get_deputiesChamber of DeputiesCurrent deputies, party, constituency and email
lookup_luxembourgishLëtzebuerger Online DictionnaireTranslations, pronunciation and examples
get_traffic_eventsCITALive roadworks, closures and incidents
get_electricity_gridOpen Data LëtzebuergDaily load, generation mix and cross-border flows
get_unemploymentADEMMonthly jobseekers and vacancies, national or by commune

Quick start

Python 3.11 or newer is required.

bash
python -m venv .venv. .venv/bin/activatepip install -e .luxembourg-mcp --transport http --port 8000

Once running:

InterfaceURL
Tool cataloguehttp://127.0.0.1:8000/
MCP endpointhttp://127.0.0.1:8000/mcp
Health checkhttp://127.0.0.1:8000/health
Upstream statushttp://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

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

Docker

bash
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.

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

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

bash
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

來源:README.md,提交 a52102d

工具

44

search_datasets

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

輸入參數pagequery必填page_size

get_dataset

Get metadata and current download resources for an official dataset.

輸入參數dataset_id_or_slug必填

geocode_address

Resolve a Luxembourg address to official Geoportail coordinates.

輸入參數query必填

reverse_geocode

Find the nearest official Luxembourg address to WGS84 coordinates.

輸入參數latitude必填longitude必填

list_geo_collections

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

輸入參數limitquery

get_geo_features

Fetch GeoJSON features from an official Geoportail OGC collection.

輸入參數bboxlimitcollection_id必填

get_weather_alerts

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

輸入參數language

search_legislation

Search official Luxembourg legislation and consolidated laws through Legilux.

輸入參數limitquery必填

search_statistics

Search STATEC LUSTAT statistical dataflows by topic or title.

輸入參數limitquery必填

get_statistics

Retrieve recent observations from a STATEC LUSTAT SDMX dataflow.

輸入參數keymax_rowsdataflow_id必填last_n_observations

get_city_parking

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

輸入參數queryavailable_only

list_cfl_parking

List official CFL Park and Ride facilities.

無需輸入參數。

get_cfl_parking

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

輸入參數parking_id必填

get_traffic

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

輸入參數road

get_water_levels

Get the latest official measured water level at Luxembourg stations.

輸入參數station

get_air_quality

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

輸入參數city

search_chamber_bodies

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

輸入參數limitquery必填

get_accessibility_figures

Get national Digital Accessibility Observatory key figures.

無需輸入參數。

get_accessibility_audits

Get the latest public-sector digital accessibility audits.

輸入參數limit

search_transit_stops

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

輸入參數limitquery必填

get_city_mobility

Get Ville de Luxembourg mobility locations as GeoJSON features.

輸入參數category必填

get_weather_observations

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

無需輸入參數。

get_public_holidays

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

輸入參數year

search_parliamentary_questions

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

輸入參數limitquery必填

get_housing_prices

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

輸入參數yearcommuneproperty_type

get_election_results

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

無需輸入參數。

get_ev_charging

Get Chargy public EV charging stations with live connector availability.

輸入參數queryavailable_only

get_waste_collections

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

輸入參數limitstreetcommune必填waste_type

get_weather_forecast

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

輸入參數languagelatitudelongitude

get_fuel_prices

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

輸入參數months

get_public_alerts

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

輸入參數limitlanguageactive_only

get_commune_leaders

Get the current mayor and aldermen of Luxembourg communes.

輸入參數commune

get_commune_population

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

輸入參數commune

get_pharmacies_on_duty

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

輸入參數datelocality

get_electricity_prices

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

無需輸入參數。

get_carsharing

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

輸入參數queryfuel_type

get_bike_sharing

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

輸入參數queryavailable_only

search_tenders

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

輸入參數limitqueryopen_only

get_plenary_votes

Get Chamber of Deputies plenary votes, newest first, with yes/no/abstain tallies per party and optionally how one deputy voted.

輸入參數limitquerydeputy

get_deputies

List the current members of the Chamber of Deputies with party, constituency, start of mandate and official email.

輸入參數query

lookup_luxembourgish

Look up a word in the official Luxembourgish dictionary (LOD): translations into German, French, English and Portuguese, pronunciation, forms and examples.

輸入參數word必填limitlanguage

get_traffic_events

Get live roadworks, lane closures, incidents and equipment faults on Luxembourg motorways from CITA.

輸入參數road

get_electricity_grid

Get Luxembourg's latest daily electricity load, generation by production type and cross-border flows (ENTSO-E actuals).

輸入參數include_series

get_unemployment

Get monthly ADEM figures: registered resident jobseekers by sex and job vacancies, nationally or for one commune.

輸入參數monthscommune

版本歷史

2
  1. v0.7.0最新Sep 17, 2026
  2. v0.6.0Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分