Abfallkalender Deutschland

io.github.AlpayC由 GitHub 账号 AlpayC 发布v0.2.0更新于 Nov 22, 2026

Waste collection dates for German addresses from municipal authority calendars.

已验证Streamable HTTP可网页运行位置与生活数据与分析

概览

AI 生成的概览

根据德国地址查询市政垃圾收运日期(残余垃圾、有机垃圾、纸张、包装、大件垃圾、有害垃圾)。

可以做什么
  • 按地址查询收运日期,责任机构不明确时返回追问选项
  • 按地名或企业名搜索垃圾处理机构,无需地理编码
  • 查看某机构需要哪些参数、示例地点及其门户地址
  • 直接向已知机构查询其收运日期
  • 报告已收录的机构数量与数据源数量
适用场景
适合回答德国某地址何时收垃圾、某地由哪个机构负责之类的问题,也适合针对特定机构的日历或门户做后续追问。
运行要求
远程 Streamable HTTP 端点,未声明需要账号或密钥。本地运行需从代码仓库检出并用 uv 启动,因为依赖随附的数据源和已生成的登记表。地址解析使用 Nominatim(OpenStreetMap),可通过 ABFALL_MCP_NOMINATIM_URL 指向自建实例。
安装前请注意
日期来自各机构门户,可能临时变动;大件垃圾或有害垃圾请核对回复中附带的门户地址。城镇猜测错误会返回邻近市镇的日历,因此歧义会以追问而非答案返回。覆盖率有限:在 21 个地址的测试中,38% 未返回日期。请求会给机构门户和 Nominatim 带来负载。

安装

在 SourceWeft 中

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

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.AlpayC%2Fabfall-mcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "abfallkalender-deutschland": {
      "type": "http",
      "url": "https://abfall-mcp.alpaycelik.dev/mcp"
    }
  }
}

README

abfall-mcp-server

English · Deutsch

[CI] [License: MIT] [Python 3.11+] [Providers: 995]

[MCP 2026-07-28 readiness]

MCP server for the waste collection calendars of German cities and districts. Looks up collection dates — residual waste, organic waste, paper, packaging, bulky waste, hazardous waste collection points — for a given address.

Website and interactive setup guide: abfall-mcp.alpaycelik.dev.

address ──▶ Nominatim ──▶ municipality + district ──▶ provider search (995)                                                              │                       collection dates ◀── portal ◀── resolve arguments

Why this is not trivial

Waste management in Germany is organised municipally. There is no nationwide API — roughly 400 public waste authorities each run their own portal, backed by a handful of software platforms (Abfall.IO/AbfallPlus, AbfallNavi, Jumomind, AWIDO, C-Trace, Müllmax, plus many plain ICS exports).

This server uses mampfes/hacs_waste_collection_schedule (MIT) as its data source — an actively maintained project with over 950 source modules. Its inner package is independent of Home Assistant and is wired in here as a Git submodule.

The actual work of this project is turning an address into the responsible waste authority and its internal parameters. In Home Assistant a human clicks that together once; an MCP server has to do it on its own.

Installation

The server runs from a repository checkout, not as an installed package: it needs the data source under vendor/ and the registry under data/, both resolved relative to the project root. That is also why it is not on PyPI — a wheel would install cleanly and still not work.

bash
git clone --recurse-submodules https://github.com/AlpayC/abfall-mcp-server.gitcd abfall-mcp-serveruv syncuv run pytest

data/providers.json is checked in, so the server starts right away. After a submodule update, rebuild it:

bash
uv run python scripts/build_registry.py

Wiring it up

Public remote via Streamable HTTP:

json
{  "mcpServers": {    "abfall": {      "url": "https://abfall-mcp.alpaycelik.dev/mcp"    }  }}

The service health endpoint is https://abfall-mcp.alpaycelik.dev/health.

Locally over stdio — in claude_desktop_config.json or .mcp.json:

json
{  "mcpServers": {    "abfall": {      "command": "uv",      "args": ["--directory", "/path/to/abfall-mcp-server", "run", "abfall-mcp-server"]    }  }}

As an HTTP service:

bash
uv run abfall-mcp-server --http --host 127.0.0.1 --port 8000

Keep in mind that every HTTP request puts load on the authorities' portals and on Nominatim. For anything beyond personal use, put a cache in front and your own Nominatim instance behind it (ABFALL_MCP_NOMINATIM_URL).

Tools

Tool names and responses are German, because the domain and the users are.

ToolPurpose
abfuhrtermineAddress in, collection dates out. The usual entry point.
finde_traegerSearch authorities by place or company name, no geocoding.
traeger_detailsWhich arguments does an authority expect?
abfuhrtermine_fuer_traegerTargeted query, e.g. to answer a follow-up question.
abdeckungHow many authorities and data sources are covered.

Plus the resource abfall://traeger with the full list of authorities.

