Skip to main content
Glama
README.md
# fr-mcp πŸ“°

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

Unofficial **read-only** MCP server for **[fr.de](https://www.fr.de)** (Frankfurter Rundschau) β€” the Frankfurt-based national daily (Ippen group), founded 1945 β€” via its official RSS feeds (no key, no login) and article pages, whose full text comes from the server-rendered `<article>` paragraphs. Latest news, news by section, keyword search, news by author, the sections directory, and full article text. No key, no login.

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

## For AI agents

Add to your MCP client config (stdio):

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

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

## Tools

| Tool | Description |
|------|-------------|
| `fr_latest` | Latest fr.de news (the official main RSS feed, 40 items), newest first β€” `limit` 1..40. Every item carries a title, a per-article link, a teaser, the section (from the link path), the author (dc:creator β€” empty on about half the items), an image URL (media:thumbnail, 1200x675) and publish time |
| `fr_section` | Latest fr.de news from one section (the official section RSS feed, 40 items) β€” `section`: `politik`, `wirtschaft`, `sport`, `kultur`, `hessen`, `frankfurt`, `verbraucher`, `wissen`, `panorama`, `ratgeber`, `meinung` or `eintracht-frankfurt`; `limit` 1..40 |
| `fr_search_news` | Search fr.de news by keyword (title + teaser + section + author) across the official main RSS feed and the twelve section feeds β€” `query` (e.g. "Eintracht" or "Frankfurt"), `limit` 1..40. Newest first, de-duplicated by link |
| `fr_by_author` | Latest fr.de news by one author (the feeds' dc:creator field) across the main + section feeds β€” `author` (e.g. "Sabrina Mehler", substring match, case-insensitive), `limit` 1..40. About half the feed items carry no author, so those never match |
| `fr_sections` | The fr.de sections with their official RSS feed URLs β€” politik, wirtschaft, sport, kultur, hessen, frankfurt, verbraucher, wissen, panorama, ratgeber, meinung, eintracht-frankfurt |
| `fr_get_article` | Full text of one fr.de article page (the server-rendered `<article>` paragraphs) β€” `url`: a fr.de article URL (/politik/<slug>-zr-<id>.html). Returns title, publish time, author ("" on agency pieces without a byline), section, body text and word count. A paywalled page, if one appears, returns `paywalled: true` with the teaser only. Feed URLs, the home page and off-site links are refused |
| `fr_health` | Reachability probe (ok / blocked / error) β€” one polite request |

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

```json
{"feed_title": "Frankfurter Rundschau - Startseite", "total_results": 40, "count": 1,
 "items": [
  {"title": "Nach Tegut-Verkauf an Edeka: Bio-BΓ€ckerei Herzberger in Fulda wechselt erneut den Besitzer",
   "link": "https://www.fr.de/hessen/bio-baeckerei-herzberger-in-fulda-wechselt-erneut-den-besitzer-zr-94620507.html",
   "description": "Nach dem Tegut-Verkauf an Edeka hat die Bio-BΓ€ckerei Herzberger in Fulda erneut einen neuen EigentΓΌmer. Am Standort arbeiten rund 120 Menschen.",
   "published": "2026-12-03T10:18:15+00:00",
   "section": "hessen", "author": "",
   "image_url": "https://www.fr.de/assets/images/44/620/44620914-baeckerei-eef.jpg"},
  ...]}
```

Notes:
- The server reads the official **RSS feeds** β€” main feed `https://www.fr.de/rssfeed.rdf` (40 items, verified live 2026-12-03) and the twelve section feeds `https://www.fr.de/<section>/rssfeed.rdf` (40 items each: politik, wirtschaft, sport, kultur, hessen, frankfurt, verbraucher, wissen, panorama, ratgeber, meinung, eintracht-frankfurt β€” all verified live 2026-12-03; section feeds carry distinct items, the main feed overlaps each by only 0–12 items).
- **Feed items carry an author and an image, but no category** β€” the section is derived from the link path (/politik/, /sport/fussball/, …). 17 of 40 main-feed items carry a `dc:creator` author; all 40 carry a `media:thumbnail` image (1200x675). All 40 sampled feed links are on fr.de β€” no off-site links were seen, but the guard stays.
- **Article text, honestly:** fr.de pages carry **no JSON-LD articleBody** (0 blocks on all four sampled pages) β€” the body is read from the `<article>` paragraphs. Three leading paragraphs are chrome, not text, and are filtered out: the "Stand: …" date line (kept as the publish time), the "Von: …" byline (kept as the author β€” present on all four sampled articles) and a "KommentareDruckenTeilen(function(a,b)…" share-widget JavaScript blob (800–1,000 chars). A newsletter promo paragraph ("Unser Newsletter versorgt Sie jeden Abend …") that lives inside `<article>` on some pages is filtered out too. Sampled: a Politik article 7 paragraphs / 414 words, a Sport article 7 paragraphs / 306 words, a Meinung article 9 paragraphs / 547 words, a Hessen short piece 3 paragraphs / 99 words.
- **Paywall (defensive, unverified):** the pages carry an explicit dataLayer flag `de.ippen-digital.story.isPaywallContent` (false on all four sampled articles) and no "FR+" marker appeared on any of them; the feeds carry no premium flag β€” no paywalled article could be sampled. The paywall branch (isPaywallContent=true + empty body β†’ `paywalled: true` + teaser) is implemented and unit-tested with a synthetic fixture; a page with no usable body and no marker raises an error, never a fabricated paywall claim.
- **Fallback feeds are not sections:** /deutschland/, /welt/, /leben/, /auto/, /digital/, /stars/, /promi/, /blickpunkt/, /geld/, /finanzen/, /karriere/, /gesundheit/ and /reise/ all return HTTP 200 but serve the main feed verbatim (40/40 overlap, channel title "Startseite") β€” they are not exposed as sections.
- **No video pages:** no video links were found in any feed (all 40 main-feed links end in `.html`) β€” there is no video branch.
- Data: fr.de'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 40 items, Politik 40) plus four real article pages (Hessen, Politik, Sport, Meinung) and a synthetic paywall fixture
- `tests/test_live.py` β€” cautious live requests against fr.de

Tests: 35/35 green (27 offline + 8 live, 2026-12-03).

## 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)