g2dgaming

Radarr and Sonarr MCP Server

Community g2dgaming
Updated

Radarr and Sonarr MCP Server

A Python-based Model Context Protocol (MCP) server that provides AI assistants like Claude with access to your Radarr (movies) and Sonarr (TV series) data.

Overview

This MCP server allows AI assistants to query your movie and TV show collection via Radarr and Sonarr APIs. Built with FastMCP, it implements the standardized protocol for AI context that Claude Desktop and other MCP-compatible clients can use.

Features

  • Native MCP Implementation: Built with FastMCP for seamless AI integration
  • Radarr Integration: Full movie collection management — search, add, delete, monitor, grab releases
  • Sonarr Integration: Full TV show management — episodes, seasons, monitoring, releases
  • Episode-Level Control: Toggle monitoring for specific episodes or entire seasons with safety checks
  • Targeted Search: Trigger searches for specific episodes in a season (e.g., S07E23, S07E24)
  • Release Grabbing: Trigger live searches against indexers and grab specific releases
  • Watch Status: Integration with Jellyfin/Plex for watched status tracking
  • Rich Filtering: Filter by year, watched status, actors, download status, and more
  • Claude Desktop Compatible: Works seamlessly with Claude's MCP client
  • Easy Setup: Interactive configuration wizard
  • Well-tested: Comprehensive test suite for reliability

Installation

From Source

  1. Clone this repository:

    git clone https://github.com/yourusername/radarr-sonarr-mcp.git
    cd radarr-sonarr-mcp-python
    
  2. Install the package:

    pip install -e .
    

Using pip (coming soon)

pip install radarr-sonarr-mcp

Quick Start

  1. Configure the server:

    radarr-sonarr-mcp configure
    

    Follow the prompts to enter your Radarr/Sonarr API keys and other settings.

  2. Start the server:

    radarr-sonarr-mcp start
    
  3. Connect Claude Desktop:

    • In Claude Desktop, go to Settings > MCP Servers
    • Add a new server with URL: http://localhost:3000 (or your configured port)

Configuration

The configuration wizard will guide you through setting up:

  • NAS/Server IP address
  • Radarr API key and port
  • Sonarr API key and port
  • MCP server port

You can also manually edit the config.json file:

{
  "nasConfig": {
    "ip": "10.0.0.23",
    "port": "7878"
  },
  "radarrConfig": {
    "apiKey": "YOUR_RADARR_API_KEY",
    "basePath": "/api/v3",
    "port": "7878"
  },
  "sonarrConfig": {
    "apiKey": "YOUR_SONARR_API_KEY",
    "basePath": "/api/v3",
    "port": "8989"
  },
  "server": {
    "port": 3000
  }
}

Available MCP Tools

General

Tool Description
get_available_movies Get all movies with optional filters (year, watched, downloaded, actors)
get_available_series Get all TV series with optional filters (year, watched, downloaded, actors)
lookup_series Search for TV series by name or TVDB ID

Radarr — Movies

Tool Description
radarr_is_in_library Check if a movie is already in Radarr (partial title match)
radarr_lookup_movie Search for movies by title or TMDB ID
radarr_add_movie Add a movie to Radarr with full options (quality, root folder, monitoring)
radarr_delete_movie Delete a movie from Radarr (optionally delete files)
radarr_get_movie_details Get full details for a movie (size, path, file info, quality)
radarr_search_movie Trigger an automatic search for a specific movie
radarr_get_releases Trigger search and list available releases from indexers
radarr_grab_release Grab/download a specific release by guid and indexer_id
radarr_refresh_movie Trigger a refresh of movie(s)
radarr_get_quality_profiles List all quality profiles in Radarr
radarr_get_root_folders List all root folders in Radarr
radarr_get_queue Get the current download queue
radarr_get_queue_details Get detailed queue information
radarr_remove_from_queue Remove an item from the download queue
radarr_get_wanted_missing Get movies that are missing/not yet downloaded
radarr_get_calendar Get upcoming movies in a date range
radarr_get_history Get download/import history
radarr_get_tags List all tags in Radarr
radarr_get_system_status Get Radarr system status (version, health)
radarr_trigger_rss_sync Trigger an RSS sync

Sonarr — TV Series

Tool Description
sonarr_is_in_library Check if a TV series is already in Sonarr (partial title match)
lookup_series Search for TV series by name or TVDB ID
sonarr_add_series Add a TV series with full options (quality, root folder, monitoring, series type)
sonarr_delete_series Delete a TV series (optionally delete files)
sonarr_get_series_details Get full details for a series (size, path, seasons, stats)
sonarr_get_series_episodes Get all episodes for a series, optionally filtered by season
sonarr_get_episodes_by_ids Get episode details by Sonarr episode IDs (comma-separated)
sonarr_get_seasons Get season list for a series with monitoring status and statistics

