# srgssr-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/malkreide/srgssr-mcp  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/srgssr-mcp

## Description
SRG SSR weather, video, audio, EPG, Polis

## Tools
Capabilities this server exposes over MCP:

- **srgssr_epg_get_programs** — Ruft den vollständigen Programmplan (Electronic Program Guide) eines SRG SSR TV- oder Radiosenders für einen bestimmten Tag ab.

<use_case>TV-/Radio-Programmvorschauen, redaktionelle Programm-Tipps.</use_case>

<important_notes>Verfügbar nur für SRF, RTS und RSI — nicht für RTR oder SWI. Die channel_id ist eine Sender-Kennung der EPG-API und wird mit Bindestrich geschrieben ('srf-1', nicht 'srf1'); RTS-Radio verwendet Grossbuchstaben. Bekannte Sender:
srf tv: srf-1, srf-2, srf-info
srf radio: srf-1, srf-2, srf-2-kultur, srf-3, srf-4, srf-musikwelle, srf-virus
rts tv: rts-1, rts-2, rts-info
rts radio: LA1ERE, ESPACE2, COULEUR3, OPTION_MUSIQUE
rsi tv: la-1, la-2
rsi radio: rete-uno, rete-due, rete-tre</important_notes>

<example>business_unit='srf', broadcast_type='tv', channel_id='srf-1', date='2026-04-30'</example>

<example>business_unit='rsi', broadcast_type='radio', channel_id='rete-uno', date='2026-04-30'</example>
- **srgssr_weather_search_location** — Sucht Schweizer Standorte für die Wettervorhersage nach Name oder Postleitzahl und gibt eine Liste von Orten mit geolocationId zurück.

<use_case>Wetteranalysen, Reiseplanung und journalistische Recherchen zu Schweizer Standorten. Erster Schritt vor srgssr_weather_current, srgssr_weather_forecast_24h oder srgssr_weather_forecast_7day, um die präzise geolocationId für eine Vorhersage zu ermitteln.</use_case>

<important_notes>Beschränkt auf Schweizer Standorte (SRF Meteo). Die zurückgelieferte geolocationId verbessert die Qualität der Wettervorhersagen gegenüber reinen Koordinaten.</important_notes>

<example>query='Zürich' | query='8001' | query='Lausanne'</example>
- **srgssr_weather_current** — Liefert die aktuelle Wettersituation von SRF Meteo für einen Schweizer Standort (Temperatur, Wettercode, Wind, Niederschlag, Luftfeuchtigkeit).

<use_case>Echtzeit-Wetterabfragen für Outdoor-Aktivitäten, Verkehrsmeldungen, Energieprognosen oder kontextuelle Anreicherung von redaktionellen Inhalten.</use_case>

<important_notes>Nur für Schweizer Standorte (Latitude 45.8–47.9, Longitude 5.9–10.5). geolocation_id aus srgssr_weather_search_location empfohlen.</important_notes>

<example>latitude=47.3769, longitude=8.5417 (Zürich)</example>
- **srgssr_weather_forecast_24h** — Liefert die stündliche Wettervorhersage der nächsten 24 Stunden von SRF Meteo.

<use_case>Tagesplanung, Veranstaltungsorganisation, kurzfristige Wetterwarnungen.</use_case>

<important_notes>Nur für Schweizer Standorte (Latitude 45.8–47.9, Longitude 5.9–10.5). Liefert maximal 24 stündliche Datenpunkte.</important_notes>

<example>latitude=47.3769, longitude=8.5417</example>
- **srgssr_weather_forecast_7day** — Liefert die tägliche Wettervorhersage der nächsten 7 Tage von SRF Meteo mit Min/Max-Temperatur, Niederschlag und Wetterlage pro Tag.

<use_case>Wochenplanung, Tourismus-Empfehlungen, Trendanalysen.</use_case>

<important_notes>Nur für Schweizer Standorte. Liefert maximal 7 Tage; Tage 1–3 sind deutlich verlässlicher als Tage 5–7.</important_notes>

<example>latitude=47.3769, longitude=8.5417</example>
- **srgssr_daily_briefing** — Aggregiertes Tagesbriefing: kombiniert die 24-Stunden-Wettervorhersage von SRF Meteo mit dem EPG-Tagesprogramm eines SRG SSR TV- oder Radiosenders. Beide Datenquellen werden parallel abgerufen (asyncio.gather), so dass ein einzelner Tool-Call genügt statt zweier sequentieller Roundtrips.

<use_case>«Wetter + Programm für heute Abend»: Abendplanung, redaktionelle Tages-Briefings.</use_case>

<important_notes>EPG nur für SRF, RTS und RSI. Bei Ausfall einer der beiden Quellen wird die andere Sektion trotzdem geliefert (Graceful Degradation) — das Feld enthält dann ein ToolErrorResponse.</important_notes>

