Skip to main content

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 news Fetches breaking news, categorised news, and regional news in real time
๐Ÿ” Full-text search Search across all available articles
๐Ÿ“บ Live streams List all available channels and HLS stream URLs
โฑ๏ธ Rate limiter Local token bucket honouring the API's 60/h limit
๐Ÿš€ Dual transport stdio for local Claude Desktop; streamable-http for remote / Docker
๐Ÿณ Docker-ready Multi-stage image, non-root user, health-check, resource limits
โœ… 181 tests 160 unit tests + 21 live integration tests
๐Ÿ› ๏ธ Makefile make test, make lint, make docker-build and more
๐Ÿ”’ No secrets Public 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_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.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

git clone https://github.com/Jakolo121/german-newsfeed-mcp.git
cd german-newsfeed-mcp
uv sync

Step 2: Verify it works

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:

OS Path
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):

    "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

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

Step 2: Build and start

docker compose up --build -d

Or:

make docker-build
make docker-run

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

Step 3: Verify health

docker compose logs german-newsfeed-mcp
docker compose ps

Or:

make docker-logs

Step 4: Connect Claude Desktop (Streamable HTTP)

    "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

docker compose down
docker compose up --build -d

Configuration Reference

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

Variable Default Description
TRANSPORT stdio stdio or streamable-http (sse legacy)
HOST 0.0.0.0 Bind address (HTTP transports only)
PORT 4200 HTTP port (HTTP transports only)
LOG_LEVEL INFO DEBUG, INFO, WARNING, ERROR
RATE_LIMIT_PER_HOUR 60 Local 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.

Parameter Type Default Description
limit int 10 Max items to return

get_news_by_ressort

Filter news by category.

Parameter Type Default Description
ressort str โ€” inland ausland wirtschaft sport video investigativ wissen
limit int 10 Max 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.

Parameter Type Default Description
region_id int โ€” 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
ressort str None Optional category filter
limit int 10 Max items to return

search_news

Full-text search across all available articles.

Parameter Type Default Description
search_text str โ€” Search query
page_size int 10 Results per page (max 30)
result_page int 0 Page 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.

URI Description
news://tagesschau/homepage Homepage 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/channels Available channels & streams

Development Guide

Setup

git clone https://github.com/Jakolo121/german-newsfeed-mcp.git
cd german-newsfeed-mcp
uv sync --extra dev

Start the server:

uv run german-newsfeed-mcp

Or:

make run

Code organisation (SOLID)

Each module has exactly one responsibility:

Module Responsibility
config.py Read & expose env vars
client.py HTTP requests + error handling
rate_limiter.py Local request budget (token bucket)
validators.py Domain constants (VALID_RESSORTS) + input validation
formatters.py Turn raw API dicts into Markdown
tools.py Validate inputs, call client, call formatter
resources.py Same as tools but for MCP resources
server.py Composition 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)

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

Or:

make test

Live integration tests (requires internet)

uv run pytest -m integration           # all live tests
uv run pytest -m integration -v        # verbose

Full suite

uv run pytest

Or:

make test-all

Quality gate (lint + tests)

uv run pylint src/german_newsfeed_mcp/
uv run pytest

Or:

make check

Expected results

160 passed            โ† unit tests (no network)
 21 selected          โ† integration tests (live API)

Makefile Reference

make test          # fast unit tests (no network, ~0.3 s)
make test-all      # unit + live integration tests
make lint          # pylint
make check         # lint + unit tests โ€” use as CI gate
make run           # start server in stdio mode (Claude Desktop)
make run-http      # start server in streamable-http mode
make docker-build  # build Docker image
make docker-run    # docker compose up -d
make docker-stop   # docker compose down
make docker-logs   # tail docker compose logs
make 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

docker compose logs german-newsfeed-mcp

Or:

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

uv sync --extra dev     # ensure dev deps are installed
uv 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

german_newsfeed_mcp-2.0.2.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

german_newsfeed_mcp-2.0.2-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file german_newsfeed_mcp-2.0.2.tar.gz.

File metadata

  • Download URL: german_newsfeed_mcp-2.0.2.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for german_newsfeed_mcp-2.0.2.tar.gz
Algorithm Hash digest
SHA256 6e134cb8fb5efccb4e7e8135e6c9ca8c9e57e97be94b9d3b967064cbb0995c27
MD5 493755c476ede8368f64ffcd9b2c00ba
BLAKE2b-256 d4e97ad10517eaa0b172fbbe2f1b55cf1e37ca569c7c6cbbb3ebe940abac6a7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for german_newsfeed_mcp-2.0.2.tar.gz:

Publisher: publish.yml on Jakolo121/german-newsfeed-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file german_newsfeed_mcp-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for german_newsfeed_mcp-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6eb090da69e6b079eab784f5f526643fc58792a5945804e0a74cd96191fe5559
MD5 a9f104e743742e9d905394ef68bb0f50
BLAKE2b-256 cf2983b5b6191a10ae9170b1c834ec5f6e55ce77eb25e35f43e8a0a33bf7a646

See more details on using hashes here.

Provenance

The following attestation bundles were made for german_newsfeed_mcp-2.0.2-py3-none-any.whl:

Publisher: publish.yml on Jakolo121/german-newsfeed-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page