Sonarr MCP Server
Provides tools for managing a Sonarr instance, including searching and adding TV series, managing episodes and seasons, monitoring downloads, viewing calendars and wanted episodes, and checking system health and configuration.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sonarr MCP Server Add the series 'The Expanse' to my library"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sonarr MCP Server
A feature-rich but simple-to-use MCP (Model Context Protocol) server for managing your Sonarr (TV show) instance.
Features
Complete Series Management: Search, add, edit, and delete TV series
Episode Control: View episodes, search for missing episodes, manage seasons
Download Queue: Monitor downloads, remove stuck items, manage blocklists
Calendar & Scheduling: See upcoming episodes, track releases
System Health: Monitor instance health, check for issues
Configuration Management: Quality profiles, language profiles, root folders, tags
Related MCP server: MCP *arr Server
Installation
cd mcp-sonarr
npm install
npm run buildConfiguration
Set these environment variables:
export SONARR_URL="http://localhost:8989" # Your Sonarr URL
export SONARR_API_KEY="your-api-key-here" # Your API key (Settings > General)Or on Windows:
$env:SONARR_URL="http://localhost:8989"
$env:SONARR_API_KEY="your-api-key-here"MCP Client Configuration
Add to your MCP client config:
{
"mcpServers": {
"sonarr": {
"command": "node",
"args": ["<YOUR_OPENCODE_DIR>/mcp-sonarr/dist/server.js"],
"env": {
"SONARR_URL": "http://localhost:8989",
"SONARR_API_KEY": "your-api-key-here"
}
}
}
}For development with hot reload:
{
"mcpServers": {
"sonarr": {
"command": "npx",
"args": [
"tsx",
"<YOUR_OPENCODE_DIR>/mcp-sonarr/src/server.ts"
],
"env": {
"SONARR_URL": "http://localhost:8989",
"SONARR_API_KEY": "your-api-key-here"
}
}
}
}Available Tools
Series Management
sonarr_search_series
Search for TV series by title on TVDB/TMDB. Returns potential matches with metadata.
Input:
term(string, required): Search term (e.g., "Breaking Bad", "The Office")
Output: List of matching series with tvdbId, title, year, overview, seasons count, etc.
Note: Use the tvdbId to add a series with sonarr_add_series
sonarr_get_all_series
Get all series in your Sonarr library.
Output: Complete list of all series with metadata, statistics (episode counts, disk usage), monitoring status.
sonarr_get_series
Get detailed information about a specific series by its Sonarr ID.
Input:
id(number, required): Sonarr series ID
Output: Full series details including all seasons, episode statistics, images, ratings, and next actions.
sonarr_get_series_by_tvdb
Get series information by TVDB ID.
Input:
tvdbId(number, required): TVDB ID (e.g., 81189 for Breaking Bad)
sonarr_add_series
Add a new TV series to your library.
Input:
tvdbId(number, required): TVDB ID from search resultsmonitored(boolean, optional): Whether to monitor the series (default: true)rootFolderPath(string, optional): Where to store the series (uses default if not specified)qualityProfileId(number, optional): Quality profile to use (uses default if not specified)languageProfileId(number, optional): Language profile to useseasonFolder(boolean, optional): Create season folders (default: true)tags(number[], optional): Array of tag IDsseasons(object[], optional): Specify which seasons to monitor
sonarr_delete_series
Delete a series from Sonarr. Optionally delete files from disk.
⚠️ WARNING: Deleting files is permanent and cannot be undone!
Input:
id(number, required): Series ID to deletedeleteFiles(boolean, optional): Also delete files from disk (default: false)addImportListExclusion(boolean, optional): Prevent re-import (default: false)
sonarr_edit_series
Edit an existing series (monitoring, quality profile, tags, etc.).
Input:
series(object, required): Complete series object with modifications. Must includeidfield.
Tip: Get the full series object first with sonarr_get_series, modify it, and pass it here.
Episode Management
sonarr_get_episodes
Get all episodes for a specific series.
Input:
seriesId(number, required): Sonarr series IDseasonNumber(number, optional): Filter by specific season
Output: Episodes list with air dates, file status, monitoring status, and statistics.
sonarr_get_episode
Get detailed information about a specific episode.
Input:
id(number, required): Episode ID
sonarr_search_episodes
Search for specific episodes to download. This sends episodes to your download client.
Input:
episodeIds(number[], required): Array of episode IDs to search for
sonarr_search_season
Search for all episodes in a specific season.
Input:
seriesId(number, required): Sonarr series IDseasonNumber(number, required): Season number to search
sonarr_search_series_command
Search for all monitored episodes across a series (the "Search All" button).
Input:
seriesId(number, required): Sonarr series ID
Queue & Downloads
sonarr_get_queue
Get current download queue. Shows active downloads, progress, status, and errors.
Input:
page(number, optional): Page number (default: 1)pageSize(number, optional): Items per page (default: 20)sortKey(string, optional): Sort field (default: "timeleft")sortDirection(string, optional): "ascending" or "descending" (default: "ascending")includeUnknownSeriesItems(boolean, optional): Include unknown items (default: false)
Output: Queue items with progress percentage, status, time remaining, and errors.
sonarr_remove_from_queue
Remove an item from the download queue.
Input:
id(number, required): Queue item IDblocklist(boolean, optional): Blocklist release to prevent re-download (default: false)skipRedownload(boolean, optional): Skip retrying the episode (default: false)changeCategory(boolean, optional): Change category in download client (default: false)
Calendar & Missing Episodes
sonarr_get_wanted
Get wanted/missing episodes that are monitored but don't have files.
Input:
page(number, optional): Page number (default: 1)pageSize(number, optional): Items per page (default: 20)sortKey(string, optional): Sort field (default: "airDateUtc")sortDirection(string, optional): "ascending" or "descending" (default: "descending")
Output: Missing episodes with series info, ready for searching.
sonarr_get_calendar
Get episodes airing in a date range. Great for seeing what's coming up.
Input:
start(string, optional): Start date (YYYY-MM-DD, defaults to today)end(string, optional): End date (YYYY-MM-DD, defaults to 7 days from start)unmonitored(boolean, optional): Include unmonitored episodes (default: false)includeSeries(boolean, optional): Include series data (default: false)includeEpisodeFile(boolean, optional): Include episode file data (default: false)
Output: Episodes grouped by date with air times and availability status.
System & Configuration
sonarr_get_health
Get system health status. Shows warnings or errors with your Sonarr instance.
Output: Health status with error/warning/notice counts and detailed messages.
sonarr_get_system_status
Get system information (version, OS, database, etc.).
sonarr_get_quality_profiles
Get all quality profiles available for adding series.
sonarr_get_language_profiles
Get all language profiles (if using v3 language profiles).
sonarr_get_root_folders
Get all configured root folders with disk space info.
sonarr_get_tags
Get all tags for organizing series.
Maintenance
sonarr_refresh_series
Refresh series information from metadata sources (TVDB). Updates episode info, air dates, etc.
Input:
seriesId(number, required): Series ID to refresh
sonarr_rescan_series
Rescan series folder for files. Checks for new, modified, or deleted episode files.
Input:
seriesId(number, required): Series ID to rescan
Common Workflows
Adding a New Series
Search for the series:
sonarr_search_series with term: "Breaking Bad"Add it to your library:
sonarr_add_series with tvdbId from step 1Search for episodes:
sonarr_search_series_command with seriesId from step 2
Finding and Downloading Missing Episodes
Check wanted episodes:
sonarr_get_wantedSearch for specific episodes:
sonarr_search_episodes with episodeIds from step 1Monitor the queue:
sonarr_get_queue
Checking What's Coming Up
sonarr_get_calendarShows episodes airing in the next week by default.
Error Handling
All tools return clear error messages with context. Common errors:
"No series found with TVDB ID X": The series doesn't exist on TVDB or the ID is wrong. Search first with
sonarr_search_series."No root folder configured": Add a root folder in Sonarr settings (System > Root Folders).
"No quality profile found": Create a quality profile in Sonarr settings (Profiles > Quality).
Connection errors: Check that SONARR_URL and SONARR_API_KEY are set correctly.
Tips for AI Agents
Always search first before adding - you need the correct tvdbId
Get configuration first (root folders, quality profiles) before adding series
Check health regularly to catch issues early
Use pagination for large libraries (get_all_series can be big!)
Quote from output - all tools return structured JSON with helpful notes
Development
npm run dev # Run with tsx (hot reload)
npm run build # Compile TypeScript
npm run start # Run compiled versionRequirements
Node.js 20+
Sonarr v3 or v4 with API v3
API key from Sonarr (Settings > General > API Key)
Available Tools
24 toolssonarr_add_seriesB
Add a new TV series to your library. You need the tvdbId from sonarr_search_series. Optionally specify root folder path, quality profile, and which seasons to monitor.
Inputs: tvdbId (required), tags, seasons, monitored, +4 more.
sonarr_delete_seriesA
Delete a series from Sonarr. Optionally delete files from disk. WARNING: This cannot be undone!
Inputs: id (required), deleteFiles, addImportListExclusion.
sonarr_edit_seriesA
Edit an existing series. Update monitored status, quality profile, path, or tags. Get the full series object first with sonarr_get_series, modify it, and pass it here.
Inputs: series (required).
sonarr_get_all_seriesA
Get all series in your Sonarr library. Returns complete list with metadata, seasons, and statistics.
Inputs: no named parameters.
sonarr_get_calendarC
Get episodes airing in a date range. Defaults to the next week. Great for seeing what's coming up.
Inputs: end, start, unmonitored, includeSeries, +2 more.
sonarr_get_episodeC
Get detailed information about a specific episode by its episode ID.
Inputs: id (required).
sonarr_get_episodesB
Get all episodes for a specific series. Returns episode list with air dates, file status, and monitoring status.
Inputs: seriesId (required), seasonNumber.
sonarr_get_healthB
Get system health status. Shows any warnings or errors with your Sonarr instance (disk space, download client issues, etc.).
Inputs: no named parameters.
sonarr_get_language_profilesB
Get all language profiles. Shows available language settings for series.
Inputs: no named parameters.
sonarr_get_quality_profilesA
Get all quality profiles. Shows available quality settings you can use when adding series.
Inputs: no named parameters.
sonarr_get_queueB
Get current download queue. Shows active downloads, their progress, status, and any errors.
Inputs: page, sortKey, pageSize, sortDirection, +1 more.
sonarr_get_root_foldersA
Get all configured root folders. Shows where series can be stored.
Inputs: no named parameters.
sonarr_get_seriesA
Get detailed information about a specific series by its Sonarr ID. Includes all seasons, episodes, and statistics.
Inputs: id (required).
sonarr_get_series_by_tvdbA
Get series information by TVDB ID. Useful when you know the TVDB ID but not the Sonarr ID.
Inputs: tvdbId (required).
sonarr_get_system_statusA
Get system status information. Shows version, OS, .NET version, database type, and migration version.
Inputs: no named parameters.
sonarr_get_tagsA
Get all tags. Shows available tags you can apply to series for organization.
Inputs: no named parameters.
sonarr_get_wantedA
Get wanted/missing episodes. Shows episodes that are monitored but don't have files yet.
Inputs: page, sortKey, pageSize, sortDirection.
sonarr_refresh_seriesC
Refresh series information from metadata sources. Updates episode info, air dates, etc.
Inputs: seriesId (required).
sonarr_remove_from_queueB
Remove an item from the download queue. Optionally blocklist the release to prevent re-download.
Inputs: id (required), blocklist, changeCategory, skipRedownload.
sonarr_rescan_seriesB
Rescan series folder for files. Checks for new, modified, or deleted episode files.
Inputs: seriesId (required).
sonarr_search_episodesA
Search for specific episodes to download. This sends the episode to your download client. Use episodeIds from sonarr_get_episodes.
Inputs: episodeIds (required).
sonarr_search_seasonA
Search for all episodes in a specific season. This sends the entire season to your download client.
Inputs: seriesId (required), seasonNumber (required).
sonarr_search_seriesA
Search for TV series by title on TVDB/TMDB. Returns potential matches with metadata. Use this to find the tvdbId needed to add a series.
Inputs: term (required).
sonarr_search_series_commandB
Search for all monitored episodes across a series. This is the 'Search All' button functionality.
Inputs: seriesId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Most tools are clearly distinct: retrieval (get_series, get_all_series, get_series_by_tvdb), mutations (add, delete, edit), and search commands (search_episodes, search_season, search_series_command) have specific purposes. However, the three search tools could be confused: sonarr_search_series (metadata search) vs. sonarr_search_series_command (download trigger) is subtle and may cause misselection.
All tool names follow a consistent snake_case pattern with the 'sonarr_' prefix and verb_noun structure (e.g., sonarr_get_series, sonarr_add_series, sonarr_delete_series). Minor variations like 'get_all_series' and 'search_series_command' are still readable and predictable.
24 tools is on the heavy side for a single media manager, but they cover distinct aspects of the Sonarr API (series, episodes, queue, system). Some tools like get_language_profiles and get_tags could be considered niche, but overall the count is borderline rather than excessive.
The surface covers core CRUD for series (search, get, add, edit, delete), episode retrieval, download queue management, and system diagnostics. Missing operations include direct episode monitoring (e.g., set monitored status) and series import/export, but agents can work around these using the provided tools.
Maintenance
Related MCP Connectors
Read and write your own Microsoft To Do, Google Tasks or Todoist tasks from any AI agent.
Manage scheduled requests, uptime monitors and heartbeats from your AI assistant.
Manage CronPulser from an AI agent: HTTP, Runner and TLS jobs, alerts, Runners and run history.
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables AI assistants to manage TV series collections through Sonarr's API using natural language interactions. Supports searching, adding, updating, and deleting TV series with detailed control over quality profiles, season monitoring, and episode downloads.9-
- AlicenseBqualityBmaintenanceEnables unified control of \*arr media management applications (Sonarr, Radarr, Lidarr, Readarr, Prowlarr) through natural language queries. Manage TV shows, movies, music, books, search for content, monitor downloads, and check upcoming releases across all services.732,078 npm252MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Sonarr and Radarr APIs to query media libraries, check recent additions, view upcoming releases, manage download queues, and perform searches for TV shows and movies through natural language.1MIT
- FlicenseAqualityDmaintenanceEnables users to manage Sonarr and Radarr instances through natural language, allowing search, addition, deletion, and monitoring of TV series and movies.60-