<example>business_unit='srf', channel_id='srf-1', date='2026-04-30', latitude=47.3769, longitude=8.5417</example>
- **srgssr_video_get_shows** — Listet TV-Sendungen einer SRG SSR Unternehmenseinheit auf (SRF, RTS, RSI, RTR, SWI) mit Sendungstitel, ID und Beschreibung.

<use_case>Katalog-Browsing für TV-Sendungen, Programmanalysen.</use_case>

<important_notes>Die API gruppiert Sendungen nach Anfangsbuchstabe. Ohne character_filter werden alle Buchstaben abgefragt und zusammengeführt — das sind 27 Abfragen, also nur nutzen, wenn wirklich der ganze Katalog gebraucht wird. Mit character_filter ist es eine einzige Abfrage. page_size gilt pro Buchstabe. Episoden über srgssr_video_get_episodes mit der show_id.</important_notes>

<example>business_unit='srf', character_filter='t'</example>
- **srgssr_video_get_episodes** — Ruft die neuesten Episoden einer TV-Sendung ab (Episodentitel, Datum, Dauer und Video-ID für den Mediaplayer Pillarbox).

<use_case>Recherche zu konkreten Sendungsausgaben.</use_case>

<important_notes>Episoden in chronologisch absteigender Reihenfolge. Paginiert mit page_size 1–50.</important_notes>

<example>business_unit='srf', show_id='tagesschau'</example>

<important_notes>Gültige show_id liefert srgssr_video_get_shows.</important_notes>
- **srgssr_video_get_livestreams** — Listet alle Live-TV-Sender einer SRG SSR Unternehmenseinheit auf.

<use_case>Live-Stream-Auswahl, Voraussetzung für srgssr_epg_get_programs (das eine channel_id benötigt).</use_case>

<important_notes>RTR und SWI haben weniger oder keine Live-Kanäle.</important_notes>

<example>business_unit='srf'</example>
- **srgssr_audio_get_shows** — Listet Radiosendungen eines SRG SSR Radiokanals auf.

<use_case>Katalog-Browsing für Radio- und Podcast-Formate.</use_case>

<important_notes>Die API listet Radiosendungen nur pro Kanal — channel_id ist Pflicht und stammt aus srgssr_audio_get_livestreams. Innerhalb eines Kanals sind die Sendungen nach Anfangsbuchstabe gruppiert: ohne character_filter werden alle 27 Buchstaben abgefragt und zusammengeführt, mit character_filter ist es eine einzige Abfrage. Audio-Kataloge enthalten häufig auch reine Podcasts.</important_notes>

<example>business_unit='srf', channel_id='69e8ac16-4327-4af4-b873-fd5cd6e895a7', character_filter='e'</example>
- **srgssr_audio_get_episodes** — Ruft die neuesten Episoden einer Radiosendung ab.

<use_case>Auffinden konkreter Radiobeiträge oder Podcast-Folgen.</use_case>

<important_notes>Episoden in chronologisch absteigender Reihenfolge.</important_notes>

<example>business_unit='srf', show_id='echo'</example>
- **srgssr_audio_get_livestreams** — Listet alle Live-Radiosender einer SRG SSR Unternehmenseinheit auf.

<use_case>Aufbau von Radio-Senderverzeichnissen, Live-Stream-Auswahl, Voraussetzung für srgssr_epg_get_programs (das eine channel_id benötigt). Für Live-TV stattdessen srgssr_video_get_livestreams verwenden, für Sendungsverzeichnisse srgssr_audio_get_shows.</use_case>

<important_notes>RTR und SWI haben weniger oder keine Live-Kanäle; eine andere Unternehmenseinheit liefert in der Regel mehr Resultate.</important_notes>

<example>business_unit='srf'</example>
- **srgssr_polis_get_votations** — Ruft Schweizer Volksabstimmungen und Referenden (national und kantonal) aus dem Polis-System ab. Liefert Datum, Titel und votation_id pro Eintrag.

<use_case>Historische Analysen von Abstimmungsverhalten, journalistische Recherchen zu direkter Demokratie. Erster Schritt, um eine votation_id für srgssr_polis_get_votation_results zu ermitteln. Für Wahlen (Nationalrat, Ständerat) stattdessen srgssr_polis_get_elections.</use_case>

<important_notes>Daten reichen zurück bis 1900. Der Kantonsfilter wird in eine locationid aufgelöst, der Jahresfilter in die Abstimmungstage des Zeitraums — ein Jahresbereich kostet deshalb mehrere Abfragen und sollte eng gesetzt werden. Paginiert mit page_size 1–100.</important_notes>

<example>year_from=2020, year_to=2024 | canton='ZH'</example>
- **srgssr_polis_get_votation_results** — Ruft detaillierte Resultate einer einzelnen Schweizer Volksabstimmung ab (Ja/Nein-Anteile, Stimmbeteiligung, kantonale Ergebnisse, Annahme/Ablehnung).