Sonarr — Search & Releases

Tool Description
sonarr_search_series Trigger an automatic search for a specific series
sonarr_season_search Trigger an automatic search for a specific season
sonarr_episode_search Trigger an automatic search for a specific episode
sonarr_search_episodes Trigger search for specific episodes in a season (e.g., S07E23, S07E24)
sonarr_get_releases Trigger search and list available releases — by episode_id or series_id + season_number
sonarr_grab_release Grab/download a specific release by guid and indexer_id

Sonarr — Monitoring

Tool Description
sonarr_toggle_episode_monitor Toggle monitoring for specific episodes by episode IDs (safety: only toggles if needed)
sonarr_toggle_season_monitor Toggle monitoring for all episodes in a season (safety: only toggles if needed, updates both season and episode level)

Sonarr — Queue & History

Tool Description
sonarr_get_queue Get the current download queue
sonarr_get_queue_details Get detailed queue information
sonarr_remove_from_queue Remove an item from the download queue
sonarr_get_wanted_missing Get episodes that are missing/not yet downloaded
sonarr_get_wanted_cutoff Get episodes that haven't met their quality cutoff
sonarr_get_history Get download/import history
sonarr_get_calendar Get upcoming episodes in a date range

Sonarr — System

Tool Description
sonarr_get_quality_profiles List all quality profiles in Sonarr
sonarr_get_root_folders List all root folders in Sonarr
sonarr_get_tags List all tags in Sonarr
sonarr_get_system_status Get Sonarr system status (version, health)
sonarr_refresh_series Trigger a refresh of series
sonarr_trigger_rss_sync Trigger an RSS sync

MCP Resources

Resource Description
/movies Browse all available movies
/series Browse all available TV series

Filtering Options

Most tools support various filtering options:

  • year — Filter by release year
  • watched — Filter by watched status (true/false)
  • downloaded — Filter by download status (true/false)
  • actors — Filter by actor/cast name

Example Queries for Claude

Once your MCP server is connected to Claude Desktop, you can ask questions like:

  • "What sci-fi movies from 2023 do I have?"
  • "Show me TV shows starring Pedro Pascal"
  • "Do I have any unwatched episodes of The Mandalorian?"
  • "Find movies with Tom Hanks that I haven't watched yet"
  • "How many episodes of Stranger Things do I have downloaded?"
  • "Is Big Bang Theory in Sonarr?"
  • "Trigger a search for Big Bang Theory S07E23 and S07E24"
  • "Monitor all episodes of Big Bang Theory season 1"
  • "What releases are available for Big Bang Theory season 7?"
  • "Grab the first release from the indexers for Interstellar"
  • "Unmonitor season 1 of The Big Bang Theory"

Finding API Keys

Radarr API Key

  1. Open Radarr in your browser
  2. Go to Settings > General
  3. Find the "API Key" section
  4. Copy the API Key

Sonarr API Key

  1. Open Sonarr in your browser
  2. Go to Settings > General
  3. Find the "API Key" section
  4. Copy the API Key

Command-Line Interface

The package provides a command-line interface:

  • radarr-sonarr-mcp configure — Run configuration wizard
  • radarr-sonarr-mcp start — Start the MCP server
  • radarr-sonarr-mcp status — Show the current configuration

Development

Running Tests

To run the test suite:

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run tests with coverage
pytest --cov=radarr_sonarr_mcp

Local Development

For quick development and testing:

# Run directly without installation
python run.py

Requirements

  • Python 3.7+
  • FastMCP
  • Requests
  • Pydantic

Notes

  • The watched/watchlist status functionality assumes these are tracked using Jellyfin/Plex. Configure these in your config.json for watched status to work.
  • For security reasons, it's recommended to run this server only on your local network.
  • Episode and season monitoring tools include safety checks — they only toggle episodes that aren't already in the desired state, preventing accidental double-toggles.

MCP Server · Populars

MCP Server · New

    longsizhuo

    openInvest

    基于multiple LLM的风险投资助手

    Community longsizhuo
    CCCpan

    Gebaini

    中国数据核验 MCP Server | 身份核验/企业查询/车辆信息/OCR识别/风险评估 | 10个Tool覆盖5大类 | 微信: chenganp | 邮箱: [email protected]

    Community CCCpan
    ucsandman

    DashClaw

    🛡️The governance runtime for AI agents. Intercept actions, enforce guard policies, require approvals, and produce audit-ready decision trails.

    Community ucsandman
    ClementRingot

    SAP Released Objects Server

    Server for SAP Cloudification Repository - Clean Core Level A/B/C/D filtering

    Community ClementRingot
    raintree-technology

    docpull

    Convert the public web into AI-ready Markdown with a local Python CLI/SDK/MCP crawler.