Asking beats guessing

When a value cannot be determined unambiguously, the server returns status: "rueckfrage" along with the concrete list of options instead of guessing. That is deliberate: a wrongly guessed town cheerfully returns the neighbouring municipality's calendar — a wrong answer that looks like a right one.

Coverage, measured

scripts/build_registry.py collects 995 waste authorities from 150 source modules.

scripts/smoke.py queries real addresses against the real portals. A run over 21 addresses across Germany (as of Aug 2026):

OutcomeShare
Collection dates returned directly48 %
Follow-up question for a missing detail14 %
No authority returned dates38 %

That is the measured number, not an estimate — and the reason to state it here: "covers every German city" is true of the authority list, not of fully automatic resolution from a bare address.

Authorities with their own ID lookup

Some portals require internal identifiers that cannot be derived from an address. For these, the portal's address dialog is reimplemented in lookup.py:

AuthorityIdentifierScope
Abfall.IO / AbfallPlusf_id_kommune, f_id_strasse, …41 authorities
Stadtreinigung HamburghnIdHamburg
Berliner Stadtreinigungsbetriebeschedule_idBerlin

The upstream wizard for Hamburg is stale by now — the portal moved its form to a JavaScript component, whose address endpoint is read out of the page here.

Where the remaining cases fail

  • Further ID arguments with no lookup path: standort in Dresden, idHouseNumber in Leipzig, streetnr in Stuttgart. One more resolver each, following the same pattern as the three above.
  • Portals using different spellings that ship no list of suggestions (Erfurt, Kiel).
  • Outages, rate limiting and malformed responses on the authorities' side (Saarbrücken returns HTML instead of ICS).

Layout

FileResponsibility
wcs.pyBridge to the vendored library; registers the package deliberately instead of putting it on sys.path (its parent directory holds a calendar.py that shadows the stdlib).
registry.pyAuthority list and location search with German stemming.
geo.pyNominatim, address variants, plausibility checks.
resolve.pyAddress → authority → resolved arguments → collection dates.
lookup.pyAddress dialogs for authorities with internal IDs (Abfall.IO, Hamburg, BSR).
server.pyMCP tools, stdio and HTTP.

The registry is not built at runtime: data/providers.json is produced by a script so that starting the server does not import 150 modules. Rebuild it after a submodule update.

Data sources and usage

Collection dates come from the portals of the respective waste authorities, address resolution from Nominatim (OpenStreetMap). Nominatim has a usage policy — at most one request per second; the server honours it and caches results in ~/.cache/abfall-mcp-server/.

For dates something depends on (bulky waste, hazardous waste collection), it is worth checking the portal address that every response carries.

Contributing

The most useful contribution is a report that some authority does not work — there is an issue template with the right questions. How to add an authority resolver is in CONTRIBUTING.md; security issues belong in a private report, see SECURITY.md. Changes are listed in the CHANGELOG. Agents working on this repository should read AGENTS.md.

One principle runs through the whole project and applies to contributions too: when in doubt, ask — do not guess. A wrongly guessed town cheerfully returns the neighbouring municipality's calendar — a wrong answer that looks like a right one.

License

MIT, see LICENSE. The submodule vendor/hacs_waste_collection_schedule is under its own MIT license, Copyright (c) 2020 Steffen Zimmermann — this repository only references it, it does not ship the code. Third-party attributions are collected in NOTICE.

来源:README.md,提交 10bdac5

工具

5

abfuhrtermine

Abfuhrtermine zu einer Adresse

Ermittelt den zustaendigen Entsorgungstraeger fuer eine deutsche Adresse und liefert dessen Abfuhrtermine. Erster Anlaufpunkt fuer Fragen wie 'Wann wird bei mir die Biotonne geleert?'.

输入参数bisvonlimitadresse必填strassehausnummerabfallarten

finde_traeger

Entsorgungstraeger suchen

Sucht Entsorgungstraeger nach Orts- oder Betriebsnamen, ohne Geocoding. Nuetzlich, wenn die Adresssuche nichts findet oder der Betrieb bekannt ist.

输入参数limitsuchbegriff必填

traeger_details

Details zu einem Traeger

Zeigt, welche Argumente ein Traeger erwartet, welche Orte als Beispiel hinterlegt sind und wo sein Portal liegt.

输入参数traeger_id必填

abfuhrtermine_fuer_traeger

Abfuhrtermine eines bestimmten Traegers

Fragt einen Traeger direkt ab - fuer Rueckfragen aus `abfuhrtermine` oder wenn der Traeger bereits feststeht.

输入参数bisvonlimitadresseargumentetraeger_id必填abfallarten

abdeckung

Abdeckung

Zeigt, wie viele Entsorgungstraeger und Datenquellen erfasst sind.

无需输入参数。

版本历史

1
  1. v0.2.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分