<use_case>Vertiefte politische Analysen, Visualisierung kantonaler Unterschiede.</use_case>

<important_notes>Erfordert eine votation_id aus srgssr_polis_get_votations.</important_notes>

<example>votation_id='v1'</example>
- **srgssr_polis_get_elections** — Ruft Schweizer Nationalrats-, Ständerats- und kantonale Wahlen aus dem Polis-System ab. Liefert Datum, Wahlbezeichnung und Wahl-ID.

<use_case>Historische Wahlanalysen, journalistische Recherchen.</use_case>

<important_notes>Daten reichen zurück bis 1900. Filter nach Jahr und Kanton möglich.</important_notes>

<example>year_from=2023</example>

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "srgssr-mcp": {
    "command": "uvx",
    "args": ["srgssr-mcp"],
    "env": {
      "SRGSSR_CONSUMER_KEY": "",
      "SRGSSR_CONSUMER_SECRET": ""
    }
  }
}
```

**Requires environment variables:** `SRGSSR_CONSUMER_KEY`, `SRGSSR_CONSUMER_SECRET` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What srgssr-mcp does

The srgssr-mcp MCP server provides one MCP interface for several SRG SSR public API areas: SRF Meteo weather, SRG SSR television and radio metadata, electronic program guides, and Polis data about Swiss votations and elections. The covered media units include SRF, RTS, RSI, RTR, and SWI where supported by the underlying APIs.

Weather tools first resolve a Swiss place by name or postal code, returning a `geolocationId` for subsequent current-condition and forecast requests. Forecast options include hourly data for the next 24 hours and daily data for seven days.

Media tools list TV and radio shows, retrieve recent episodes, and find live channels or stations. The EPG tool returns a daily schedule for a selected TV or radio channel. Polis tools query popular votes from 1900 onward, return detailed results for an individual vote, and retrieve election results at national or cantonal scope.

## How it works

The srgssr-mcp MCP server translates MCP calls into requests to SRG SSR public APIs and returns structured JSON responses. It uses OAuth2 with the client-credentials flow, obtaining access tokens from the Consumer Key and Consumer Secret configured by the operator.

The server supports three transport values: `stdio`, which is the default for local clients; `sse`; and `streamable-http`, which can be used for browser or cloud deployments. Host, port, and mount-path settings are controlled through environment variables when running an HTTP-based deployment.

In addition to tools, the implementation includes MCP resources for daily EPG entries and immutable closed-votation results. It also provides prompts for structured voting analysis and a daily canton briefing that combines weather and EPG information.

## Setup and configuration

Use Python 3.11 or newer. Register at the SRG SSR developer portal, create an application, add the SRG SSR PUBLIC API V2 product, and copy the resulting Consumer Key and Consumer Secret. The APIs are documented as available for non-commercial use; commercial users are directed to contact SRG SSR.

Install from PyPI with `pip install srgssr-mcp`, install the editable package from a repository checkout, or launch it without permanent installation using `uvx srgssr-mcp`. Set these required variables before starting the process:

- `SRGSSR_CONSUMER_KEY`
- `SRGSSR_CONSUMER_SECRET`

Running `srgssr-mcp` starts the default stdio mode. For an HTTP deployment, run the server module and set `SRGSSR_MCP_TRANSPORT`, `SRGSSR_MCP_HOST`, and `SRGSSR_MCP_PORT` as needed. Claude Desktop can launch the command with `uvx` and pass the credentials through its MCP configuration; the same credentials are used by the other documented clients.

## Tools and capabilities

The tool names use the `srgssr_<domain>_<action>` pattern. Weather operations cover location search, current conditions, 24-hour forecasts, and seven-day forecasts. Video operations list shows by business unit, fetch the latest episodes for a show, and list live TV channels. A show listing can be narrowed with an initial character; omitting that filter fans out across the available business units.

Audio operations list shows for a required radio `channel_id`, retrieve audio episodes, and list live radio stations. The v2 API does not provide an audio show listing by business unit, so a channel identifier is required.

The EPG operation obtains one day of programming for a TV or radio channel. Polis operations search historical popular votes, fetch a specific vote's detailed results, and retrieve election results. The resources and prompts extend these capabilities for cacheable schedules, closed-vote results, repeatable voting analysis, and canton-focused daily briefings.

## Limitations and notes

The server requires SRG SSR API credentials and network access to the provider's public APIs. Audio show discovery must be performed by radio channel rather than business unit because of the v2 API shape. EPG station identifiers are hyphenated and differ from livestream identifiers, so callers should use the identifier format expected by the selected operation.

The available data is limited to the domains and coverage exposed by SRG SSR: Swiss weather locations, SRG SSR media metadata and schedules, and Polis voting and election records.

_Full upstream README: https://allmcps.com/mcp/srgssr-mcp/readme_

