sonarr-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SONARR_URL | Yes | Sonarr URL, e.g. http://192.168.1.10:8989. Include your URL base if you use one, e.g. https://example.com/sonarr. | |
| SONARR_API_KEY | Yes | Sonarr API key. | |
| SONARR_READ_ONLY | No | Only expose tools that read data. Set to true to enable read-only mode. | |
| SONARR_TIMEOUT_MS | No | HTTP timeout in milliseconds (default 60000). Release searches always allow up to 3 minutes. | 60000 |
| SONARR_API_VERSION | No | API path segment (default v5). | v5 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools for managing a Sonarr TV library. Typical flows: find a show with sonarr_list_series (library) or sonarr_lookup_series (to add new), then use its id. Use sonarr_get_queue for active downloads, sonarr_get_calendar for upcoming episodes, and sonarr_get_wanted_missing for missing ones. Confirm with the user before deleting files or series.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| sonarr_get_system_statusA | Sonarr version and platform info, current health check warnings/errors, disk space, and a queue summary. A good first call to check that the connection works. |
| sonarr_list_quality_profilesB | Quality profiles with their IDs, allowed qualities (best first), cutoff and upgrade settings. |
| sonarr_list_root_foldersB | Root folders where series are stored, with free space and the number of unmapped (unimported) folders. |
| sonarr_list_tagsB | Tags with their IDs and how many series use each. |
| sonarr_create_tagA | Create a new tag (returns its ID, or the existing tag if one with that label already exists). |
| sonarr_parse_titleA | Ask Sonarr how it parses a release name or file name: matched series, season/episode numbers, quality, release group, languages and custom format score. Useful for diagnosing why a release isn't matched or imported. |
| sonarr_list_seriesA | List TV series in the Sonarr library with compact details (id, title, status, monitored, episode counts, size, next airing). Use |
| sonarr_get_seriesA | Get full details for one series in the library: overview, genres, per-season monitoring and file statistics, paths and settings. |
| sonarr_lookup_seriesA | Search TheTVDB (via Sonarr) for series by name, or by ID using 'tvdb:' / 'imdb:'. Returns tvdbId (needed by sonarr_add_series) and whether each result is already in the library. |
| sonarr_add_seriesA | Add a series to Sonarr by TVDB ID (find it with sonarr_lookup_series). Quality profile and root folder default to the first ones configured; list them with sonarr_list_quality_profiles / sonarr_list_root_folders to choose explicitly. Set searchForMissingEpisodes=true to start downloading existing episodes immediately. |
| sonarr_update_seriesA | Change settings of a series in the library. Only the fields you pass are changed. Changing |
| sonarr_delete_seriesA | Remove a series from Sonarr. Files on disk are kept unless deleteFiles=true (permanent). Confirm with the user before deleting files. |
| sonarr_set_season_monitoringB | Set whether one or more seasons of a series are monitored. |
| sonarr_list_episodesA | List episodes for a series (optionally one season), with air date, monitored state, whether a file exists and its quality. Episode |
| sonarr_get_episodeA | Get full details for one episode, including overview and file/media info if downloaded. |
| sonarr_set_episode_monitoringB | Set whether specific episodes are monitored (Sonarr only searches for monitored episodes). |
| sonarr_list_episode_filesA | List the media files Sonarr has for a series: path, size, quality, languages, codec and whether the quality cutoff is met. |
| sonarr_delete_episode_filesA | Permanently delete episode files from disk (IDs from sonarr_list_episode_files). The episodes become missing. Confirm with the user first. |
| sonarr_get_calendarB | Episodes airing in a date range (default: today through the next 7 days). Use a past |
| sonarr_get_wanted_missingA | Monitored episodes that have aired but have no file. Paged; newest first by default. |
| sonarr_get_wanted_cutoff_unmetA | Episodes that have a file but haven't reached the quality profile's cutoff (upgrade candidates). Paged. |
| sonarr_get_queueA | Items currently downloading or waiting to import, with progress, time left, status and any warnings/errors (e.g. import blocked). Queue item |
| sonarr_remove_queue_itemsA | Remove one or more queue items. By default the download is also removed from the download client. Use blocklistMethod to blocklist the release (and optionally search for a replacement). |
| sonarr_grab_queue_itemsA | Immediately send pending/delayed queue items (e.g. held by a delay profile) to the download client. |
| sonarr_get_historyA | Activity history: grabs, imports, failed downloads, deletions and renames. Newest first. Filter by series, episode, event type or download ID. |
| sonarr_mark_history_failedA | Mark a 'grabbed' history item as failed. Sonarr blocklists that release and, if enabled, searches for another. |
| sonarr_search_releasesA | Search all indexers for releases of an episode (episodeId) or a full season (seriesId + seasonNumber), and show Sonarr's verdict for each (approved or rejection reasons). Can take a minute. Grab a result with sonarr_grab_release using its guid and indexerId. |
| sonarr_grab_releaseA | Send a release found by sonarr_search_releases to the download client. Use the guid and indexerId from the search results; Sonarr only remembers search results for about 30 minutes. |
| sonarr_search_episodesA | Start an automatic search for specific episodes. Sonarr picks the best release and sends it to the download client. |
| sonarr_search_seriesA | Start an automatic search for all monitored missing episodes of a series, or of one season if seasonNumber is given. |
| sonarr_search_wantedA | Start a library-wide automatic search for all monitored missing episodes, or all episodes below their quality cutoff. This can trigger many downloads and indexer requests. |
| sonarr_refresh_seriesA | Refresh series metadata from TheTVDB and rescan files on disk, for one series or (if seriesId is omitted) the whole library. |
| sonarr_run_commandA | Queue any Sonarr command by name with optional parameters. Common commands: RssSync, RefreshSeries {seriesIds}, RescanSeries {seriesId}, RenameSeries {seriesIds}, RenameFiles {seriesId, files}, DownloadedEpisodesScan {path}, RefreshMonitoredDownloads, EpisodeSearch {episodeIds}, SeasonSearch {seriesId, seasonNumber}, SeriesSearch {seriesId}, MissingEpisodeSearch, CutoffUnmetEpisodeSearch, CheckHealth, Backup, ClearBlocklist, CleanUpRecycleBin, ApplicationUpdate. |
| sonarr_get_commandsA | Get the status of a command by ID, or list queued, running and recently finished commands. |
| sonarr_list_api_endpointsA | List the raw Sonarr API endpoints (from the v5.0.0 OpenAPI spec) with their query parameters and body types, for use with sonarr_api_request when no dedicated tool fits. Filter by keyword to keep the list short. |
| sonarr_api_requestA | Call any Sonarr API endpoint directly and get the raw JSON response. Paths are relative to /api/v5 (e.g. '/indexer', '/blocklist', '/settings/naming'). Find endpoints with sonarr_list_api_endpoints. For PUT, send the complete resource (GET it first and modify it). Prefer dedicated tools when one exists, and confirm with the user before destructive requests. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 36 tools
Tools are largely organized around distinct resources (series, episodes, files, queue, history, commands), and the descriptions make boundaries clear. The main overlap is the catch-all sonarr_run_command and sonarr_api_request duplicating dedicated operations like search/refresh/rescan, but the descriptions explicitly steer agents toward the specific tools. Minor potential confusion between sonarr_grab_release and sonarr_grab_queue_items, though scopes differ.
Every tool uses the sonarr_ prefix followed by a clear verb_noun pattern (list_series, get_episode, add_series, search_releases, delete_episode_files) in consistent snake_case. No mixing of conventions or vague verbs.
36 tools is on the heavy side for the stated scope, and some dedicated tools are partly redundant with sonarr_run_command and sonarr_api_request. However the Sonarr domain is genuinely broad (library, episodes, files, queue, history, search, monitoring), so most tools do map to real operations.
The surface covers the full lifecycle well: series CRUD/lookup, episodes, files, monitoring, queue, history, search, tags, quality profiles, root folders, calendar, and wanted lists. A few areas (indexers, blocklist management, notifications/settings) are only reachable via sonarr_api_request rather than dedicated tools, which is a minor gap.