mcp-plex
Provides tools for interacting with a Plex Media Server, enabling media discovery, search, library browsing, collection and playlist management, watch state control, and library scanning.
Click on "Install 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., "@mcp-plexsearch for interstellar"
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.
mcp-plex
MCP server for Plex Media Server, focused on media discovery, search, library management, and playback control. 24 granular tools designed for use with Claude and other LLM agents.
Prerequisites
Python 3.14+
A running Plex Media Server
A Plex authentication token
Setup
1. Get Your Plex Token
The easiest way to find your Plex token:
Sign in to Plex Web App
Browse to any media item and click Get Info (or ... > Get Info)
Click View XML in the bottom-left
In the URL bar, find the
X-Plex-Token=parameter -- that's your token
Alternatively, check the Plex support article for other methods.
2. Install
cd mcp-plex
uv sync3. Configure Environment Variables
Set these before running the server:
export PLEX_SERVER_URL="http://your-plex-server:32400"
export PLEX_TOKEN="your_plex_token"4. Test the Connection
uv run mcp-plex-serverThe server connects to your Plex server on startup and verifies the token. If the connection fails, check that your server URL and token are correct.
Claude Desktop / Claude Code Configuration
Add to your MCP server config. If installed from PyPI:
{
"mcpServers": {
"plex": {
"command": "uvx",
"args": ["mcp-plex-server"],
"env": {
"PLEX_SERVER_URL": "http://your-plex-server:32400",
"PLEX_TOKEN": "your_plex_token"
}
}
}
}Or if running from a local clone:
{
"mcpServers": {
"plex": {
"command": "uv",
"args": ["--directory", "/path/to/mcp-plex", "run", "mcp-plex-server"],
"env": {
"PLEX_SERVER_URL": "http://your-plex-server:32400",
"PLEX_TOKEN": "your_plex_token"
}
}
}
}Tools
Discovery
Tool | Parameters | Description |
|
| Search across all libraries. Optional type filter: "movie", "show", "episode", "artist", "album", "track". |
|
| Recently added media, optionally filtered to a library. |
|
| Continue watching / next episode list. |
Library Browsing
Tool | Parameters | Description |
| (none) | List all library sections with types and item counts. |
|
| Browse a library. Sort by title, date added, year, or rating. |
|
| Full details for one item: summary, genres, cast, directors, ratings. |
|
| Item counts and stats for one or all libraries. |
Shows
Tool | Parameters | Description |
|
| List seasons for a TV show. |
|
| List episodes (all or by season). |
Collections
Tool | Parameters | Description |
|
| List collections in a library (includes smart/regular type). |
|
| Get collection details and all items it contains. |
|
| Create a regular collection from specific items. |
|
| Create a smart (filter-based) auto-updating collection. |
|
| Edit collection metadata (title, summary, sort, display mode). |
|
| Add items to a regular collection. |
|
| Remove items from a regular collection. |
|
| Delete a collection (does not affect the media items). |
Playlists
Tool | Parameters | Description |
| (none) | List all playlists on the server. |
|
| Get items in a playlist. |
Watch State
Tool | Parameters | Description |
|
| Mark a movie, episode, or track as fully watched. |
|
| Mark an item as unwatched, resetting progress. |
|
| Remove a movie or episode from Continue Watching / On Deck. |
|
| Set playback position in milliseconds (must be > 0). |
Management
Tool | Parameters | Description |
|
| Trigger a background library scan. |
Development
uv run mcp-plex-server # Run the server
uv run ruff check src/ # Lint
uv run ruff format src/ # Format
uv run pyright src/ # Type checkPre-commit Hooks
This project uses lefthook for pre-commit checks. Install with brew install lefthook (or see other install methods), then:
lefthook installResources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/obrien-matthew/mcp-plex'
If you have feedback or need assistance with the MCP directory API, please join our Discord server