Skip to main content
Glama
README.md
# rbb-mcp πŸ“»

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

Unofficial **read-only** MCP server for **[rbb24](https://www.rbb24.de)** (Rundfunk Berlin-Brandenburg) β€” the ARD public broadcaster for Berlin and Brandenburg (about 6.2 million people in its coverage area) β€” via its official RSS feeds (no key, no login) and article pages, whose full text comes from the JSON-LD NewsArticle `articleBody` when present, else from the page's `component-text` paragraphs. Latest news, news by region, news by section, keyword search, the sections and regions directory, and full article text. No key, no login.

> Built by Mohammad Abbasi as part of the "Germany MCP factory". Not affiliated with rbb.

## For AI agents

Add to your MCP client config (stdio):

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

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

## Tools

| Tool | Description |
|------|-------------|
| `rbb_latest` | Latest rbb24 news (the official main RSS feed, 55 items), newest first β€” `limit` 1..60. Every item carries a title, a per-article link, a teaser (empty for breaking-news flashes β€” 29 of 55 items), the section (from the link path) and publish time |
| `rbb_region` | Latest rbb24 news from one region (the official regional RSS feed) β€” `region`: `berlin` (114 items) or `brandenburg` (74 items); `limit` 1..60 |
| `rbb_section` | Latest rbb24 news from one section (the official section RSS feed) β€” `section`: `politik` (130 items), `sport` (91), `kultur`, `wirtschaft` or `panorama`; `limit` 1..60 |
| `rbb_search_news` | Search rbb24 news by keyword (title + teaser + section) across the official main RSS feed and the five section feeds β€” `query` (e.g. "Berlin" or "SPD"), `limit` 1..60. Newest first, de-duplicated by link |
| `rbb_sections` | The rbb24 sections and regions with their official RSS feed URLs β€” politik, sport, kultur, wirtschaft, panorama, berlin, brandenburg |
| `rbb_get_article` | Full text of one rbb24 article page (the JSON-LD NewsArticle `articleBody` when present, else the page's `component-text` paragraphs) β€” `url`: an rbb24.de article URL (/politik/beitrag/2026/12/<slug>.html). Returns title, publish time, section, body text and word count. rbb24 pages carry no named author (author is always ""). Video pages (/av/...) return `kind: "video"` with a short description. Feed URLs, the home page and off-site links are refused |
| `rbb_health` | Reachability probe (ok / blocked / error) β€” one polite request |

Example output (`rbb_latest`, `limit` 1):

```json
{"feed_title": "rbb24 - Nachrichten aus Berlin und Brandenburg | rbb24", "total_results": 55, "count": 1,
 "items": [
  {"title": "Großbrand in Tischlerei: Feuerwehr in Alt-Treptow im Einsatz",
   "link": "https://www.rbb24.de/panorama/beitrag/2026/12/brand-berlin-treptow-tischlerei-feuerwehr-einsatz.html",
   "description": "",
   "published": "2026-12-01T10:26:00+00:00",
   "section": "panorama", "region": ""},
  ...]}
```

Notes:
- The server reads the official **RSS feeds** β€” main feed `https://www.rbb24.de/index.xml/feed=rss.xml` (55 items, verified live 2026-12-01), Berlin `https://www.rbb24.de/berlin/index.xml/feed=rss.xml` (114 items), Brandenburg `https://www.rbb24.de/brandenburg/index.xml/feed=rss.xml` (74 items), and the section feeds `https://www.rbb24.de/<section>/index.xml/feed=rss.xml` (politik 130, sport 91, kultur, wirtschaft, panorama β€” all verified live 2026-12-01). No feeds exist for deutschland, welt, wissen, gesundheit or abendschau (404), and verkehr/wetter redirect to landing pages (302) β€” they are not exposed.
- **Feed items carry no category, author or image** β€” the section is derived from the link path (/politik/, /panorama/, /sport/, /kultur/, /wirtschaft/, …), the region only from which regional feed the item came from (region-feed items are filed under sections, not /berlin/ or /brandenburg/). There is no topics tool and no by-author tool. All 469 sampled feed links are on rbb24.de β€” no off-site links were seen, but the guard stays.
- **Empty teasers are kept, never padded:** 29 of 55 main-feed items are breaking-news flashes with an empty `<description>` β€” they are returned with an empty teaser.
- **Article text, honestly:** some pages carry a JSON-LD NewsArticle `articleBody` (a Kultur article sampled 3,927 chars / 585 words); others carry only an AudioObject block with no body (a Politik article sampled 4 paragraphs / 136 words from the page's `component-text` divs β€” the body divs follow the `<article>` header block, so the search is page-wide). The headline is the `<h1>`, the date the JSON-LD `datePublished` or the `<time datetime>` (German format, Europe/Berlin). The image caption and the "Sendung: …" audio line are filtered out; the related-article "clinker" carries no `component-text` divs and is never included. rbb24 pages carry **no named author** β€” `rbb_get_article` returns `author: ""`.
- **Video pages** (/av/av24/video-*.html) carry a short JSON-LD `articleBody` (268 chars sampled) β€” `kind: "video"`, `teaser_only: true`; the video itself is not transcribed.
- **No paywall:** rbb is a public broadcaster, all articles are free β€” zero paywall markers on either sampled article and none in the feeds. No paywall branch is implemented; a page with no usable body raises an error, never a fabricated paywall claim.
- The feeds' own terms restrict use to non-commercial offers and forbid archiving β€” this server is read-only, non-commercial, fetches live on every call and stores nothing.
- Data: rbb24's public RSS feeds and article pages β€” no key, no login, read-only.

## Development

```bash
python3 -m venv .venv && .venv/bin/pip install "mcp<2" httpx pytest
.venv/bin/pip install -e .
.venv/bin/python -m pytest tests/ -q
```

- `tests/test_domain.py` β€” offline, parses the real captured feeds (main 55 items, Berlin 114, Politik 130) plus three real article pages (a Politik article via the SSR fallback, a Kultur article via JSON-LD, a video page)
- `tests/test_live.py` β€” cautious live requests against rbb24.de

Tests: 31/31 green (22 offline + 9 live, 2026-12-01).

## License

[PolyForm Noncommercial 1.0.0](https://polyformproject.org/licenses/noncommercial/1.0.0/) β€” free for personal and non-commercial use; commercial use needs a separate license (see LICENSE).

---

Built by [Mohammad Abbasi](https://github.com/mohammad-abbasi-sh) β€” [Almanibama](https://almanibama.ir) Β· [mabbasi.ir](https://mabbasi.ir)