youtarr-mcp
Provides tools for Emby connection and user checks plus watch-status synchronization through Youtarr's media-server integration.
Provides tools for Jellyfin connection and user checks plus watch-status synchronization through Youtarr's media-server integration.
Provides tools for Plex library listing, server identity and OAuth checks, and library refresh through Youtarr's media-server integration.
Enables management of YouTube channel subscriptions, videos, playlists, searches, and downloads via Youtarr, including YouTube API key testing.
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., "@youtarr-mcp list my Youtarr channel subscriptions"
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.
youtarr-mcp
Part of the arr-mcps collection.
FastMCP server for the Youtarr v1.95.0 session API. It manages health and storage, configuration, channel subscriptions, videos and downloads, jobs, playlists, Jellyfin/Emby/Plex integration, schedules, maintenance, logs, and API keys through 10 resource-scoped tools.
Requirements
Youtarr v1.95.0
Python 3.11 or newer
A Youtarr administrator session, or the username and password for one
Related MCP server: sonarr-mcp
Install
From a checkout:
uv sync
uv tool install .This installs the youtarr-mcp command. Configure the environment variables below in the MCP client that launches it.
To run directly from the checkout:
export YOUTARR_URL=http://youtarr.example.com:3011
export YOUTARR_USERNAME=admin
export YOUTARR_PASSWORD=your-password
uv run youtarr-mcp.env.example lists the supported variables without credentials.
Config
Env var | Required | Purpose |
| yes | Youtarr origin, including its port when needed |
| alternative | Existing browser session token sent as |
| with password | Administrator username used by |
| with username | Administrator password used by |
Set either YOUTARR_TOKEN or both username and password. A supplied token takes precedence. When a token expires, the server logs in again once if username and password are also available.
Youtarr's x-api-key keys are not full API credentials. Legacy keys only queue single-video downloads, status_read keys only reach GET /api/status/summary, and constrained external keys belong to the separate opt-in /external-api/v1 namespace. This server does not accept them through YOUTARR_TOKEN.
Tools
Each tool takes an operation enum and an arguments dict. The tool description lists every operation with its exact Python-style signature. Endpoint functions are not registered as individual MCP tools.
Tool | Coverage |
| Health, database status, release and yt-dlp version, dashboard summary, storage |
| Token validation, active sessions, session revocation, logout, password changes |
| Configuration, filename previews, cookies, notifications, YouTube key testing, yt-dlp args, subfolders |
| Channels, tabs, settings, filters, channel videos, download-all, subscription imports |
| Video metadata and search, local status, manual downloads, ratings, protection, deletion, auto-removal preview, trash |
| Running jobs, job status, live activity, download pause state, current-job termination |
| Playlist subscriptions, settings, videos, refresh, media-server sync, following, batch downloads, M3U, ignore state |
| Jellyfin and Emby connection/user checks, watch-status sync, Plex libraries, identity, OAuth, refresh |
| Schedules, manual task runs, filesystem rescans, yt-dlp updates, plain-text log download |
| Key listing, creation, policies, channel grants, regeneration, revocation |
Example:
{
"name": "youtarr_videos",
"arguments": {
"operation": "youtarr_list_videos",
"arguments": {
"limit": 20,
"sort_by": "added",
"sort_order": "desc",
"deleted_filter": "exclude"
}
}
}Only youtarr_system is marked read-only. Every other group contains at least one operation that changes state. Operation docstrings mark writes and destructive actions. Some upstream GET routes also change state: Plex library refresh does so, and successful Plex library checks with test credentials save those credentials.
Responses preserve upstream JSON objects and arrays. The active subscription-import endpoint can return None for HTTP 204, and the log endpoint returns plain text.
API boundaries
Cookie-file uploads and Google Takeout/cookie subscription previews use multipart uploads and are not exposed.
Binary video/audio streaming and feed downloads are not exposed.
The opt-in external API, Sonarr/Radarr bridge, and external-request review APIs are not exposed.
Session tokens expire after seven days. Username/password authentication allows automatic renewal after a 401.
Creating or regenerating an API key returns its raw secret once. Store it securely.
Development
make helpCommand | Action |
| Install or update dependencies with |
| Format Python with Ruff |
| Lint Python with Ruff |
| Lint and run the offline suite |
| Run mocked-HTTP unit tests |
| Run opt-in read-only tests against a live instance |
| Build wheel and sdist in |
| Update package and lockfile versions |
The integration suite never starts downloads or changes configuration. It requires YOUTARR_URL plus either YOUTARR_TOKEN or YOUTARR_USERNAME and YOUTARR_PASSWORD.
.github/workflows/release.yml builds and publishes package artifacts when a v* tag is pushed.
Available Tools
10 toolsyoutarr_api_keysYoutarr Api KeysA
api keys operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_list_api_keys(): List API key metadata without raw key values; requires a full session.
youtarr_create_api_key(name, role=None, policy=None, channel_ids=None): WRITE: Create a download, status_read, or constrained external key; the raw key is shown once.
youtarr_update_api_key_policy(key_id, policy): WRITE: Replace a constrained external API key's policy.
youtarr_get_api_key_channels(key_id): Read the exact channel grants for an active constrained external API key.
youtarr_replace_api_key_channels(key_id, channel_ids): WRITE: Replace an external API key's exact channel grant set.
youtarr_replace_api_key_external_access(key_id, policy, channel_ids): WRITE: Atomically replace a constrained key's policy and channel grants.
youtarr_regenerate_api_key(key_id): WRITE: Regenerate an API key; the new raw key is shown once.
youtarr_revoke_api_key(key_id): DESTRUCTIVE: Revoke an API key while retaining its audit record.
Inputs: operation (required), arguments. Returns: result
youtarr_authYoutarr AuthA
auth operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_validate_token(): Validate the current session token.
youtarr_list_sessions(): List active sessions for the current user.
youtarr_revoke_session(session_id): Invalidate one session belonging to the current user.
youtarr_logout(): Invalidate the current session; later calls log in again when credentials are configured.
youtarr_change_password(current_password, new_password): Change the current user's password; newPassword must be 8 to 64 characters.
Inputs: operation (required), arguments. Returns: result
youtarr_configYoutarr ConfigA
config operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_get_config(): Read application configuration with upstream-filtered secret fields removed.
youtarr_update_config(config): WRITE: Replace application configuration using the fields returned by get_config.
youtarr_preview_filename(prefix): Render a videoFilenamePrefix against Youtarr's canned yt-dlp sample.
youtarr_get_cookie_status(): Read uploaded or external YouTube cookie status without exposing cookie values.
youtarr_test_cookies(): Ask YouTube whether the active cookie file still belongs to a signed-in session.
youtarr_delete_cookies(): DESTRUCTIVE: Remove the custom YouTube cookie file when cookies are not externally managed.
youtarr_test_notification(): Send a test notification through the saved notification configuration.
youtarr_test_notification_single(url, name=None, rich_formatting=None): Send a test notification to one Apprise-compatible webhook URL.
youtarr_test_youtube_api_key(api_key): WRITE: Validate a YouTube Data API key and save it when validation succeeds.
youtarr_validate_ytdlp_args(args): Check custom yt-dlp arguments against the allowlist and dry-run their parser.
youtarr_list_subfolders(): List registered subfolders and where each one is used.
youtarr_create_subfolder(name): WRITE: Register a subfolder name for use by channels, playlists, and downloads.
youtarr_delete_subfolder(name): DESTRUCTIVE: Delete an unused, empty subfolder from the registry.
Inputs: operation (required), arguments. Returns: result
youtarr_jobsYoutarr JobsB
jobs operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_list_running_jobs(): List currently running download jobs.
youtarr_get_job(job_id): Read one download job by job ID.
youtarr_get_video_activity(): Read the transient queued and downloading video activity snapshot.
youtarr_get_current_activity(): Read current or most recent download progress and final activity.
youtarr_get_download_pause(): Read storage or library pause state, reasons, and current measurements.
youtarr_terminate_current_job(): DESTRUCTIVE: Terminate the currently running download job.
Inputs: operation (required), arguments. Returns: result
youtarr_maintenanceYoutarr MaintenanceA
maintenance operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_list_schedules(): Read live state, next run, blockers, and history for every scheduled task.
youtarr_run_schedule(key): WRITE: Start one scheduled task now using its saved settings.
youtarr_start_rescan(ignore_library_check=None): WRITE: Start a filesystem rescan, optionally bypassing empty and not-found library checks.
youtarr_get_rescan_status(): Read rescan running state, progress, and the latest run summary.
youtarr_get_ytdlp_version(): Read installed and latest yt-dlp versions plus update history.
youtarr_update_ytdlp(): WRITE: Update yt-dlp to the latest release on the configured stable or nightly channel.
youtarr_download_logs(): Read all rolling log files as one plain-text response with upstream secret redaction.
Inputs: operation (required), arguments. Returns: result
youtarr_media_serversYoutarr Media ServersA
media servers operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_get_media_server_status(): Read which Plex, Jellyfin, and Emby integrations are enabled and configured.
youtarr_test_jellyfin(config): Test a Jellyfin connection using jellyfinUrl and jellyfinApiKey, with optional jellyfinUserId.
youtarr_list_jellyfin_users(config): List Jellyfin users using jellyfinUrl and jellyfinApiKey.
youtarr_test_emby(config): Test an Emby connection using embyUrl and embyApiKey, with optional embyUserId.
youtarr_list_emby_users(config): List Emby users using embyUrl and embyApiKey.
youtarr_get_watch_status_sync(): Read media-server watch-status sync state and the latest run summary.
youtarr_sync_watch_status(): WRITE: Start a media-server watch-status sync in the background.
youtarr_list_plex_libraries(test_ip=None, test_api_key=None, test_port=None, test_use_https=None): Read Plex libraries; WRITE: successful test credentials are saved automatically by upstream.
youtarr_get_plex_server_identity(test_ip=None, test_api_key=None, test_port=None, test_use_https=None): Read Plex server identity using saved or optional test connection parameters.
youtarr_refresh_plex_library(): WRITE: Trigger a refresh of the configured Plex library.
youtarr_get_plex_auth_url(): Create a Plex OAuth PIN and return its authorization URL.
youtarr_check_plex_pin(pin_id): Check whether a Plex OAuth PIN has been authorized.
Inputs: operation (required), arguments. Returns: result
youtarr_playlistsYoutarr PlaylistsA
playlists operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_list_playlists(page=None, page_size=None): List subscribed YouTube playlists with current downloaded counts.
youtarr_get_playlist(playlist_id): Read one playlist with download counts and media-server sync status.
youtarr_get_playlist_info(url): Fetch YouTube playlist metadata and any existing local subscription before adding it.
youtarr_subscribe_playlist(url, settings=None): WRITE: Subscribe to a playlist, fetch its videos, and start background sync and M3U generation.
youtarr_unsubscribe_playlist(playlist_id): DESTRUCTIVE: Soft-delete a playlist subscription while retaining its saved settings.
youtarr_update_playlist(playlist_id, updates): WRITE: Update playlist flags such as auto_download and sync_to_jellyfin.
youtarr_get_playlist_settings(playlist_id): Read per-playlist download, filter, rating, audio, and sort settings.
youtarr_update_playlist_settings(playlist_id, settings): WRITE: Update per-playlist download settings using the keys returned by get_playlist_settings.
youtarr_list_playlist_videos(playlist_id, page=None, page_size=None, sort_order=None, download_state=None, watched_state=None): List playlist videos with local download, watch, and members-access overlays.
youtarr_refresh_playlist(playlist_id): WRITE: Fetch the full playlist listing from YouTube and trigger background sync and M3U generation.
youtarr_sync_playlist(playlist_id): WRITE: Start a background playlist sync to configured media servers.
youtarr_preview_playlist_downloads(playlist_id, order=None, count=None): Preview eligible tracked playlist videos and a suggested explicit selection.
youtarr_start_playlist_following(playlist_id, restart=None, video_ids=None): WRITE: Start or resume following new playlist entries, optionally restarting the baseline.
youtarr_download_playlist_batch(playlist_id, video_ids): WRITE: Queue selected eligible existing playlist videos without resetting following.
youtarr_download_playlist(playlist_id, video_ids=None, override_settings=None): WRITE: Queue all eligible playlist videos, or only the supplied YouTube video IDs.
youtarr_regenerate_playlist_m3u(playlist_id): WRITE: Regenerate the playlist M3U file.
youtarr_ignore_playlist_video(playlist_id, youtube_id): WRITE: Ignore a playlist video for automatic and bulk downloads.
youtarr_unignore_playlist_video(playlist_id, youtube_id): WRITE: Remove a playlist video's ignored status.
Inputs: operation (required), arguments. Returns: result
youtarr_subscriptionsYoutarr SubscriptionsA
subscriptions operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_list_channels(page=None, page_size=None, search=None, sort_by=None, sort_order=None, sub_folder=None): List subscribed YouTube channels with pagination, search, sorting, and subfolder filtering.
youtarr_update_channels(payload): WRITE: Replace channels with an array or apply a delta object containing add and remove arrays.
youtarr_get_channel_info(url): Fetch YouTube channel metadata by URL before subscribing.
youtarr_get_channel(channel_id): Read one subscribed channel by YouTube channel ID.
youtarr_search_channels(query, count=None): Search YouTube for channels; results are ephemeral and include local subscription state.
youtarr_get_channel_tabs(channel_id): Read available videos, shorts, and streams tabs for a channel.
youtarr_get_channel_tab_stats(channel_id): Read per-tab public, downloaded, ignored, and loaded video counts.
youtarr_set_channel_tab_auto_download(channel_id, tab_type, enabled): WRITE: Enable or disable automatic downloads for one channel tab.
youtarr_redetect_channel_tabs(channel_id): WRITE: Re-probe a channel's tabs with yt-dlp and update effective tab settings.
youtarr_get_channel_settings(channel_id): Read per-channel download, filter, playlist, and auto-removal settings.
youtarr_update_channel_settings(channel_id, settings): WRITE: Update per-channel settings such as subfolder, title_filter_regex, and protection.
youtarr_list_channel_subfolders(): List subfolders currently used by channels.
youtarr_preview_channel_filter(channel_id, title_filter_regex=None): Preview which stored channel videos match a title-filter regular expression.
youtarr_list_channel_videos(channel_id, page=None, page_size=None, search_query=None, sort_by=None, sort_order=None, tab_type=None, min_duration=None, max_duration=None, date_from=None, date_to=None, downloaded_filter=None, protected_filter=None, missing_filter=None, ignored_filter=None, watched_filter=None, deleted_filter=None, max_rating=None): List stored videos for a channel tab with download, watch, missing, and rating filters.
youtarr_fetch_channel_videos(channel_id, page=None, page_size=None, downloaded_filter=None, tab_type=None): WRITE: Fetch a page of videos from YouTube into a channel tab.
youtarr_get_channel_fetch_status(channel_id, tab_type=None): Read channel fetch progress and the latest background refresh result.
youtarr_preview_channel_download_all(channel_id, tab_type=None): Count known never-downloaded videos that a channel download-all run would queue.
youtarr_download_channel_all(channel_id, tab_type=None, override_settings=None): WRITE: Queue every known never-downloaded video on a channel tab; this can be long-running.
youtarr_ignore_channel_video(channel_id, youtube_id): WRITE: Ignore a channel video so automatic downloads skip it.
youtarr_unignore_channel_video(channel_id, youtube_id): WRITE: Remove a channel video's ignored status.
youtarr_bulk_ignore_channel_videos(channel_id, youtube_ids): WRITE: Ignore several videos belonging to one channel.
youtarr_list_subscription_imports(): List recent Google Takeout or cookie-based subscription import jobs.
youtarr_get_active_subscription_import(): Read the active subscription import, or None when no import is running.
youtarr_get_subscription_import(job_id): Read one active or historical subscription import job.
youtarr_start_subscription_import(channels): WRITE: Start importing selected channel objects in the background.
youtarr_cancel_subscription_import(job_id): WRITE: Request cancellation of an active subscription import.
Inputs: operation (required), arguments. Returns: result
youtarr_systemYoutarr SystemARead-only
system operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_health(): Read the unauthenticated server health check.
youtarr_db_status(): Read unauthenticated database connection and schema health.
youtarr_release_version(): Read the latest stable Youtarr release and installed yt-dlp version.
youtarr_status_summary(): Read the dashboard snapshot of library, queue, last run, and recent downloads.
youtarr_storage_status(): Read total, used, and free bytes for the downloads filesystem.
Inputs: operation (required), arguments. Returns: result
youtarr_videosYoutarr VideosA
videos operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_list_videos(page=None, limit=None, search=None, date_from=None, date_to=None, sort_by=None, sort_order=None, channel_filter=None, protected_filter=None, missing_filter=None, deleted_filter=None, watched_filter=None, max_rating=None): List downloaded videos with pagination, search, date, state, and rating filters.
youtarr_get_video(youtube_id): Read one video row by YouTube ID, including deleted or missing records until purged.
youtarr_get_video_metadata(youtube_id): Read extended metadata from the cached info JSON or fetch it with yt-dlp.
youtarr_get_video_watch_status(youtube_id): Read synced per-media-server and per-user watch status for a video.
youtarr_check_video_members_access(youtube_id): WRITE: Ask YouTube whether configured cookies can open a members-only video and cache the answer.
youtarr_get_local_video_status(youtube_ids): Read local download state and file metadata for up to 500 YouTube video IDs without YouTube requests.
youtarr_search_videos(query, count=None): Search YouTube for videos with local download and channel-subscription state.
youtarr_validate_video_url(url): Validate one YouTube video URL and fetch its metadata without queuing a download.
youtarr_enrich_videos(ids): Fetch lightweight title and channel metadata for YouTube video IDs through oEmbed.
youtarr_download_video(url, resolution=None, subfolder=None): WRITE: Queue one YouTube video; accepts only individual video URLs, not playlists or channels.
youtarr_download_videos(urls, override_settings=None, video_channel_map=None): WRITE: Queue a batch of individual YouTube video URLs with optional per-run overrides.
youtarr_download_new_channel_videos(override_settings=None): WRITE: Start the manual download-new run for enabled channels and playlists.
youtarr_update_video_ratings(video_ids, rating): WRITE: Set or clear content ratings for several database video IDs.
youtarr_set_video_protected(video_id, protected): WRITE: Set whether a database video is protected from automatic removal.
youtarr_delete_videos(video_ids=None, youtube_ids=None): DESTRUCTIVE: Delete downloaded files and records selected by database IDs or YouTube IDs.
youtarr_preview_auto_removal(settings=None): Preview automatic cleanup with optional autoRemoval* overrides without deleting files.
youtarr_get_removed_video_summary(): Read deleted, missing, present, and library-check counts for the video trash.
youtarr_mark_videos_deleted(video_ids=None, mark_all=None, ignore_library_check=None): WRITE: Mark selected missing videos, or all missing videos, as deleted.
youtarr_purge_removed_videos(states, remove_from_archive): DESTRUCTIVE: Permanently forget deleted and/or missing video records and cached metadata.
Inputs: operation (required), arguments. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
The ten top-level tools are organized by clear domains (system, auth, config, subscriptions, videos, jobs, playlists, media servers, maintenance, API keys), but 'system' and 'maintenance' have some conceptual overlap, and operations like notification testing or cookie management live under 'config' rather than a more intuitive home, which could cause occasional misselection.
Every tool follows the same youtarr_<domain> snake_case pattern, with no mixed casing or verb-style inconsistencies.
Ten tools is well within the typical 3–15 range and maps cleanly to the server's major functional areas, avoiding both fragmentation and an unwieldy surface.
The surface covers system health, authentication, configuration, channel/playlist/video lifecycle, job monitoring, media-server integration, maintenance, and API key management, with read/write/destructive operations clearly marked; no obvious gaps.
Maintenance
Related MCP Connectors
Admin tools for managing the AI SVG Generator site. Requires a scoped admin bearer token.
Manage uivoid projects, tools, keys, hosted databases and teams from your agent.
Manage Cronitor monitors and send telemetry pings — list, inspect, create, update, delete.
Agent-native video API: sessions, keys and media checks. Tool list works without auth.
Related MCP Servers
- AlicenseCqualityCmaintenanceProvides a structured data interface for Servarr apps (Sonarr, Radarr, Prowlarr) enabling health checks, analytics, simulations, backups, and guarded write operations.1008 npmMIT
- AlicenseBqualityCmaintenanceExposes the Sonarr v3 REST API as MCP tools, enabling LLMs to read and manage a Sonarr instance including series, episodes, downloads, history, and more. Supports both read and write operations, with destructive tools flagged.15MIT
- AlicenseAqualityCmaintenanceEnables AI agents to monitor, manage, and operate a Tdarr transcoding farm by inspecting nodes, workers, queues, libraries, plugins, and job reports, and by triggering scans, requeues, and worker actions.6314 npm1MIT
- AlicenseAqualityCmaintenanceEnables managing a self-hosted media library through its HTTP API, with scoped toolsets, confirm-gated writes, dry-run previews, and read caching. Supports libraries, items, collections, playlists, podcasts, sessions, stats, tags, genres, and administrative operations.13MIT