plex-mcp-server
Provides tools to interact with a Plex Media Server, including listing and browsing libraries, searching media, inspecting item details, managing playlists, marking items played or unplayed, rating items, scanning libraries, and viewing sessions and watch history.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
plex-mcp-server
An MCP server for a Plex Media Server, built on the official
Plex Media Server OpenAPI spec (v1.2.3, 260 operations). The spec is bundled in the package, so
you install nothing and point at nothing except your own Plex server: run it with npx, giving it
your server URL and token.
Quick start
npx -y plex-mcp-server --url http://192.168.1.10:32400 --token YOUR_PLEX_TOKENClaude Code
claude mcp add plex -- npx -y plex-mcp-server --url http://192.168.1.10:32400 --token YOUR_PLEX_TOKENClaude Desktop (and other MCP clients)
{
"mcpServers": {
"plex": {
"command": "npx",
"args": ["-y", "plex-mcp-server", "--url", "http://192.168.1.10:32400", "--token", "YOUR_PLEX_TOKEN"]
}
}
}To keep the token out of the arguments, use environment variables instead:
{
"mcpServers": {
"plex": {
"command": "npx",
"args": ["-y", "plex-mcp-server"],
"env": { "PLEX_URL": "http://192.168.1.10:32400", "PLEX_TOKEN": "YOUR_PLEX_TOKEN" }
}
}
}Finding your token
See Plex's guide: Finding an authentication token / X-Plex-Token.
Related MCP server: plex-mcp
Options
Flag | Environment variable | Meaning |
|
| Server URL, e.g. |
|
| Your X-Plex-Token. |
|
| Register only tools that cannot change anything on the server. |
|
| Request timeout (default 30000). |
| Override the |
The URL and token may also be given as positional arguments: npx -y plex-mcp-server http://host:32400 TOKEN.
Tools
Everyday tools
Tool | What it does |
| Server name, version, platform and capabilities |
| Libraries with their section ids, types and item counts |
| Search across all libraries |
| Browse a library with filters (genre, year, rating, unwatched…) and sorting; genre/actor names are resolved to ids automatically |
| The filters and sorts a library supports, or the values of one field |
| Full details: cast, ratings, files, audio and subtitle tracks |
| Seasons of a show, episodes of a season, tracks of an album (or all leaves) |
| Recently added items per library |
| The On Deck / continue watching hub |
| Active playback sessions |
| Watch history, optionally since a date or for one item |
| Playlists, or the items in one |
| Mark an item played or unplayed |
| Rate an item |
| Scan one library or all libraries for new files |
| Create a playlist from items |
| Add items to a playlist |
The whole API
Tool | What it does |
| Browse the spec's operations by tag, or search them |
| Parameters, examples and response shape of one operation |
| Call any GET operation by its operationId |
| Call any operation that changes the server |
| The spec's guides, e.g. the media query filter syntax |
✎ = not registered with --read-only.
Security notes
The token is sent only to the server URL you give; redirects are followed only within that origin.
The token is redacted from all tool output and error messages.
Event-stream and websocket endpoints are not exposed; binary downloads are never fetched.
Development
npm install
npm testnpm test builds the server and runs unit tests plus end-to-end tests that launch it over stdio
against a fake Plex server answering from the spec's own examples.
To run straight from GitHub without publishing to npm: npx -y github:<owner>/<repo> --url … --token ….
License
MIT for this server's code. The bundled spec/plex-media-server.openapi.json is the Plex Media
Server OpenAPI specification, licensed under Apache-2.0; see NOTICE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query, browse, and automate OmegaAI workspaces from any MCP client. Streamable HTTP with OAuth 2.0.
Discover MCP servers and A2A agents; verify, message, post, follow, react, and receive webhooks.
The official Planning Center MCP server for interacting with your ministry's data.
An MCP server that provides access to Agility CMS. See https://mcp.agilitycms.com for more details.
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 gradedqualityBmaintenanceLets MCP clients browse and search your Plex media libraries.1MIT
- AlicenseAqualityDmaintenanceMCP server for Plex Media Server, focused on media discovery, search, library management, and playback control.2512 PyPIMIT
- 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