About Plex MCP Server
Plex MCP Server is an MCP server published by niavasha in the Content category: plex MCP Server. Conduid read 66 tools from its source: add_to_playlist, add_to_watchlist, arr_get_status, clear_playlist, create_playlist, delete_playlist and 60 more. No package is published for it, so it installs from a source checkout.
The repository has 59 stars and 20 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v1.6.1 (17 Oct 2026): Fixed deps: bump @modelcontextprotocol/sdk (#155)… It follows v1.6.0 (3 Sep 2026), and the 5 most recent releases go back to v1.4.0 (2 Aug 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include plex, plex-media-server and plex-server.
Install
git clone https://github.com/niavasha/plex-mcp-serverTools (66)
add_to_playlistAdd a media item to a playlist (requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| playlistId * | string | Playlist rating key |
| ratingKey * | string | Media rating key to add |
add_to_watchlistAdd a local Plex movie or show to the account watchlist (requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| ratingKey * | string | Local Plex rating key for a matched movie or show |
arr_get_statusCheck connection status of Sonarr and Radarr servicesclear_playlistClear all items from a playlist (preview unless confirm=true; requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Set true to execute clear after preview |
| playlistId * | string | Playlist rating key |
create_playlistCreate a new Plex playlist (requires PLEX_ENABLE_MUTATIVE_OPS=true). For regular playlists, ratingKeys is required — Plex does not support creating empty playlists. For smart playlists, set smart=true and provide librarySectionId (and optionally libtype / smartFilter).| Parameter | Type | Description |
|---|---|---|
| librarySectionId | string | Smart playlists only: library section ID to filter (e.g. '1'). REQUIRED when smart=true. |
| libtype | string | Smart playlists only: content type to filter for. Defaults based on playlist type (audio->track, video->movie, photo->photo). |
| ratingKeys | array | Rating keys to seed the playlist with. REQUIRED for non-smart playlists (>=1). All items are sent in a single POST, comma-joined in the playlist URI. Mutually exclusive with smart=true. |
| smart | boolean | Create a smart playlist filtered from a library section (default: false) |
| smartFilter | string | Smart playlists only: raw Plex filter query string, e.g. 'genre=Drama&year>=2020&sort=titleSort:asc&limit=100'. Appended to the section URI. |
| title * | string | Playlist title |
| type * | string | Playlist type (video, audio, photo) or media type (movie, show, episode, artist, album, track) |
delete_playlistDelete a Plex playlist without deleting the underlying media (requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| playlistId * | string | Playlist rating key |
export_libraryExport a full library as JSON. Over stdio it is written to a file under ./exports; over HTTP it is kept for the session and read with resources/read using the resourceUri in the result (clients on protocol 2025-06-18 or later also get a resource link)| Parameter | Type | Description |
|---|---|---|
| libraryKey * | string | Library section key |
| outputPath | string | Optional relative path under ./exports (default: library_{key}_{timestamp}_{random}.json). stdio only; ignored over HTTP |
| pageSize | number | Items per page for export (default: 500) |
| type | string | Media type (${MEDIA_TYPES.join(", ")}) |
get_active_sessionsGet currently active Plex streams — who is watching what right now, including player state, session location, transcode decisions and media qualityget_editable_fieldsGet editable fields, available tags and locked fields for a media item| Parameter | Type | Description |
|---|---|---|
| ratingKey * | string | The rating key of the media item |
get_fully_watchedGet all fully watched movies and shows from a library| Parameter | Type | Description |
|---|---|---|
| libraryKey | string | Library section key (optional, searches all if not provided) |
| limit | number | Number of items to return (default: 500) |
| mediaType | string | Filter by media type (movie, show, all) |
get_librariesGet all Plex librariesget_library_itemsList items in a library with pagination (useful for large libraries)| Parameter | Type | Description |
|---|---|---|
| libraryKey * | string | Library section key |
| limit | number | Number of items to return (default: 1000) |
| offset | number | Zero-based offset for pagination (default: 0) |
| sort | string | Sort order (optional, e.g., titleSort:asc) |
| type | string | Media type (${MEDIA_TYPES.join(", ")}) |
get_library_statsGet library-specific statistics| Parameter | Type | Description |
|---|---|---|
| libraryKey | string | Library section key (optional) |
get_media_detailsGet detailed information about a specific media item| Parameter | Type | Description |
|---|---|---|
| ratingKey * | string | The rating key of the media item |
get_on_deckGet on deck (continue watching) itemsget_playlist_itemsGet items in a Plex playlist| Parameter | Type | Description |
|---|---|---|
| playlistId * | string | Playlist rating key |
get_playlistsGet all Plex playlistsget_popular_contentGet most popular content by plays or duration| Parameter | Type | Description |
|---|---|---|
| limit | number | Number of items to return (default: 50) |
| mediaType | string | Filter by media type |
| metric | string | Sort by plays or total duration |
| timeRange | number | Time range in days (default: 30) |
get_recently_addedGet recently added media across all libraries. TV is grouped by season, so a new episode of an existing season is not listed; pass type and libraryKey to list items of one type (e.g. episode) newest first.| Parameter | Type | Description |
|---|---|---|
| libraryKey | string | Library section key to list from (required with type) |
| limit | number | Number of items to return (default: 50) |
| type | string | List only this media type, newest first (requires libraryKey) |
get_recently_watchedGet recently watched movies and shows| Parameter | Type | Description |
|---|---|---|
| limit | number | Number of items to return (default: 100) |
| mediaType | string | Filter by media type (movie, show, episode, all) |
get_recommendationsGet personalized movie recommendations from your Plex library based on watch history. Analyzes genres, directors, and actors you've watched to score unwatched films. Supports per-user recommendations for multi-user Plex servers. If Trakt is configured, uses your rating profile to further refine scores.| Parameter | Type | Description |
|---|---|---|
| libraryKey * | string | Library section key (required — use get_libraries to find it) |
| limit | number | Number of recommendations to return (default: 10) |
| userId | string | Plex account ID for per-user recommendations. Use get_user_stats to find user IDs. Only the server owner's PLEX_TOKEN can specify it; omit it to use PLEX_TOKEN's own account. |
get_user_statsGet user-specific watch statistics| Parameter | Type | Description |
|---|---|---|
| timeRange | number | Time range in days (default: 30) |
get_watch_historyGet detailed watch history with session information| Parameter | Type | Description |
|---|---|---|
| limit | number | Number of sessions to return (default: 500) |
| mediaType | string | Filter by media type |
| userId | string | Filter by specific user ID (optional). If the history endpoint fails, the library fallback honours it only when PLEX_TOKEN belongs to the server owner; with a non-owner token, omit it. |
get_watch_statsGet comprehensive watch statistics (Tautulli-style analytics)| Parameter | Type | Description |
|---|---|---|
| statType | string | Type of statistics to retrieve |
| timeRange | number | Time range in days (default: 30) |
get_watchlistGet the user's Plex watchlistmark_unwatchedMark a Plex media item as unwatched (requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| ratingKey * | string | The local Plex rating key of the media item |
mark_watchedMark a Plex media item as watched (requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| ratingKey * | string | The local Plex rating key of the media item |
radarr_add_movieAdd a new movie to Radarr by TMDB ID| Parameter | Type | Description |
|---|---|---|
| minimumAvailability | string | When the movie is considered available |
| monitorType | string | What to monitor (default: movieOnly). movieAndCollection also adds and monitors every other movie in its collection; monitored and searchForMovie apply only to this movie. Does not change monitored: pass monitored: false to leave the movie itself unmonitored |
| monitored | boolean | Whether to monitor the movie (default: true) |
| qualityProfileId | number | Quality profile ID (auto-detected if omitted) |
| rootFolderPath | string | Root folder path (auto-detected if omitted) |
| searchForMovie | boolean | Search for the movie after adding (default: true) |
| tags | array | Tag labels to assign; labels that do not exist yet are created first (existing tags: radarr_get_tags) |
| title * | string | Movie title |
| tmdbId * | number | The Movie Database (TMDB) ID |
radarr_create_tagCreate a new Radarr tag| Parameter | Type | Description |
|---|---|---|
| label * | string | Tag label |
radarr_delete_tagDelete a Radarr tag by ID| Parameter | Type | Description |
|---|---|---|
| id * | number | Tag ID (from radarr_get_tags) |
radarr_get_calendarGet upcoming movies from the Radarr calendar| Parameter | Type | Description |
|---|---|---|
| endDate | string | End date (YYYY-MM-DD, default: 30 days from now) |
| limit | number | Max results to return (default: 200) |
| startDate | string | Start date (YYYY-MM-DD, default: 7 days ago) |
radarr_get_missingGet missing/wanted movies from Radarr| Parameter | Type | Description |
|---|---|---|
| page | number | Page number (default: 1) |
| pageSize | number | Items per page (default: 200) |
radarr_get_moviesList all movies in Radarr with optional title filter| Parameter | Type | Description |
|---|---|---|
| filter | string | Optional title substring filter |
| limit | number | Max results to return (default: 200) |
radarr_get_profilesGet Radarr quality profiles and root folders (needed before adding movies)radarr_get_queueGet the current Radarr download queue| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results to return (default: 200) |
radarr_get_tagsList all Radarr tags with their IDs and labelsradarr_searchSearch TMDB for new movies to add to Radarr| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results to return (default: 200) |
| query * | string | Search query (movie title) |
radarr_trigger_searchTrigger a search for missing movies, optionally for a specific movie| Parameter | Type | Description |
|---|---|---|
| movieId | number | Radarr movie ID (omit to search all missing) |
radarr_update_tagRename an existing Radarr tag| Parameter | Type | Description |
|---|---|---|
| id * | number | Tag ID (from radarr_get_tags) |
| label * | string | New tag label |
rate_mediaSet the user's Plex rating for a media item (requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| rating * | number | User rating from 0 to 10 |
| ratingKey * | string | The local Plex rating key of the media item |
remove_from_playlistRemove an item from a playlist (requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| playlistId * | string | Playlist rating key |
| playlistItemId * | string | Playlist item ID to remove |
remove_from_watchlistRemove a movie or show from the account watchlist by global Plex GUID or local rating key (requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| plexGuid | string | Global Plex GUID returned by get_watchlist, such as plex://movie/abc123 |
| ratingKey | string | Local numeric Plex rating key; resolved to a global GUID before removal |
search_mediaSearch for media in Plex libraries| Parameter | Type | Description |
|---|---|---|
| libraryKey | string | Library section key to restrict search (optional) |
| limit | number | Number of items to return (default: 500) |
| offset | number | Zero-based offset for pagination (default: 0) |
| query * | string | Search query |
| type | string | Media type (${MEDIA_TYPES.join(", ")}) |
sonarr_add_seriesAdd a new series to Sonarr by TVDB ID| Parameter | Type | Description |
|---|---|---|
| monitorType | string | Which episodes to monitor |
| monitored | boolean | Whether to monitor the series (default: true) |
| qualityProfileId | number | Quality profile ID (auto-detected if omitted) |
| rootFolderPath | string | Root folder path (auto-detected if omitted) |
| searchForCutoffUnmetEpisodes | boolean | After adding, search for upgrades to monitored episodes whose existing files are below the quality profile's cutoff; no effect without files on disk (default: false) |
| searchForMissingEpisodes | boolean | Search for missing episodes after adding (default: true) |
| seasonFolder | boolean | Use season folders (default: true) |
| seriesType | string | Series type, used by Sonarr for renaming, parsing and searching (default: standard) |
| tags | array | Tag labels to assign; labels that do not exist yet are created first (existing tags: sonarr_get_tags) |
| title * | string | Series title |
| tvdbId * | number | TheTVDB ID of the series |
sonarr_create_tagCreate a new Sonarr tag| Parameter | Type | Description |
|---|---|---|
| label * | string | Tag label |
sonarr_delete_tagDelete a Sonarr tag by ID| Parameter | Type | Description |
|---|---|---|
| id * | number | Tag ID (from sonarr_get_tags) |
sonarr_get_calendarGet upcoming episodes from the Sonarr calendar| Parameter | Type | Description |
|---|---|---|
| endDate | string | End date (YYYY-MM-DD, default: 30 days from now) |
| limit | number | Max results to return (default: 200) |
| startDate | string | Start date (YYYY-MM-DD, default: 7 days ago) |
sonarr_get_missingGet missing/wanted episodes from Sonarr| Parameter | Type | Description |
|---|---|---|
| page | number | Page number (default: 1) |
| pageSize | number | Items per page (default: 200) |
sonarr_get_profilesGet Sonarr quality profiles and root folders (needed before adding series)sonarr_get_queueGet the current Sonarr download queue| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results to return (default: 200) |
sonarr_get_seriesList all series in Sonarr with optional title filter| Parameter | Type | Description |
|---|---|---|
| filter | string | Optional title substring filter |
| limit | number | Max results to return (default: 200) |
sonarr_get_tagsList all Sonarr tags with their IDs and labelssonarr_searchSearch TheTVDB for new series to add to Sonarr| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results to return (default: 200) |
| query * | string | Search query (series title) |
sonarr_trigger_searchTrigger a search for missing episodes, optionally for a specific series| Parameter | Type | Description |
|---|---|---|
| seriesId | number | Sonarr series ID (omit to search all missing) |
sonarr_update_tagRename an existing Sonarr tag| Parameter | Type | Description |
|---|---|---|
| id * | number | Tag ID (from sonarr_get_tags) |
| label * | string | New tag label |
trakt_authenticateStart Trakt.tv OAuth authentication process| Parameter | Type | Description |
|---|---|---|
| state | string | Optional state parameter for OAuth flow |
trakt_complete_authComplete Trakt.tv authentication with authorization code| Parameter | Type | Description |
|---|---|---|
| code * | string | Authorization code from Trakt OAuth callback |
trakt_get_auth_statusCheck Trakt.tv authentication statustrakt_get_sync_statusCheck status of ongoing sync operationstrakt_get_user_statsGet enhanced viewing statistics from Trakt.tv| Parameter | Type | Description |
|---|---|---|
| userId | number | Optional Plex user ID for correlation |
trakt_searchSearch for movies and shows on Trakt.tv| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results to return (default: 100) |
| query * | string | Search query |
| type | string | Optional media type filter |
| year | number | Optional year filter |
trakt_start_scrobblingEnable real-time scrobbling to Trakt.tv| Parameter | Type | Description |
|---|---|---|
| duration | number | Total duration in milliseconds |
| progress * | number | Current progress percentage (0-100) |
| ratingKey * | string | Plex media rating key |
| title * | string | Media title |
| type * | string | Media type |
trakt_sync_from_traktGet watch history from Trakt.tv for comparisontrakt_sync_to_traktSync Plex watch history to Trakt.tv| Parameter | Type | Description |
|---|---|---|
| batchSize | number | Number of items to sync per batch |
| dryRun | boolean | Preview sync without making changes |
| includeProgress | boolean | Include watch progress information |
update_metadataUpdate metadata fields for a media item (requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| collections | array | Replace collections with these tags (optional) |
| contentRating | string | New content rating (optional) |
| directors | array | Replace directors with these tags (optional) |
| genres | array | Replace genres with these tags (optional) |
| originalTitle | string | New original title (optional) |
| rating | number | New user rating (optional) |
| ratingKey * | string | The rating key of the media item to update |
| roles | array | Replace roles/actors with these tags (optional) |
| sortTitle | string | New sort title (optional) |
| studio | string | New studio (optional) |
| summary | string | New summary/description (optional) |
| tagline | string | New tagline (optional) |
| title | string | New title (optional) |
| year | number | New year (optional) |
update_metadata_from_jsonUpdate metadata from a JSON payload (requires PLEX_ENABLE_MUTATIVE_OPS=true)| Parameter | Type | Description |
|---|---|---|
| metadata * | object | Metadata payload to apply |
| ratingKey * | string | The rating key of the media item to update |
| setPosterFromUrl | boolean | Attempt to set poster from metadata.images.posters[0].url |
Security checks
- ✓README presentThe repository's README runs to about 2.7K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 32 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.7K words, fetched a month ago. The original in the repository is authoritative.
Read full README