io.github.mohammad-abbasi-sh/merkur-mcp
README.md
# merkur-mcp 📰
mcp-name: io.github.mohammad-abbasi-sh/merkur-mcp
Unofficial **read-only** MCP server for **[merkur.de](https://www.merkur.de)** (Münchner Merkur) — the big Bavarian regional daily (Ippen group) for Munich, its surroundings and Bavaria — 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 merkur.de.
## For AI agents
Add to your MCP client config (stdio):
```json
{
"mcpServers": {
"merkur": {
"command": "uvx",
"args": ["merkur-mcp==0.1.0"]
}
}
}
```
Or run locally: `python -m merkur_mcp.server` (needs `mcp<2`, `httpx`).
## Tools
| Tool | Description |
|------|-------------|
| `merkur_latest` | Latest merkur.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 |
| `merkur_section` | Latest merkur.de news from one section (the official section RSS feed, 40 items) — `section`: `politik`, `lokales`, `sport`, `bayern`, `deutschland`, `welt`, `wirtschaft`, `boulevard`, `verbraucher`, `leben` or `wissen`; `limit` 1..40 |
| `merkur_search_news` | Search merkur.de news by keyword (title + teaser + section + author) across the official main RSS feed and the eleven section feeds — `query` (e.g. "Bayern" or "Söder"), `limit` 1..40. Newest first, de-duplicated by link |
| `merkur_by_author` | Latest merkur.de news by one author (the feeds' dc:creator field) across the main + section feeds — `author` (e.g. "Franziska Schwarz", substring match, case-insensitive), `limit` 1..40. About half the feed items carry no author, so those never match |
| `merkur_sections` | The merkur.de sections with their official RSS feed URLs — politik, lokales, sport, bayern, deutschland, welt, wirtschaft, boulevard, verbraucher, leben, wissen |
| `merkur_get_article` | Full text of one merkur.de article page (the server-rendered `<article>` paragraphs) — `url`: a merkur.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 |
| `merkur_health` | Reachability probe (ok / blocked / error) — one polite request |
Example output (`merkur_latest`, `limit` 1):
```json
{"feed_title": "Merkur.de - Startseite", "total_results": 40, "count": 1,
"items": [
{"title": "Erdbeben am Vesuv und in den Phlegräischen Feldern: Mehrere Erdstöße erschüttern Region um Neapel",
"link": "https://www.merkur.de/welt/erdbeben-serie-in-italien-vesuv-und-phlegraeische-felder-zittern-zr-94618570.html",
"description": "Innerhalb weniger Stunden bebt die Erde am Vesuv und in den Phlegräischen Feldern. Fachleute erklären, was hinter dem zeitlichen Zusammentreffen steckt.",
"published": "2026-12-02T10:18:58+00:00",
"section": "welt", "author": "",
"image_url": "https://www.merkur.de/assets/images/45/93/45093273-ausblick-auf-neapel-und-den-vesuv-ref.jpg"},
...]}
```
Notes:
- The server reads the official **RSS feeds** — main feed `https://www.merkur.de/rssfeed.rdf` (40 items, verified live 2026-12-02) and the eleven section feeds `https://www.merkur.de/<section>/rssfeed.rdf` (40 items each: politik, lokales, sport, bayern, deutschland, welt, wirtschaft, boulevard, verbraucher, leben, wissen — all verified live 2026-12-02; section feeds carry distinct items, the main feed overlaps each by only 1–9 items).
- **Feed items carry an author and an image, but no category** — the section is derived from the link path (/politik/, /lokales/, /sport/, /bayern/, …). 20 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 merkur.de — no off-site links were seen, but the guard stays.
- **Article text, honestly:** merkur.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 — absent on agency pieces, e.g. the sampled Welt article) and a "KommentareDruckenTeilen(function(a,b)…" share-widget JavaScript blob (800–1,000 chars). The cooperation credit ("Dieser Artikel … entstand in Kooperation mit …") is real article text and is kept. Sampled: a Politik article 14 paragraphs / 720 words, a Lokales article 10 paragraphs / 716 words, a Boulevard article 7 paragraphs / 382 words, a Welt agency piece 6 paragraphs / 255 words.
- **Paywall (defensive, unverified):** no "Merkur+" / paywall marker appeared on any sampled article (the 20 "Abo" hits are main-navigation links, not article gates) and the feeds carry no premium flag — no paywalled article could be sampled. The paywall branch (marker + 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.
- **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: merkur.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 (Welt agency piece, Politik, Lokales, Boulevard) and a synthetic paywall fixture
- `tests/test_live.py` — cautious live requests against merkur.de
Tests: 35/35 green (27 offline + 8 live, 2026-12-02).
## 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)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues