OpenPLZ — German postal codes, streets & administrative tree

io.github.mohammad-abbasi-sh由 GitHub 帳號 mohammad-abbasi-sh 發布v0.1.0更新於 Nov 14, 2026

Unofficial read-only MCP server for German postal data — PLZ lookup, streets & admin tree.

概覽

AI 產生的概覽

唯讀的德國郵遞區號資料 MCP 伺服器:查詢郵遞區號、搜尋地名與街道,並沿行政區劃樹逐層瀏覽。

可以做什麼
  • 查詢某個 5 碼德國郵遞區號對應的所有地名,並回傳市鎮與邦的官方代碼
  • 依名稱搜尋地名,可限定在某個郵遞區號內
  • 依名稱、郵遞區號或地名搜尋街道,並支援跨街道名、郵遞區號與城市的自由文字搜尋
  • 列出 16 個邦及其代碼與首府,並從邦到縣再到市鎮逐層下鑽行政區劃樹
  • 檢查上游 OpenPLZ API 的連線狀態
適用情境
適合需要解析德國地址或郵遞區號、統一地名寫法,或把地點對應到德國官方行政區劃代碼的情境。不適用於奧地利或瑞士資料,本伺服器並未提供。
執行需求
以 stdio 方式在本機執行,通常透過 uvx 啟動 PyPI 套件 openplz-mcp,或以 Python 模組方式執行(需要 mcp<2 與 httpx)。不需 API 金鑰或登入,但需要能連線至 OpenPLZ API 的網路。
安裝前請注意
唯讀且不需憑證,但查詢會送往第三方 OpenPLZ API,所搜尋的地名與郵遞區號會離開本機。街道搜尋比對的是儲存的縮寫形式,完整拼法可能查不到。此伺服器為非官方專案,與 OpenPLZ API 專案無關,且僅涵蓋德國。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 OpenPLZ — German postal codes, streets & administrative tree,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

openplz-mcp 🧭

mcp-name: io.github.mohammad-abbasi-sh/openplz-mcp

Unofficial read-only MCP server for German postal data via the OpenPLZ API (by the openpotato project): localities, streets, municipalities, districts, government regions and the 16 federal states (Bundesländer) — with the official administrative keys. No key, no login.

Built by Mohammad Abbasi as part of the "Germany MCP factory". Not affiliated with the OpenPLZ API / openpotato project.

For AI agents

Add to your MCP client config (stdio):

json
{  "mcpServers": {    "openplz": {      "command": "uvx",      "args": ["openplz-mcp==0.1.0"]    }  }}

Or run locally: python -m openplz_mcp.server (needs mcp<2, httpx).

Tools

ToolDescription
openplz_lookup_postal_codeWhich locality (or localities) a German postal code belongs to
openplz_search_localitySearch localities (Orte) by name, optionally within one postal code
openplz_search_streetSearch streets by name, postal code and/or locality
openplz_full_text_searchFree-form street search across street name, postal code and city
openplz_list_federal_statesAll 16 federal states (Bundesländer) with key + capital
openplz_admin_childrenWalk one step down the administrative tree (state → district → municipality …)
openplz_healthReachability check (ok / blocked / error) — one polite request

Example output (openplz_lookup_postal_code / 10115):

json
{"postal_code": "10115", "count": 1, "localities": [{"postal_code": "10115", "name": "Berlin",   "municipality": {"key": "11000000", "name": "Berlin, Stadt", "type": "Kreisfreie Stadt"},   "federal_state": {"key": "11", "name": "Berlin"}}]}

Notes:

  • A German postal code is exactly 5 digits (e.g. 10115 = Berlin-Mitte, 80331 = München).
  • Official administrative keys: federal states "01"–"16" (Berlin "11", Bayern "09"), districts 5 digits ("11000" = Berlin), municipalities 8 digits ("09162000" = München). Use them with openplz_admin_children — e.g. federal_state "11" → districts returns the single Berlin district; district "11000" → localities lists Berlin's localities.
  • Street-name search matches the stored, abbreviated form (e.g. "Ackerstr."). For free-form queries (e.g. "10115 Berlin" or "München Marienplatz") use openplz_full_text_search.
  • A postal code can cover several localities, and a locality can have several postal codes — openplz_lookup_postal_code returns all of them.
  • Data covers Germany only (/de/ endpoints); the OpenPLZ API also serves Austria (/at/) and Switzerland (/ch/), which this server does not expose.

Built by Mohammad Abbasi — Almanibama · mabbasi.ir

來源:README.md,提交 f6664b7

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Nov 14, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分