mcp-belgium

io.github.lacausecrypto由 GitHub 账号 lacausecrypto 发布v1.0.4更新于 Oct 24, 2026

Single MCP server for Belgian public transport, statistics, open data, and geospatial services.

概览

AI 生成的概览

一个聚合型 MCP 服务器,让助手访问比利时公共交通、统计、开放数据、地址、天气、空气质量与地理空间服务。

可以做什么
把多个比利时公共 API 打包为一次安装、一个客户端配置项,提供带命名空间的工具,如 irail_*、statbel_*、best_*、kmi_*、urban_* 和 urbis_*。覆盖铁路与多式联运出行规划、布鲁塞尔公交、地址、人口与 CPI 统计、空气质量、天气观测,以及各地区开放数据与地理空间图层。发现层(目录概览、域列表与描述、目录资源、能力指南)让助手在调用工具前先找到合适的域。部分上游受限或需要密钥,会返回明确的限制错误。
适用场景
当助手需要比利时数据或服务时使用:火车与公交查询、官方统计、地址、天气、空气质量,或地区开放数据与地理空间图层。需要其中多个域时尤其方便,因为一个软件包和一个配置项即可替代多个独立服务器。
运行要求
通过 npx 或 pnpm 以 stdio 在本地运行(开发需 Node.js >= 22)。可选密钥 STIB_API_KEY 和 CBEAPI_KEY 用于启用布鲁塞尔公交与比利时公司注册处的实时工具。可选 MCP_TRANSPORT=http 与 PORT_BELGIUM 设置 HTTP 传输与端口。需要能访问上游比利时公共 API 的网络。
安装前请注意
会从环境读取两个可选密钥:STIB_API_KEY 和 CBEAPI_KEY;未提供时相应域保持密钥受限。服务器会查询第三方比利时公共 API,请求及发送的数据会离开本机。部分上游门户会更改认证或端点契约,工具可能返回明确的限制或上游已变更错误而非数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 mcp-belgium,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-belgium

[npm version] [npm downloads] [CI] [license] [node] [pnpm] [typescript] [mcp]

One MCP server for Belgian public APIs.

mcp-belgium is the public entry point. It exposes a single aggregated MCP server that bundles Belgian transport, official statistics, open data, addresses, weather, air quality, and geospatial services behind one install and one client config entry.

The package is also prepared for publication to the official MCP Registry under io.github.lacausecrypto/mcp-belgium.

Why use it

  • one npm package
  • one MCP server entry in your client config
  • namespaced tools like irail_*, statbel_*, best_*, kmi_*, urban_*, and urbis_*
  • built-in catalog tools, resources, and a prompt so the LLM can discover the right Belgian domain before calling tools
  • explicit limitation surfaces when an upstream requires a key or has changed contract

Install

Run directly:

bash
npx -y mcp-belgium

With pnpm:

bash
pnpm dlx mcp-belgium

Global install:

bash
pnpm add -g mcp-belgiummcp-belgium

Default transport is stdio, which is what desktop MCP clients expect.

Claude Desktop

json
{  "mcpServers": {    "belgium": {      "command": "npx",      "args": [        "-y",        "mcp-belgium"      ],      "env": {        "LOG_LEVEL": "silent"      }    }  }}

Optional env vars:

  • STIB_API_KEY: enables live STIB/MIVB tools
  • CBEAPI_KEY: enables live KBO/BCE company registry tools
  • MCP_TRANSPORT=http: runs the server over Streamable HTTP
  • PORT_BELGIUM=3017: sets the HTTP port for the aggregated server

What the LLM gets

Alongside the domain tools, mcp-belgium exposes a discovery layer:

  • belgium_catalog_overview
  • belgium_list_domains
  • belgium_describe_domain
  • belgium://catalog
  • belgium://catalog.json
  • belgium://domain/{domain}
  • belgium_capability_guide

That means the LLM can:

  • inspect the Belgian domains available from this single MCP
  • see which domains are live, limited, or key-gated
  • understand what kind of data each domain provides
  • pick the right namespaced tool without guessing

Main domains

PrefixDomainStatusAuthMain data
irail_*Belgian rail / iRailLiveNonestations, connections, liveboards, vehicles, disruptions
mobility_*Belgian mobility / SMOPLiveNoneintermodal trip planning, operators, GTFS references
stib_*STIB/MIVB Brussels transitLiveAPI keywaiting times, stops, routes, service messages
infrabel_*Infrabel Open DataLiveNonerail infrastructure datasets and records
kbo_*Belgian company registryLiveAPI keyenterprise search and company details
best_*BeST Belgian addressesLiveNoneaddresses, municipalities, streets, postal infos
statbel_*StatbelLiveNonepopulation, CPI, employment, dataset search
airquality_*IRCELINE air qualityLiveNonestations, live measurements, BelAQI, timeseries
brussels_*Brussels Region open dataLiveNonedatasets and records
wallonia_*Wallonia open dataLiveNonedatasets and records
kmi_*KMI / IRM GeoServerLiveNonestations, hourly observations, WFS discovery
wallonia_geo_*Wallonia GeoServicesLiveNoneArcGIS folders, services, layer queries
urban_*urban.brussels WFSLiveNonefeature types, schemas, GeoJSON features
urbis_*URBIS public WMSLiveNoneWMS layer discovery and map URL generation
datagov_*data.gov.be compatibility layerLimitedNoneexplicit upstream-changed error surface
flanders_*Datavindplaats compatibility layerLimitedAPI keyexplicit upstream limitation surface

Docs / Wiki

The repo now includes a docs/ tree that works as a lightweight public wiki:

Local development

Requirements:

  • Node.js >= 22
  • pnpm >= 9

Setup:

bash
pnpm installpnpm run buildpnpm run testpnpm run typecheck

Run the aggregated server over stdio:

bash
pnpm --filter mcp-belgium start:stdio

Run it over Streamable HTTP:

bash
MCP_TRANSPORT=http PORT_BELGIUM=3017 pnpm --filter mcp-belgium start

Run the whole workspace:

bash
docker compose up --build

Monorepo shape

  • packages/core: shared HTTP, retry, cache, rate limiting, XML helpers, and MCP response helpers
  • packages/mcp-belgium: public aggregated entry point
  • packages/mcp-*: domain-specific packages kept modular for maintenance, testing, and isolated validation

The public consumer path is mcp-belgium. Internal workspace packages stay modular for development, but the published mcp-belgium package bundles them so end users install only one npm package.

Upstream caveats

This project wraps public upstream APIs. Some Belgian portals change authentication or endpoint contracts over time. When an upstream is no longer publicly compatible, this project prefers explicit, machine-readable limitation errors over silent failure.

Current examples:

  • mcp-stib requires STIB_API_KEY
  • mcp-kbo requires CBEAPI_KEY
  • mcp-data-gov-be preserves the old tool contract but returns an explicit upstream-changed error
  • mcp-opendata-flanders preserves the old tool contract but returns an explicit API-key limitation

Validation

Current workspace checks:

  • pnpm run build
  • pnpm run test
  • pnpm run typecheck
  • pnpm audit --prod

License

MIT. See LICENSE.

来源:README.md,提交 cb3e21e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分