Model Context Protocol
Radioguide för AI-assistenter (MCP)
Koppla Claude, ChatGPT eller valfri MCP-klient till Radioguide.fm: stationer, vad som spelas nu, låtar i etern och radiotopplistor.
Den här adressen är för AI-appar, inte för din webbläsare. Lägg till den som anslutning i din assistent:
https://www.radioguide.fm/mcp
Claude
I Claude (webb eller skrivbord): Inställningar, Anslutningar, Lägg till anpassad anslutning. Namn: Radioguide. Adress:
https://www.radioguide.fm/mcp
Claude Code:
claude mcp add --transport http radioguide https://www.radioguide.fm/mcp --header "Authorization: Bearer rg_live_..."
Konfigurationsfil för Claude Desktop (claude_desktop_config.json) med din API-nyckel:
{
"mcpServers": {
"radioguide": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://www.radioguide.fm/mcp",
"--header",
"Authorization:${RADIOGUIDE_AUTH}"
],
"env": {
"RADIOGUIDE_AUTH": "Bearer rg_live_..."
}
}
}
}
ChatGPT
I ChatGPT: Inställningar, Appar och anslutningar, Avancerade inställningar: slå på utvecklarläget. Skapa sedan en anslutning med den här adressen och utan autentisering:
https://www.radioguide.fm/mcp
I ChatGPT visas stationskort med en spelknapp (beta).
Egen GPT med Actions: importera schemat från den här adressen och välj API key, Bearer, som autentisering:
https://www.radioguide.fm/api/openapi.json?profile=gpt
Andra MCP-klienter
Alla klienter med Streamable HTTP-transport fungerar: skicka JSON-RPC-meddelanden med POST till adressen. Exempel:
curl -s https://www.radioguide.fm/mcp -H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"my-app","version":"1.0"}}}'
curl -s https://www.radioguide.fm/mcp -H "Content-Type: application/json" \
-H "Authorization: Bearer rg_live_..." \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_stations","arguments":{"genre":"jazz","country":"FR"}}}'
Klienter som inte kan skicka headers lägger nyckeln i adressen: https://www.radioguide.fm/mcp?api_key=YOUR_KEY. Använd en separat nyckel för detta.
Utan nyckel: 20 verktygsanrop per minut och 300 per dag per nätverk, med upp till 5 resultat per svar. Med en API-nyckel räknas varje verktygsanrop som ett API-anrop i ditt paket.
Assistenter måste ange Radioguide.fm som källa och länka till stationssidorna de nämner. Varje verktygsresultat innehåller länken och källhänvisningen.
Verktyg
search_stations
Find radio stations on Radioguide.fm by name or keyword, optionally filtered by country, genre and broadcast language. Returns stations with their Radioguide page URL, genres, country, logo and whether the stream works. Use recommend_stations for mood-based suggestions.
get_station
Facts about one radio station: country, city, genres, languages, website, stream status, description, most played songs this week, similar stations and the Radioguide page where people can listen live.
now_playing
The song a radio station is playing right now (from its stream metadata) and the songs before it, with links to the song pages on Radioguide.fm.
find_song_on_air
Find radio stations that are playing an artist (and optionally a specific song) right now or played it in the last 3 hours, from the now-playing data of thousands of stations. Falls back to the stations that play the artist most.
charts
Most played songs or artists on the radio stations Radioguide follows, worldwide or per country and genre, over the last 1-30 days.
recommend_stations
Suggest radio stations for a mood (relax, party, focus, workout, throwback, news), genre, country or language, or stations like one the listener already likes. Set no_talk to leave out news and talk stations.
radioguide_channels
Radioguide's own themed radio channels with new music from independent artists, and the track playing on each channel now.
song_at_time
Which song a radio station was playing at a given moment ("what song was on Radio 538 at 14:05 yesterday?"), with the songs 10 minutes before and after it and a link to that day's playlist on Radioguide.fm. Works for today and earlier days (archived playlists).
get_listen_link
Link where the listener can play a station right now: the Radioguide station page (always), and for clients with a Radioguide API key a direct stream link (signed, valid for a limited time).