About Plex MCP Server
Plex MCP Server is an MCP server published by vladimir-tutin in the AI category: mCP Server for Plex to allow LLMs to converse with Plex. Conduid read 63 tools from its source: client_control_playback, client_get_details, client_get_timelines, client_list, client_navigate, client_set_streams and 57 more. No package is published for it, so it installs from a source checkout.
The repository has 163 stars and 32 forks, is licensed MIT, and its last commit was on 13 Oct 2026. The latest release is v1.5.0 (13 Oct 2026): Add media_set_watched_status(media_id, watched, username) to mark media watched or unwatched for the configured account or a selected accessible user. It follows v1.4.1 (12 Oct 2026), and the 5 most recent releases go back to v1.2.0 (12 Oct 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include plex, plex-media-server and plex-server.
Install
git clone https://github.com/vladimir-tutin/plex-mcp-serverTools (63)
client_control_playbackControl playback on a specified client.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform (play, pause, stop, skipNext, skipPrevious, stepForward, stepBack, seekTo, seekForward, seekBack, mute, unmute, setVolume) |
| client_name * | string | Name of the client to control (use machine identifier or title from client_list) |
| media_type | string | Type of media being controlled ('video', 'music', or 'photo') |
| parameter | integer | Parameter for actions that require it (like setVolume or seekTo) |
client_get_detailsGet detailed information about a specific Plex client.| Parameter | Type | Description |
|---|---|---|
| client_name * | string | Name or machineIdentifier of the client to get details for |
client_get_timelinesGet the current timeline information for a specific Plex client.| Parameter | Type | Description |
|---|---|---|
| client_name * | string | Name or machineIdentifier of the client to get timeline for |
client_listList all available Plex clients including idle players.| Parameter | Type | Description |
|---|---|---|
| active_only | boolean | If True, only return clients that are currently playing or paused |
| include_details | boolean | Whether to include detailed information about each client |
client_navigateNavigate a Plex client interface.| Parameter | Type | Description |
|---|---|---|
| action * | string | Navigation action to perform (moveUp, moveDown, moveLeft, moveRight, select, back, home, contextMenu) |
| client_name * | string | Name or machineIdentifier of the client to navigate |
client_set_streamsSet audio, subtitle, or video streams for current playback on a client.| Parameter | Type | Description |
|---|---|---|
| audio_stream_id | string | ID of the audio stream to switch to |
| client_name * | string | Name or machineIdentifier of the client to set streams for |
| subtitle_stream_id | string | ID of the subtitle stream to switch to, use '0' to disable |
| video_stream_id | string | ID of the video stream to switch to |
client_start_playbackStart playback of media on a specified client.| Parameter | Type | Description |
|---|---|---|
| client_name | string | Optional name of the client to play on (will prompt if not provided) |
| library_name | string | Optional name of the library to search in |
| media_title | string | Title of the media to play (optional if rating_key is provided) |
| offset | integer | Optional time offset in milliseconds to start from |
| rating_key | integer | Optional specific rating key (ID) of the media to play |
| use_external_player | boolean | Whether to use the client's external player |
collection_add_toAdd items to an existing collection.| Parameter | Type | Description |
|---|---|---|
| collection_id | integer | ID of the collection to add to (optional if collection_title is provided) |
| collection_title | string | Title of the collection to add to (optional if collection_id is provided) |
| item_ids | array | List of media IDs to add to the collection (optional if item_titles is provided) |
| item_titles | array | List of media titles to add to the collection (optional if item_ids is provided) |
| library_name | string | Name of the library containing the collection (required if using collection_title) |
collection_createCreate a new collection with specified items.| Parameter | Type | Description |
|---|---|---|
| collection_title * | string | Title for the new collection |
| item_ids | array | List of media IDs to include in the collection (optional if item_titles is provided) |
| item_titles | array | List of media titles to include in the collection (optional if item_ids is provided) |
| library_name * | string | Name of the library to create the collection in |
collection_deleteDelete a collection.| Parameter | Type | Description |
|---|---|---|
| collection_id | integer | ID of the collection to delete (optional if collection_title is provided) |
| collection_title | string | Title of the collection to delete (optional if collection_id is provided) |
| library_name | string | Name of the library containing the collection (required if using collection_title) |
collection_editComprehensively edit a collection's attributes.| Parameter | Type | Description |
|---|---|---|
| add_labels | array | Labels to add to existing ones |
| background_path | string | Path to a new background/art image file |
| background_url | string | URL to a new background/art image |
| collection_id | integer | ID of the collection to edit (optional if collection_title is provided) |
| collection_title | string | Title of the collection to edit (optional if collection_id is provided) |
| library_name | string | Name of the library containing the collection (required if using collection_title) |
| new_advanced_settings | object | Dictionary of advanced settings to apply |
| new_content_rating | string | New content rating (e.g., PG-13, R, etc.) |
| new_labels | array | Set completely new labels (replaces existing) |
| new_sort_title | string | New sort title for the collection |
| new_summary | string | New summary/description for the collection |
| new_title | string | New title for the collection |
| poster_path | string | Path to a new poster image file |
| poster_url | string | URL to a new poster image |
| remove_labels | array | Labels to remove from existing ones |
collection_listList all collections on the Plex server or in a specific library.| Parameter | Type | Description |
|---|---|---|
| library_name | string | Optional name of the library to list collections from |
collection_remove_fromRemove items from a collection.| Parameter | Type | Description |
|---|---|---|
| collection_id | integer | ID of the collection to remove from (optional if collection_title is provided) |
| collection_title | string | Title of the collection to remove from (optional if collection_id is provided) |
| item_titles | array | List of media titles to remove from the collection |
| library_name | string | Name of the library containing the collection (required if using collection_title) |
library_get_contentsGet filtered, paginated items from one library or across accessible libraries.| Parameter | Type | Description |
|---|---|---|
| actor | string | Filter by actor tag |
| content_rating | string | Filter by content rating (e.g., 'PG-13') |
| director | string | Filter by director tag |
| genre | string | Filter by genre tag (parent show genre for episodes). |
| library_name | string | Optional library name. Omit to search all accessible libraries; media_type is then required. |
| limit | integer | Maximum number of items to return (default: 50) |
| media_type | string | movie, show, episode, artist, album, or track. Defaults to the named library type. |
| network | string | Filter by network tag (primarily for TV) |
| offset | integer | Number of items to skip (default: 0) |
| resolution | string | Filter by resolution (e.g., '4k', '1080') |
| sort | string | Sort order (e.g., 'addedAt:desc', 'title:asc') |
| studio | string | Filter by studio (parent show for episodes, parent album for tracks). |
| title | string | Case-insensitive Plex title search, not exact-only or arbitrary substring matching. Searches names of the selected media_type; TV libraries default to show names. Applied before pagination and combined with the other filters. |
| unwatched | boolean | Only unplayed items; for shows, those with unwatched episodes (including partial shows). |
| username | string | Optional Plex username or profile title; omit for the configured account. Failed access returns an error. |
| watched | boolean | Only return played items; for shows, those with no unwatched episodes. Partially watched shows are excluded; inspect watchStatus and watchedEpisodeCount. Cannot be combined with unwatched. Watch state belongs to the selected user. |
| writer | string | Filter by writer tag |
| year | any | Filter by release year (parent album year for tracks). |
library_get_detailsGet detailed information about a specific library, including folder paths and settings.| Parameter | Type | Description |
|---|---|---|
| library_name * | string | Name of the library to get details for |
library_get_recently_addedGet recently added media across all libraries or in a specific library.| Parameter | Type | Description |
|---|---|---|
| count | integer | Number of items to return (default: 50) |
| library_name | string | Optional library name to limit results to |
library_get_statsGet statistics for a specific library.| Parameter | Type | Description |
|---|---|---|
| library_name * | string | Name of the library to get stats for |
library_listList all available libraries on the Plex server.library_refreshRefresh a specific library or all libraries.| Parameter | Type | Description |
|---|---|---|
| library_name | string | Optional name of the library to refresh (refreshes all if None) |
library_scanScan a specific library or part of a library.| Parameter | Type | Description |
|---|---|---|
| library_name * | string | Name of the library to scan |
| path | string | Optional specific path to scan within the library |
media_deleteDelete a media item from the Plex library.| Parameter | Type | Description |
|---|---|---|
| library_name | string | Optional library name to limit search to when using media_title |
| media_id | integer | ID of the media to delete (optional if media_title is provided) |
| media_title | string | Title of the media to delete (optional if media_id is provided) |
media_edit_metadataEdit metadata for a specific media item.| Parameter | Type | Description |
|---|---|---|
| library_name | string | Optional library name to limit search to |
| media_title * | string | Title of the media to edit |
| new_director | string | New director to add (movies only) |
| new_rating | number | New rating (0-10) |
| new_release_date | string | New release date (YYYY-MM-DD) |
| new_studio | string | New studio to set |
| new_summary | string | New summary/description |
| new_tags | array | List of tags to add |
| new_title | string | New title for the item |
| remove_genre | string | Genre to remove |
media_get_artworkGet images for a specific media item.| Parameter | Type | Description |
|---|---|---|
| image_types | array | List of image types to get (poster, art/background, logo, banner, thumb) |
| library_name | string | Optional library name to limit search to when using media_title |
| media_id | integer | ID of the media to get images for (optional if media_title is provided) |
| media_title | string | Title of the media to get images for (optional if media_id is provided) |
| output_dir | string | Directory to save images to when using file output format |
| output_format | string | Format to return image data in (base64, url, or file_path) |
media_get_detailsGet detailed information about a specific media item using PlexAPI's Media and Mixin functions.| Parameter | Type | Description |
|---|---|---|
| library_name | string | Optional library name to limit search to when using media_title |
| media_id | integer | Plex media ID/rating key to directly fetch the item (optional if media_title is provided) |
| media_title | string | Title of the media to get details for (optional if media_id is provided) |
| username | string | Optional Plex username or profile title; omit for the configured account. Failed access returns an error. |
media_list_available_artworkList all available artwork for a specific media item.| Parameter | Type | Description |
|---|---|---|
| art_type | string | Type of artwork to list (poster, background/art, logo) |
| library_name | string | Optional library name to limit search to when using media_title |
| media_id | integer | ID of the media to list artwork for (optional if media_title is provided) |
| media_title | string | Title of the media to list artwork for (optional if media_id is provided) |
media_searchSearch for media across all libraries.| Parameter | Type | Description |
|---|---|---|
| content_type | string | Optional content type to limit search to (movie, show, episode, track, album, artist or use comma-separated values for HTTP API like movies,music,tv) |
| query * | string | Search term to look for |
media_set_artworkSet artwork for a specific media item.| Parameter | Type | Description |
|---|---|---|
| art_type | string | Type of artwork to set (poster, background/art, logo) |
| filepath | string | Path to the local image file |
| library_name | string | Optional library name to limit search to |
| lock | boolean | Whether to lock the artwork to prevent Plex from changing it |
| media_title * | string | Title of the media to set artwork for |
| url | string | URL to the image file |
media_set_watched_statusMark a Plex media item as watched or unwatched.| Parameter | Type | Description |
|---|---|---|
| media_id * | integer | Plex rating key returned by media_search or media_get_details |
| username | string | Optional Plex username or profile title; omit for the configured account. Failed access returns an error. |
| watched * | boolean | True to mark the item watched, False to mark it unwatched |
playlist_add_toAdd items to a playlist.| Parameter | Type | Description |
|---|---|---|
| item_ids | array | List of media IDs to add to the playlist (optional if item_titles is provided) |
| item_titles | array | List of media titles to add to the playlist (optional if item_ids is provided) |
| playlist_id | integer | ID of the playlist to add to (optional if playlist_title is provided) |
| playlist_title | string | Title of the playlist to add to (optional if playlist_id is provided) |
| username | string | Optional Plex username or profile title. Omit for the configured account. Failed access returns an error. |
playlist_copy_to_userCopy a playlist to another user account.| Parameter | Type | Description |
|---|---|---|
| playlist_id | integer | ID of the playlist to copy (optional if playlist_title is provided) |
| playlist_title | string | Title of the playlist to copy (optional if playlist_id is provided) |
| source_username | string | Optional source username or profile title; defaults to the configured account. |
| username | string | Destination username or profile title. |
playlist_createCreate a new playlist with specified items.| Parameter | Type | Description |
|---|---|---|
| item_titles * | array | List of media titles to include in the playlist |
| library_name | string | Optional library name to limit search to |
| playlist_title * | string | Title for the new playlist |
| summary | string | Optional summary description for the playlist |
| username | string | Optional Plex username or profile title. Omit for the configured account. Failed access returns an error. |
playlist_create_smartSave `filters`, `sort`, `limit` and `libtype` as a playlist.| Parameter | Type | Description |
|---|---|---|
| filters | object | Plex filters, e.g. {"year>>": 2000}, or {"title": "Band of Brothers"} with libtype show. |
| library_name * | string | Library to search. |
| libtype | string | Search type, defaulting to movie, episode or track. Show/artist searches produce playable episodes/tracks. |
| limit | integer | Positive maximum result count; omit for no limit. |
| playlist_title * | string | New playlist title. |
| sort | string | Sort fields, e.g. year:desc. Discover valid fields with playlist_get_smart_filter_options. |
| summary | string | Optional description. |
| username | string | Optional Plex username or profile title; omit for the configured account. |
playlist_deleteDelete a playlist.| Parameter | Type | Description |
|---|---|---|
| playlist_id | integer | ID of the playlist to delete (optional if playlist_title is provided) |
| playlist_title | string | Title of the playlist to delete (optional if playlist_id is provided) |
| username | string | Optional Plex username or profile title. Omit for the configured account. Failed access returns an error. |
playlist_editEdit a playlist's details such as title and summary.| Parameter | Type | Description |
|---|---|---|
| new_summary | string | Optional new summary for the playlist |
| new_title | string | Optional new title for the playlist |
| playlist_id | integer | ID of the playlist to edit (optional if playlist_title is provided) |
| playlist_title | string | Title of the playlist to edit (optional if playlist_id is provided) |
| username | string | Optional Plex username or profile title. Omit for the configured account. Failed access returns an error. |
playlist_edit_smart_filtersUpdate a playlist by ID or title, preserving omitted settings.| Parameter | Type | Description |
|---|---|---|
| filters | object | Replace filters; omit to preserve, or use {} to clear them. |
| libtype | string | Change search type explicitly; omit to preserve show/episode/artist/track matching. |
| limit | integer | Replace result limit; omit to preserve, or use 0 to remove it. |
| playlist_id | integer | ID from playlist_list or playlist_create_smart. |
| playlist_title | string | Existing title, optional when playlist_id is supplied. |
| sort | string | Replace sort order; omit to preserve, or use an empty string to clear it. |
| username | string | Optional Plex username or profile title; omit for the configured account. |
playlist_get_contentsGet the contents of a playlist.| Parameter | Type | Description |
|---|---|---|
| playlist_id | integer | ID of the playlist to get contents of (optional if playlist_title is provided) |
| playlist_title | string | Title of the playlist to get contents of (optional if playlist_id is provided) |
| username | string | Optional Plex username or profile title. Omit for the configured account. Failed access returns an error. |
playlist_get_smart_filter_optionsDiscover fields, operators, sorting and field values for `library_name` and optional `libtype`.| Parameter | Type | Description |
|---|---|---|
| field | string | Optional field whose available values should be listed, such as genre. |
| library_name * | string | Library to search. |
| libtype | string | Search type; defaults to movie, episode or track for the library. Use show to match show titles, or episode to match episode titles. |
| username | string | Optional Plex username or profile title; omit for the configured account. |
playlist_listList all playlists on the Plex server.| Parameter | Type | Description |
|---|---|---|
| content_type | string | Optional content type to filter playlists (audio, video, photo) |
| library_name | string | Optional library name to filter playlists from |
| username | string | Optional Plex username or profile title. Omit for the configured account. Failed access returns an error. |
playlist_remove_fromRemove items from a playlist.| Parameter | Type | Description |
|---|---|---|
| item_titles | array | List of media titles to remove from the playlist |
| playlist_id | integer | ID of the playlist to remove from (optional if playlist_title is provided) |
| playlist_title | string | Title of the playlist to remove from (optional if playlist_id is provided) |
| username | string | Optional Plex username or profile title. Omit for the configured account. Failed access returns an error. |
playlist_upload_posterUpload a poster image for a playlist.| Parameter | Type | Description |
|---|---|---|
| playlist_id | integer | ID of the playlist to set poster for (optional if playlist_title is provided) |
| playlist_title | string | Title of the playlist to set poster for (optional if playlist_id is provided) |
| poster_filepath | string | Local file path to an image to use as poster |
| poster_url | string | URL to an image to use as poster |
| username | string | Optional Plex username or profile title. Omit for the configured account. Failed access returns an error. |
server_clean_bundlesClean unused media bundles.server_empty_trashEmpty trash for a specific library or all libraries.| Parameter | Type | Description |
|---|---|---|
| library_name | string | Optional name of the library to empty trash for. If not provided, empties trash for all libraries. |
server_get_alertsGet real-time alerts from the Plex server by listening on a websocket.| Parameter | Type | Description |
|---|---|---|
| timeout | integer | Number of seconds to listen for alerts (default: 15) |
server_get_bandwidthGet bandwidth statistics from the Plex server.| Parameter | Type | Description |
|---|---|---|
| lan | string | Filter by local network (true/false) |
| timespan | string | Time span for bandwidth data (months, weeks, days, hours, seconds) |
server_get_butler_tasksGet information about Plex Butler tasks.server_get_current_resourcesGet resource usage information from the Plex server.server_get_infoGet detailed information about the Plex server.server_get_plex_logsGet Plex server logs.| Parameter | Type | Description |
|---|---|---|
| list_files | boolean | If True, lists all available log files instead of content. |
| log_type | string | Type of log to retrieve (server, scanner, transcoder, updater) or specific filename/partial match |
| num_lines | integer | Number of log lines (or matches) to retrieve (default: 100) |
| search_term | string | Text to search for in the logs. If provided, returns matching lines with line numbers. |
| start_line | integer | Starting line number to retrieve (0-indexed). If None, retrieves last num_lines. |
server_optimize_databaseOptimize the Plex database.server_run_butler_taskManually run a specific Plex Butler task now.| Parameter | Type | Description |
|---|---|---|
| task_name * | string | Name of the butler task to run |
sessions_get_activeGet information about current playback sessions, including IP addresses.| Parameter | Type | Description |
|---|---|---|
| unused | string | Unused parameter to satisfy the function signature |
sessions_get_media_playback_historyGet playback history for a specific media item.| Parameter | Type | Description |
|---|---|---|
| library_name | string | Optional library name to limit search to |
| media_id | integer | Plex media ID/rating key to directly fetch the item (optional if media_title is provided) |
| media_title | string | Title of the media to get history for (optional if media_id is provided) |
user_get_continue_watchingGet items the user has partially watched and can continue.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of items to return (default 10) |
| user_id | integer | Optional ID from user_list_all_users; takes precedence over username. Omit both selectors to use the configured account. Requires server-admin access for other users. |
| username | string | Optional Home or shared user's exact username or profile title. |
user_get_infoGet detailed information about a specific Plex user.| Parameter | Type | Description |
|---|---|---|
| username | string | Optional. Name of the user to get information for. Defaults to the authenticated owner. |
user_get_on_deckGet on deck (in progress) media for a specific user.| Parameter | Type | Description |
|---|---|---|
| username | string | Name of the user to get on-deck items for |
user_get_statisticsGet statistics about user watch activity over different time periods.| Parameter | Type | Description |
|---|---|---|
| time_period | string | Time period for statistics - options: "last_24_hours", "last_7_days", "last_30_days", "last_90_days", "last_year", "all_time" |
| username | string | Optional. Filter statistics for a specific user. If not provided, returns statistics for all users. |
user_get_watch_historyGet recent watch history for a specific user.| Parameter | Type | Description |
|---|---|---|
| content_type | string | Optional filter for content type (movie, show, episode, etc) |
| limit | integer | Maximum number of recently watched items to show |
| user_id | integer | Optional user ID to filter by (takes precedence over username). Use user_list_all_users to get IDs. |
| username | string | Name of the user to get watch history for (ignored if user_id is provided) |
user_list_all_usersList all users (owner, home users, and shared users) with their IDs and types.user_search_usersSearch for users with names, usernames, or emails containing the search term, or list all users if no search term is provided.| Parameter | Type | Description |
|---|---|---|
| search_term | string | Optional term to search for in user information |
watchlist_addAdd a movie/show GUID from watchlist_search to the PLEX_TOKEN account's Watchlist.| Parameter | Type | Description |
|---|---|---|
| guid * | string | |
| home_user_id | integer | |
| pin | string | |
| username | string |
watchlist_listList the PLEX_TOKEN account's Watchlist, including titles outside the library.| Parameter | Type | Description |
|---|---|---|
| home_user_id | integer | Optional Plex Home profile ID from user_list_all_users. Omit for the configured account. |
| include_state | boolean | Include matching local library items and their watched/progress state (default True). Unmatched availability is unknown, not proof that media is absent. Shows report episode counts; individual episode progress is not included. |
| limit | integer | Page size, from 1 to 100. |
| offset | integer | Number of items to skip. |
| pin | string | Profile PIN, only if required by Plex. |
| username | string | Exact Plex username or profile title. Uses the configured admin credentials; returns an error if access fails. home_user_id takes precedence. |
watchlist_removeRemove a GUID returned by watchlist_list from the PLEX_TOKEN account's Watchlist.| Parameter | Type | Description |
|---|---|---|
| guid * | string | |
| home_user_id | integer | |
| pin | string | |
| username | string |
watchlist_searchSearch Plex Discover for movie/show GUIDs to add to the Watchlist.| Parameter | Type | Description |
|---|---|---|
| content_type | string | Optional movie or show filter. |
| home_user_id | integer | Optional Plex Home profile ID from user_list_all_users. |
| limit | integer | Maximum results, from 1 to 100. |
| pin | string | Profile PIN, only if required by Plex. |
| query * | string | Title to search for. |
| username | string | Exact Plex username or profile title. Uses the configured admin credentials; returns an error if access fails. home_user_id takes precedence. |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 14 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEplex_mcp_server.py:489, plex_mcp_server.py:427, plex_mcp_server.py:11
- Starts other programs
- 2 callswatcher.py:67, watcher.py:74
- Outbound network calls
- 16 callsplex_mcp_server.py:206, plex_mcp_server.py:245, plex_mcp_server.py:265
- Writes or deletes files
- 2 callsmodules/media.py:925, modules/server.py:157
- Lockfile
- None in the repository
Pattern matches on the source text of 14 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 4.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README