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 分