German Newsfeed MCP Server

io.github.Jakolo121由 GitHub 账号 Jakolo121 发布v2.0.2更新于 Oct 24, 2026

MCP server for the public news API of tagesschau.de, including regional news from ARD broadcasters

概览

AI 生成的概览

本地 MCP 服务器,将 AI 助手连接到 tagesschau.de 的公开新闻 API,可获取头条、分类与地区新闻、全文搜索和直播频道列表。

可以做什么
获取头条新闻,包含文章全文,并可通过列表中的链接或 tagesschau.de 文章网址读取单篇文章的完整正文(每次调用消耗一次上游请求)。
适用场景
适合让助手回答有关德国时事的问题,例如当前头条、经济等分类新闻、某个联邦州的地区新闻,或与搜索词匹配的文章,并附带来源链接。它面向德语新闻资讯,而非通用网页搜索。
运行要求
以 Python 包形式通过 stdio 在本地运行,需要 Python 3.12+ 和 uv(若使用可选的 HTTP 传输,则需要 Docker 24+ 与 Docker Compose v2+)。无需 API 密钥或账号。需要能访问 tagesschau.de API 的网络。可选环境变量:TRANSPORT、HOST、PORT、LOG_LEVEL、RATE_LIMIT_PER_HOUR、USER_AGENT_CONTACT。
安装前请注意
上游 API 非官方且无正式文档,可能随时变更。其使用条款限制为每小时最多 60 次请求,除 CC 许可的用途外禁止转载内容;内容不得用于训练 AI 模型,合规责任由实例运营者承担。可选的 HTTP 传输没有身份验证,不要在无认证层的情况下公开暴露。限流器为进程内状态,多副本或重启可能超出配额。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

German Newsfeed MCP Server

[pylint] [tests] [python] [license]

Disclaimer: This is a private, unofficial project. It is not an ARD product and is neither operated nor endorsed by ARD, ARD-aktuell, or NDR. It is developed independently of the author's professional employment. "ARD" and "tagesschau" are trademarks of their respective owners and are named here solely to describe the API being accessed.

This project merely connects the public API to an MCP-capable AI assistant. ARD-aktuell is responsible for the API itself, its operation, and its content; this project cannot provide information on any of those. Please raise any concerns about this project, in particular from rights holders, as a GitHub issue. Substantiated concerns will be addressed promptly.

In thirty seconds

This Model Context Protocol (MCP) server connects your AI assistant (Claude Desktop and others) to the public news API of tagesschau.de: current headlines, category and regional news, and full-text search, locally via stdio, no API key required.

Example: asked "Was sind die aktuellen Schlagzeilen?", the assistant answers with the current top stories from tagesschau.de, each with title, date, summary, and a link to the article.

Language:

  • 🇩🇪 Deutsch
  • 🇬🇧 English

Table of Contents
  1. What is this?
  2. Data Source and Terms of Use
  3. Features
  4. Project Structure
  5. Quick Start Local (Claude Desktop)
  6. Remote / Docker Deployment
  7. Configuration Reference
  8. Available Tools
  9. Available Resources
  10. Development Guide
  11. Running the Tests
  12. Makefile Reference
  13. Troubleshooting
  14. When it stops working
  15. License & Acknowledgements

What is this?

This MCP server connects the public news API of tagesschau.de to your AI assistant (Claude, Open Claw, etc.).

Once connected, your AI can answer questions like:

  • "Was sind die aktuellen Schlagzeilen?"
  • "Zeig mir die neuesten Wirtschaftsnachrichten."
  • "Suche nach Artikeln über Ukraine."
  • "Welche Regionalnachrichten gibt es aus Bayern?"

For details on the API and its terms, see Data Source and Terms of Use. No API key required.


Data Source and Terms of Use

This server calls the publicly accessible endpoint www.tagesschau.de/api2u/, operated by ARD-aktuell. The delivered content originates from the ARD broadcasters, remains subject to their rights and to the terms of use of tagesschau.de: https://www.tagesschau.de/nutzungsbedingungen/

