
Bakom Mcp
io.github.malkreide由 GitHub 帳號 malkreide 發布v3.0.2更新於 Oct 27, 2026
BAKOM telecommunications and media open data
概覽
用於瑞士 BAKOM 開放資料的唯讀 MCP 伺服器,讓助理依位置查詢寬頻、光纖、行動涵蓋、天線與媒體統計資料。
- 可以做什麼
- 查詢指定座標的固網寬頻涵蓋與 FTTB/FTTH 光纖可用性,並一次比較最多 20 個地點的連線狀況
- 查詢 5G/4G/3G 室外行動涵蓋、附近行動天線以及廣播/電視發射站點
- 在 opendata.swiss 上檢索 BAKOM 廣播與電視資料集、媒體結構報告及最近更新的資料集
- 取得電信市場統計與媒體統計資料集,列出寬頻地圖目錄圖層,並對各資料來源做健康檢查
- 適用情境
- 需要瑞士電信與媒體事實時適用:地址或學校建築的連線性查核、行動與光纖涵蓋比較、天線位置查詢,或 BAKOM 資料集與統計查詢,且不需要任何 API 金鑰。
- 執行需求
- 本機 Python 3.11+ 執行環境,搭配 uv 或 pip;透過 uvx 執行或從 PyPI 安裝。需要連網存取公開的 geo.admin.ch、opendata.swiss 與 lindas.admin.ch 介面。不需帳號、API 金鑰或權杖。選用的 HTTP 模式以 BAKOM_MCP_HOST、BAKOM_MCP_PORT 與 BAKOM_MCP_CORS_ORIGINS 設定。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Bakom Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🇨🇭 Part of the Swiss Public Data MCP Portfolio
📡 bakom-mcp
[Version] [License: MIT] [Python 3.11+] [MCP] [Auth] [CI]
MCP server for BAKOM open data – broadband, mobile coverage, media and Swiss telecom statistics.
[Demo: Claude queries fibre and 5G coverage via MCP tool call]
Overview
bakom-mcp connects AI assistants like Claude to the Swiss Federal Office of Communications (BAKOM) open data infrastructure. It enables natural-language queries about broadband availability, 5G/4G coverage, mobile antenna locations, BAKOM datasets on radio and television, and telecommunications statistics — all without API keys.
All data is published as Open Government Data (OGD) on opendata.swiss / geo.admin.ch under CC BY 4.0 — see the Data Licence section below for attribution requirements.
Anchor demo query: "Which school buildings in district 7 do not yet have fibre optic connectivity?"
bakom_multi_standort_konnektivitaetdelivers the comparison table automatically.
→ More use cases by audience →
Scope
What this server does
✓ Read-only queries against three public BAKOM/Confederation APIs:
api3.geo.admin.ch/wms.geo.admin.ch(broadband, mobile coverage, antennas)ckan.opendata.swiss(telecom statistics, dataset metadata)
✓ Returns aggregated, anonymous data — no personal data, no household-level identification.
✓ Bound to Swiss WGS84 coordinates (lat 45.8–47.9, lon 5.9–10.6) via Pydantic input validation.
✓ Egress is locked to a code-layer allow-list of the six known data-source hosts.
What this server does not
✗ Send data anywhere (read-only, no write tools).
✗ Access the local filesystem (no path-traversal surface).
✗ Use authentication tokens (none required — all sources are public OGD).
✗ Cache or persist user inputs across calls.
✗ Execute shell commands or arbitrary code (no subprocess/os.system/eval).
Features
- 📶 Broadband availability – Fixed-line coverage at 30/100/300/500/1000 Mbit/s (250×250m grid)
- 🔌 Fibre status – FTTB/FTTH availability per location
- 📍 Multi-location comparison – Connectivity check for up to 20 locations simultaneously
- 📱 Mobile coverage – 5G/4G/3G outdoor coverage (100×100m grid)
- 📡 Antenna search – Mobile and broadcast transmitters within a configurable radius
- 📺 Radio & TV datasets – Full-text search across BAKOM's radio and television datasets on opendata.swiss
- 🗞️ Media landscape – BAKOM media structure reports and datasets
- 📊 Telecom statistics – Fixed-line, mobile, broadband market data via opendata.swiss
- 🗂️ Broadband Atlas catalogue – All BAKOM dataset layers with direct API links
- 🔓 No authentication required – All data is Open Government Data (OGD)
Prerequisites
- Python 3.11+
uvorpipfor installation- Internet connection (live APIs: geo.admin.ch, opendata.swiss)
Installation
Quickstart
Claude Desktop
Add to claude_desktop_config.json:
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Cloud / HTTP Transport
Configuration via environment variables (see .env.example):
Docker
A hardened container image is provided. Suitable for cloud deployments behind a reverse proxy (Caddy, Traefik, nginx).
The image runs as non-root (UID 10001), uses a read-only filesystem, drops all Linux capabilities and refuses privilege escalation. Resource limits are configured in docker-compose.yml (256 MB memory, 0.5 CPU, 64 PIDs). The default port mapping binds to 127.0.0.1 only — for public exposure, terminate TLS and CORS at a reverse proxy.
Cursor / VS Code / LibreChat
💡 "stdio for the developer laptop, HTTP/SSE for the browser."
Available Tools (12)
Broadband & Connectivity
Mobile & Transmitters
Media & RTV
Statistics & Catalogue
Example Prompts
Safety & Limits
Data Sources
All data is published under open licences (CC0 / OGD).
Architecture decision — media statistics
bakom_medien_statistik uses Architecture A (live API only), verified live on 2026-08-13:
- The SPARQL endpoint is
https://lindas.admin.ch/query; the/sparqlpath documented elsewhere returns 404. - The OFCOM cubes live in the named graph
https://lindas.admin.ch/ofcom/cube. Without an explicitFROM, a query hits the default graph and sees 2010 cubes from every federal office instead of 540. - A bulk download exists for only 137 of 540 cubes, so a dump-first architecture would cover a quarter of the data.
- An unknown graph answers HTTP 200 with zero rows — a silent empty, not an error. Requests carry retry with exponential backoff; egress-policy violations are not retried.
Scope, stated in the tool description because the README does not reach the model: the cubes cover the programmes that were surveyed, not the full inventory. LINDAS's own count cube reports 199+39+17 radio programmes for 2020, while the Programm dimension across all cubes exposes 128 labels — some of which are the same station spelled differently (Energy BE / Energy Bern), plus Durchschnitt, which is an aggregate rather than a station. This tool is a statistics source, not a broadcaster register; licensed broadcasters are listed in the RTV database, which offers no machine-readable interface.
Synergies with the MCP Portfolio
bakom-mcp can be combined with other servers in the portfolio for multi-dimensional queries:
Further combinations:
srgssr-mcp+bakom-mcp→ Media coverage and broadcast networkswiss-statistics-mcp+bakom-mcp→ Telecom market developmentfedlex-mcp+bakom-mcp→ Regulatory context (RTVG, FMG)
Project Structure
MCP Protocol Version
This server speaks two protocol eras over the same endpoint. The client's first request on a connection decides which one applies; a later claim from the other era is refused.
Both revisions are pinned in
tests/test_protocol_version.py and asserted
against the installed SDK, so a Dependabot bump of mcp cannot move either one
silently. The handshake ceiling is measured against a live initialize through
the assembled ASGI stack, not read off a constant name.
Note that the SDK's LATEST_PROTOCOL_VERSION is an alias for the modern
era, not for the handshake era — pinning against it alone would leave the era
that current clients actually negotiate free to drift.
Native in the envelope era. The server uses nothing the 2026-07-28
spec deprecates (SEP-2577: logging, sampling, roots). The status text of
bakom_multi_standort_konnektivitaet travels in the progress notification
instead of ctx.info() — in the modern era logging is delivered only when the
request opts in with a log level in _meta, and without that opt-in the line
was silently dropped. serverInfo carries the package version on initialize
and on server/discover alike. A tool call needs neither a handshake nor an
Mcp-Session-Id. tests/test_modern_era.py
checks this over real connections in both eras, and the suite treats every
MCPDeprecationWarning as an error.
What the server announces. No change notifications: tools, resources and
prompts are fixed at import, so the server reports listChanged and
resources.subscribe as false in both eras and rejects
subscriptions/listen. No outputSchema: tools return text (Markdown or a
JSON string) in content. Both are checked by
tests/test_capabilities.py.
Update policy. When the gate fails, do not edit the constant blindly: read
the spec changelog between the two revisions, verify the server still behaves,
then move the constant, this section, README.de.md and
CHANGELOG.md together.
Testing
Changelog
See CHANGELOG.md
Contributing
Contributions are welcome! See CONTRIBUTING.md (🇩🇪 Deutsch) for guidelines on reporting bugs, suggesting features, and submitting pull requests.
Security
To report a vulnerability, see the Security Policy (🇩🇪 Deutsch). Please report security issues privately via GitHub Security Advisories rather than public issues.
Software Licence
MIT License — see LICENSE.
Data Licence
The BAKOM open data delivered through this server is published under CC BY 4.0. When using or redistributing tool outputs, attribute the source as:
Source: Federal Office of Communications (BAKOM) via opendata.swiss / geo.admin.ch · Licence: CC BY 4.0
Tool outputs already include this footer automatically. The Markdown response format ends with the attribution line; downstream applications that consume the JSON format should propagate the source/licence metadata to their end users.
Author
Hayal Oezkan · github.com/malkreide
Credits & Related Projects
- Data: BAKOM Open Data – Federal Office of Communications (OFCOM/BAKOM)
- Geodata: geo.admin.ch – swisstopo / Federal Geodata Infrastructure
- Protocol: Model Context Protocol – Anthropic / Linux Foundation
- Related: zurich-opendata-mcp – MCP server for Zurich city open data
- Related: swiss-transport-mcp – Swiss public transport MCP server
- Portfolio: Swiss Public Data MCP Portfolio
Part of the Swiss Open Data MCP portfolio — public data deserves public interfaces.
Installation
Run via uv's uvx — no clone or manual install needed. Add to your MCP client config (mcpServers for Claude Desktop, Cursor and Windsurf; use a top-level servers key for VS Code in .vscode/mcp.json):
來源:README.md,提交 ba266a2
工具
0版本歷史
3- v3.0.2最新Sep 27, 2026
- v3.0.1Sep 27, 2026
- v3.0.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分