plex-mcp
Enables browsing and searching your Plex Media Server libraries, including recently added items, on-deck content, and detailed item metadata.
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., "@plex-mcpsearch for 'Star Wars'"
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
An MCP server for Plex Media Server, packaged as a Docker container. Lets an MCP client (Claude Desktop, etc.) browse and search your Plex libraries.
Tools
Tool | Description |
| List all libraries (sections) on the server |
| Search across all libraries |
| Recently added items, optionally per-section |
| Items "on deck" (partially watched / next up) |
| Full metadata for one item by rating key |
Configuration
Two environment variables, both required:
Var | Example | Notes |
|
| Base URL of your Plex server |
| (see below) | Plex auth token |
To find your Plex token, see Plex's Finding an authentication token guide.
Run with Docker
docker build -t plex-mcp .
docker run -i --rm \
-e PLEX_URL=http://192.168.1.50:32400 \
-e PLEX_TOKEN=your-token \
plex-mcpUse with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"plex": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "PLEX_URL",
"-e", "PLEX_TOKEN",
"plex-mcp"
],
"env": {
"PLEX_URL": "http://192.168.1.50:32400",
"PLEX_TOKEN": "your-token"
}
}
}
}Local development
npm install
cp .env.example .env # then edit
PLEX_URL=... PLEX_TOKEN=... npm run devSecurity
The container runs as a non-root user (
plexmcp).The Plex token is passed via env var — never bake it into the image.
A
.githooks/pre-commitruns gitleaks on every commit. Activate it once per clone:git config core.hooksPath .githooks
This server cannot be installed
Resources
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/CarlDog/plex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server