Plex MCP Server
Enables searching and managing Plex media libraries, including browsing movies, TV shows, and music, creating and managing playlists, viewing media information and watch history, accessing library statistics, and discovering music through natural language queries and recommendations.
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., "@Plex MCP Server show me recently added movies"
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.
Plex MCP Server
Search and manage your Plex media libraries with Claude. Actively developed by Claude and a nerdy human who mostly uses Plex for auditory delights and wanted to see how much could be accomplished without knowing much about what they're doing. Results may vary, but probably in a good way.
Quick Start
Install via Smithery (Recommended)
npx -y @smithery/cli install @vyb1ng/plex-mcp --client claudeManual Setup for Claude Desktop
Add to your Claude Desktop MCP settings:
{
"mcpServers": {
"plex": {
"command": "npx",
"args": ["plex-mcp"],
"env": {
"PLEX_URL": "http://your-plex-server:32400"
}
}
}
}Related MCP server: plex-mcp-server
Authentication
Option 1: OAuth (Recommended)
Use the
authenticate_plextool to get a login URLSign in through your browser
Option 2: Static Token
Add
"PLEX_TOKEN": "your_token"to the env sectionGet your token from Plex Support
Note: Replace your-plex-server:32400 with your actual Plex server address and port.
HTTP Debug Logging
For troubleshooting connection issues, you can enable comprehensive HTTP request/response logging:
{
"mcpServers": {
"plex": {
"command": "npx",
"args": ["plex-mcp"],
"env": {
"PLEX_URL": "http://your-plex-server:32400",
"MCP_HTTP_DEBUG": "true"
}
}
}
}When MCP_HTTP_DEBUG=true, the server will log:
Request Details: Method, URL, headers, parameters, timing
Response Details: Status codes, headers, response size, duration
Error Diagnostics: Connection details, TLS/SSL certificate info, troubleshooting suggestions
Performance Metrics: DNS lookup, TCP connection, TLS handshake timing
Security: All sensitive headers (tokens, auth) are automatically redacted
All logs are structured JSON with correlation IDs for request/response tracking.
What You Can Do
Search & Browse
Search movies, TV shows, music, and other content
Browse libraries and collections
View recently added content and watch history
Music Discovery
Natural language music discovery ("songs from the 90s", "rock bands I haven't heard")
Smart recommendations based on listening patterns
Intelligent randomization for variety and surprise
Similar artist discovery and genre exploration
Playlists
Create and manage playlists
Add items to existing playlists
Browse playlist contents
Media Info
Get detailed media information (codecs, bitrates, file sizes)
Check watch status and progress
View library statistics and listening stats
Resources (Data Access)
Access structured data via URI:
plex://libraries,plex://recent,plex://playlistsLibrary-specific data:
plex://library/{id},plex://library/{id}/recentServer statistics and connection status
JSON-formatted data for analysis and automation
Prompts (AI Assistance)
playlist_description: Generate creative playlist descriptions
content_recommendation: Get personalized content recommendations
smart_playlist_rules: Create smart playlist criteria and rules
media_analysis: Analyze library content and patterns
server_troubleshooting: Diagnose server connection issues
Status
✅ Working: Search, browse, playlists, media info, library stats, watch history, collections, music discovery, resources, prompts
❌ Disabled: Smart playlists (filter logic broken)
🚧 Planned: Remote server browsing
Development
Want to contribute? Point Claude at your local version:
{
"mcpServers": {
"plex-dev": {
"command": "node",
"args": ["/path/to/plex-mcp/index.js"],
"env": {
"PLEX_URL": "http://your-plex-server:32400"
}
}
}
}It works for us. If it doesn't work for you, well we tried. Hit us up, we don't bite. Much.
Available Tools
22 toolsadd_to_playlistB
Add items to an existing playlist
Inputs: playlist_id (required), item_keys (required).
authenticate_plexA
Initiate Plex OAuth authentication flow to get user login URL
Inputs: no named parameters.
browse_collectionC
Browse content within a specific collection
Inputs: collection_id (required), sort, limit, offset.
browse_librariesA
List all available Plex libraries (Movies, TV Shows, Music, etc.)
Inputs: no named parameters.
browse_libraryB
Browse content within a specific Plex library with filtering and sorting options
Inputs: library_id (required), sort, genre, year, +35 more.
browse_playlistB
Browse and view the contents of a specific playlist with full track metadata
Inputs: playlist_id (required), limit.
check_auth_statusB
Check if Plex authentication is complete and retrieve the auth token
Inputs: pin_id.
clear_authB
Clear stored authentication credentials
Inputs: no named parameters.
create_playlistA
Create a new regular playlist on the Plex server. Requires an initial item (item_key parameter) to be created successfully. Smart playlists are not supported due to their complex filter requirements.
Inputs: title (required), type (required), item_key (required).
delete_playlistB
Delete an existing playlist
Inputs: playlist_id (required).
discover_musicB
Natural language music discovery with smart recommendations based on your preferences and library
Inputs: query (required), context, limit.
get_collectionsB
List all collections available on the Plex server
Inputs: library_id.
get_library_statsA
Get comprehensive statistics about Plex libraries (storage usage, file counts, content breakdown, etc.)
Inputs: library_id, include_details.
get_listening_statsA
Get detailed listening statistics and music recommendations based on play history and patterns
Inputs: account_id, time_period, include_recommendations, music_library_id.
get_media_infoA
Get detailed technical information about media files (codecs, bitrates, file sizes, etc.)
Inputs: item_key (required).
get_on_deckB
Get 'On Deck' items (continue watching) for users
Inputs: limit.
get_recently_addedC
Get recently added content from Plex libraries
Inputs: library_id, limit, chunk_size, chunk_offset.
get_watched_statusC
Check watch status and progress for specific content items
Inputs: item_keys (required), account_id.
get_watch_historyC
Get playback history for the Plex server
Inputs: limit, account_id, chunk_size, chunk_offset.
list_playlistsB
List all playlists on the Plex server
Inputs: playlist_type.
search_plexC
Search for movies, TV shows, and other content in Plex libraries
Inputs: query (required), type, limit, play_count_min, +34 more.
validate_llm_responseB
Validate LLM response format and content against expected schemas for different prompt types
Inputs: response (required), prompt_type (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Most tools have clearly distinct purposes, such as playlist management vs library browsing vs authentication. However, there is minor potential overlap between browse_libraries and browse_library, and between browse_collection and get_collections, but descriptions help disambiguate.
Tool names mostly follow a verb_noun pattern, but there are inconsistencies: browse_libraries vs browse_library (plural vs singular), some use 'get' and others 'browse' for similar operations, and validate_llm_response uses a different verb.
22 tools is on the higher side but reasonable for a comprehensive Plex media server covering authentication, browsing, playlists, collections, stats, and search. Slightly over the ideal range but still well-scoped.
The tool set covers many common Plex operations but misses some expected ones like updating playlists, marking media as watched, or editing media info. The presence of validate_llm_response seems out of place.
Maintenance
Related MCP Connectors
The media memory layer for AI agents and their humans. Your AI client can search your collection, add and log what you've finished, update ratings and lists, and find patterns across everything you've read, watched, played, and listened to.
Search photos and video moments by visual meaning, people, dates, and folders across local libraries, Apple Photos, and OneDrive. Manage collections, groups, favorites, people, and duplicate review. Synced metadata remains searchable while the desktop is offline; local and Apple Photos media access needs the owning device online with remote access enabled. OneDrive media can be accessed directly from the cloud. OAuth or Bearer API keys. Paid Cloud Access required; hosted visual search uses prepaid credits. Text-in-image search is semantic matching, not guaranteed exact OCR. Setup: https://organizewith.ai/en/guides/connect-ai-assistants
Search, read and tag your brand's photo, video, audio and PDF library from any AI assistant.
Summarize and transcribe videos, audio, documents and web pages; subtitles; search your library.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to manage and control their Plex media library through natural language commands in MCP-compatible AI clients. It supports searching content, managing playlists, tracking library statistics, and monitoring live viewing sessions.MIT
- AlicenseNot gradedqualityDmaintenanceLets AI assistants browse your libraries, search media, get viewing recommendations, check what's on deck, and more — all read-only against your local Plex instance.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables full management of a Plex Media Server via Claude, including browsing libraries, fixing metadata, managing collections, and more.-
- AlicenseNot gradedqualityBmaintenanceEnables interaction with Plex Media Server via the MCP protocol, allowing AI agents to manage libraries, media, playlists, collections, users, sessions, and server administration.371 PyPI162MIT