Radarr and Sonarr MCP Server
An MCP server that enables AI assistants to manage your Radarr movies and Sonarr TV shows, including search, add, delete, monitor, and grab releases.
README
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
-
Clone this repository:
git clone https://github.com/yourusername/radarr-sonarr-mcp.git cd radarr-sonarr-mcp-python -
Install the package:
pip install -e .
Using pip (coming soon)
pip install radarr-sonarr-mcp
Quick Start
-
Configure the server:
radarr-sonarr-mcp configureFollow the prompts to enter your Radarr/Sonarr API keys and other settings.
-
Start the server:
radarr-sonarr-mcp start -
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 yearwatched— 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
- Open Radarr in your browser
- Go to Settings > General
- Find the "API Key" section
- Copy the API Key
Sonarr API Key
- Open Sonarr in your browser
- Go to Settings > General
- Find the "API Key" section
- Copy the API Key
Command-Line Interface
The package provides a command-line interface:
radarr-sonarr-mcp configure— Run configuration wizardradarr-sonarr-mcp start— Start the MCP serverradarr-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.jsonfor 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。