The API is not officially documented. Community documentation is available at bund.dev (https://tagesschau.api.bund.dev). bund.dev is a civil-society documentation project, neither the operator of the API nor a rights holder of the content. Its documentation served as a reference for this project but does not grant any usage rights.

Applicable limits: at most 60 requests per hour, and no republication of the content except for offerings under a CC licence (https://tagesschau.de/creativecommons). Compliance is the responsibility of whoever operates a given instance.

The robots.txt of tagesschau.de additionally declares an express reservation of rights under Section 44b(3) of the German Copyright Act (as of 2026-05-19): text and data mining and the automated use of the content for training or fine-tuning AI models are prohibited without written consent. Expressly exempt is automated access for the sole purpose of retrieval-augmented generation (RAG) or grounding, provided the technical directives of the robots.txt are complied with and the content remains attributed to its original source. This server falls under that exemption: it passes content to the assistant exclusively together with source links. The retrieved content must not be used to train AI models.


Features

🗞️ Live newsFetches breaking news, categorised news, and regional news in real time
🔍 Full-text searchSearch across all available articles
📺 Live streamsList all available channels and HLS stream URLs
⏱️ Rate limiterLocal token bucket honouring the API's 60/h limit
🚀 Dual transportstdio for local Claude Desktop; streamable-http for remote / Docker
🐳 Docker-readyMulti-stage image, non-root user, health-check, resource limits
✅ 273 tests251 unit tests + 22 live integration tests
🛠️ Makefilemake test, make lint, make docker-build and more
🔒 No secretsPublic API, no API keys

Project Structure

german-newsfeed-mcp/├── src/│   └── german_newsfeed_mcp/│       ├── __init__.py      # Package metadata│       ├── config.py        # Environment-driven configuration│       ├── client.py        # Async HTTP client (httpx) + error handling│       ├── rate_limiter.py  # Token-bucket rate limiter│       ├── validators.py    # Domain constants + validation helpers│       ├── formatters.py    # Markdown rendering of news items & channels│       ├── tools.py         # MCP tool business logic│       ├── resources.py     # MCP resource business logic│       └── server.py        # Composition root: FastMCP + run() entry-point├── tests/│   ├── conftest.py          # Shared fixtures & mock payloads│   ├── test_client.py       # Client unit + live integration tests│   ├── test_rate_limiter.py # Rate-limiter unit tests│   ├── test_validators.py   # Validator unit tests (URL & ressort checks)│   ├── test_formatters.py   # Formatter unit tests (pure functions)│   ├── test_tools.py        # Tool unit + live integration tests│   └── test_resources.py    # Resource unit + live integration tests├── main.py                  # Thin entry-point (calls server.run())├── pyproject.toml           # Project metadata, deps, pytest & pylint config├── uv.lock                  # Locked dependency graph (commit this!)├── Dockerfile               # Multi-stage production image├── docker-compose.yml       # One-command remote deployment├── .env.example             # Configuration template├── Makefile                 # Developer shortcuts (test, lint, docker, clean)├── CHANGELOG.md             # Version history├── CONTRIBUTING.md          # How to contribute└── README_de.md             # German version of this file

Quick Start Local (Claude Desktop)

Also applicable to other AI assistants, edit their respective config instead. This mode uses stdio transport; the server is launched as a child process. No port is needed.

Prerequisites

Step 1: Clone and install

bash
git clone https://github.com/Jakolo121/german-newsfeed-mcp.gitcd german-newsfeed-mcpuv sync

Step 2: Verify it works

bash
uv run python -c "from german_newsfeed_mcp.server import mcp; print('OK!', mcp.name)"# Expected: OK! German Newsfeed MCP

Step 3: Connect Claude Desktop

Open your Claude Desktop config file:

OSPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

Add the following entry (adjust the path to your clone):

json
    "german-newsfeed": {      "command": "uv",      "args": [        "--directory",        "/absolute/path/to/german-newsfeed-mcp",        "run",        "german-newsfeed-mcp"      ]    },

Step 4: Restart Claude Desktop

Quit and reopen the application, or reload its MCP servers, depending on the application.

Step 5: Try it!

Ask your assistant:

"Was sind die aktuellen Nachrichten?"


Remote / Docker Deployment

Self-hosting for your own or team-internal use. The recommended default is stdio (see Quick Start); the streamable-http transport is an option you choose deliberately.

Security note: The HTTP transport has no authentication. Do not expose it publicly without an authentication layer in front (e.g. a reverse proxy). The Compose setup therefore deliberately binds the port to 127.0.0.1 only. Whoever makes an instance reachable for third parties becomes the responsible operator under the terms of use.

Rate limiter limitations: stateless_http=True refers to MCP sessions, not to the rate limiter. The token bucket is process-local in-memory state. Two limitations follow:

  1. Multiple replicas against the same upstream API multiply the request budget.
  2. A container restart resets the bucket to full. Combined with restart: unless-stopped and a crash loop, this can exceed the limit. Watch the logs.

(The legacy sse transport is still supported.)

Prerequisites

Step 1: Create your .env file

bash
cp .env.example .env# Edit .env if you want a different port or log level

Step 2: Build and start

bash
docker compose up --build -d

Or:

bash
make docker-buildmake docker-run

The server starts at http://localhost:8000.

Step 3: Verify health

bash
docker compose logs german-newsfeed-mcpdocker compose ps

Or:

bash
make docker-logs

Step 4: Connect Claude Desktop (Streamable HTTP)

json
    "german-newsfeed": {      "command": "npx",      "args": ["mcp-remote", "http://localhost:8000/mcp"]    },

For external servers: put an authentication layer in front first (see the security note above), then adjust the loopback binding in docker-compose.yml and replace localhost with your proxy's address.

Stop / Update

bash
docker compose downdocker compose up --build -d

Configuration Reference

All settings are read from environment variables (or a .env file).

VariableDefaultDescription
TRANSPORTstdiostdio or streamable-http (sse legacy)
HOST0.0.0.0Bind address (HTTP transports only)
PORT4200HTTP port (HTTP transports only)
LOG_LEVELINFODEBUG, INFO, WARNING, ERROR
RATE_LIMIT_PER_HOUR60Local request budget per hour towards the upstream API
USER_AGENT_CONTACT—Optional: contact info in the User-Agent header; omitted when unset

The defaults apply when running directly (uv run german-newsfeed-mcp). The Compose setup overrides them: it sets HOST=0.0.0.0 and PORT=8000 (see docker-compose.yml).


Available Tools

These tools are callable by your AI assistant.

get_latest_news

Get the top stories.

Returns the full article text for each item (homepage feed). Every item also carries a 🔗 Volltext: link that get_article accepts.

ParameterTypeDefaultDescription
limitint10Max items to return

get_article

Get the complete text of a single article.

Takes the 🔗 Volltext: link printed with every item by get_latest_news, get_news_by_ressort and get_regional_news; a plain https://www.tagesschau.de/<path>.html article link works too.

ParameterTypeDefaultDescription
urlstr—Article link shown in a news listing

Costs exactly one upstream request per call out of the 60/h budget — call it for the articles that matter, not for every headline in a listing.

search_news results carry no article link and cannot be passed to get_article. Locate the article via get_latest_news, get_news_by_ressort or get_regional_news first.


get_news_by_ressort

Filter news by category.

Returns metadata only — title, topline, date and a teaser sentence — no full article text. Every item carries a 🔗 Volltext: link that get_article resolves into the full text.

ParameterTypeDefaultDescription
ressortstr—inland ausland wirtschaft sport video investigativ wissen
limitint10Max items to return

Ressort strings are automatically normalised to lowercase: "Inland", "INLAND" and "inland" are all equivalent.


get_regional_news

News from a specific German state.

Returns metadata only — title, topline, date and a teaser sentence — no full article text. Every item carries a 🔗 Volltext: link that get_article resolves into the full text; because regional items originate at an ARD state broadcaster, they additionally carry a 📰 Quelle: line naming that broadcaster.

ParameterTypeDefaultDescription
region_idint—1=BW · 2=BY · 3=BE · 4=BB · 5=HB · 6=HH · 7=HE · 8=MV · 9=NI · 10=NW · 11=RP · 12=SL · 13=SN · 14=ST · 15=SH · 16=TH
ressortstrNoneOptional category filter
limitint10Max items to return

search_news

Full-text search across all available articles.

Returns metadata only — title, date and article type — no full article text. Search results carry no article link and therefore cannot be passed to get_article.

ParameterTypeDefaultDescription
search_textstr—Search query
page_sizeint10Results per page (max 30)
result_pageint0Page offset (0-based)

get_channels

List all live channels with stream URLs.

(No parameters)


Available Resources

Resources are addressable URIs that MCP clients can read directly.

URIDescription
news://tagesschau/homepageHomepage top stories
news://tagesschau/news/{ressort}News by category
news://tagesschau/regional/{region_id}Regional news by state ID
news://tagesschau/search/{search_text}Search results
news://tagesschau/channelsAvailable channels & streams

Development Guide

Setup

bash
git clone https://github.com/Jakolo121/german-newsfeed-mcp.gitcd german-newsfeed-mcpuv sync --extra dev

Start the server:

bash
uv run german-newsfeed-mcp

Or:

bash
make run

Code organisation (SOLID)

Each module has exactly one responsibility:

ModuleResponsibility
config.pyRead & expose env vars
client.pyHTTP requests + error handling
rate_limiter.pyLocal request budget (token bucket)
validators.pyDomain constants (VALID_RESSORTS) + input validation
formatters.pyTurn raw API dicts into Markdown
tools.pyValidate inputs, call client, call formatter
resources.pySame as tools but for MCP resources
server.pyComposition root: assemble FastMCP, register handlers, start

Adding a new tool

  1. Add a tool_<name>() async function in tools.py
  2. Register it with @mcp.tool() in server.py
  3. Write unit + integration tests in tests/test_tools.py

Running the Tests

Unit tests (no internet required, fast)

bash
uv run pytest -m "not integration"     # run all unit testsuv run pytest -m "not integration" -v  # verbose outputuv run pytest tests/test_formatters.py # single file

Or:

bash
make test

Live integration tests (requires internet)

bash
uv run pytest -m integration           # all live testsuv run pytest -m integration -v        # verbose

Full suite

bash
uv run pytest

Or:

bash
make test-all

Quality gate (lint + tests)

bash
uv run pylint src/german_newsfeed_mcp/uv run pytest

Or:

bash
make check

Expected results

251 passed            ← unit tests (no network) 22 selected          ← integration tests (live API)

Makefile Reference

bash
make test          # fast unit tests (no network, ~0.3 s)make test-all      # unit + live integration testsmake lint          # pylintmake check         # lint + unit tests — use as CI gatemake run           # start server in stdio mode (Claude Desktop)make run-http      # start server in streamable-http modemake docker-build  # build Docker imagemake docker-run    # docker compose up -dmake docker-stop   # docker compose downmake docker-logs   # tail docker compose logsmake clean         # remove __pycache__, .pytest_cache, dist, etc.

Troubleshooting

Claude Desktop shows no MCP tools

  1. Check that the claude_desktop_config.json path is absolute
  2. Run uv run python main.py in the terminal, it should start without errors
  3. Fully quit and reopen Claude Desktop (Cmd+Q, not just close window)

Docker container exits immediately

bash
docker compose logs german-newsfeed-mcp

Or:

bash
make docker-logs

Common causes: wrong TRANSPORT value (must be streamable-http in Docker), port already in use.

API timeouts

The upstream API occasionally rate-limits certain endpoints. This is normal, the server returns a descriptive error message rather than crashing. Retry after a few seconds.

Rate-limit errors

If the server reports "Rate limit exceeded", the local request budget (RATE_LIMIT_PER_HOUR, default 60/h) is exhausted. No request was sent upstream. Try again later.

Import errors in tests

bash
uv sync --extra dev     # ensure dev deps are installeduv run pytest           # always run via uv, not bare pytest

When it stops working

The upstream API is not officially documented and can change without notice. You can tell by the tools suddenly returning empty lists or error messages although tagesschau.de is reachable, and by the live integration tests failing (uv run pytest tests/ -m integration).

All endpoints are defined in a single place: ENDPOINTS in src/german_newsfeed_mcp/client.py. API changes can be tracked there.

The CI job upstream-check (.github/workflows/ci.yml) runs exactly these live tests weekly against the real API and fails loudly when the response format no longer matches.


License & Acknowledgements

Apache License 2.0.

The delivered news items are content of the ARD broadcasters, subject to their rights and the terms of use of tagesschau.de, see Data Source and Terms of Use.

Thanks to AndreasFischer1985, the bund.dev community for documenting the API and above all to the journalists at the ARD broadcasters, whose work this project merely passes along.

来源:README.md,提交 6a6b7b6

工具

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

版本历史

1
  1. v2.0.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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