Plex
Lets MCP clients browse and search your Plex media libraries.
What is Plex?
Plex is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to lets mcp clients browse and search your plex media libraries.
Lets MCP clients browse and search your Plex media libraries.
This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Lets MCP clients browse and search your Plex media libraries
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx plexConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Plex
plex-mcp is an MCP server that gives AI assistants direct access to your Plex media server, exposing over 40 tools for browsing libraries, searching content, managing playlists, inspecting playback sessions, and editing metadata. It lets you interact with your entire movie, TV show, and music collection through natural language without opening the Plex app, and supports both stdio (for Claude Desktop) and HTTP modes for flexible deployment.
Prerequisites
- A running Plex Media Server accessible on your network
- A Plex authentication token (retrieved from your Plex account settings or Plex Web app network requests)
- Node.js 18 or later, OR Docker for containerized deployment
- An MCP-compatible client such as Claude Desktop
Find your Plex token
Your Plex token authenticates requests to your media server. Find it in Plex Web: play any item, open developer tools, look at the network requests for an X-Plex-Token query parameter. Alternatively find it in your Plex account settings under 'Authorized Devices'.
Run with Docker in stdio mode
The recommended deployment for Claude Desktop uses Docker in stdio mode. Pass your Plex server URL and token as environment variables.
docker run -i --rm \
-e PLEX_URL=http://192.168.1.50:32400 \
-e PLEX_TOKEN=your-plex-token \
carldog/plex-mcpConfigure Claude Desktop
Add plex-mcp to your Claude Desktop configuration using the Docker stdio command. Replace the PLEX_URL with your actual server address.
{
"mcpServers": {
"plex": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "PLEX_URL=http://192.168.1.50:32400",
"-e", "PLEX_TOKEN=your-plex-token",
"carldog/plex-mcp"
]
}
}
}Or run locally with Node.js
Clone the repository and run directly with Node.js if you prefer not to use Docker.
git clone https://github.com/CarlDog/plex-mcp.git
cd plex-mcp
npm install
PLEX_URL=http://192.168.1.50:32400 PLEX_TOKEN=your-plex-token npm run devRestart Claude Desktop
Restart Claude Desktop to load the new MCP server. You should now be able to query your Plex library directly from Claude.
Plex Examples
Client configuration
Claude Desktop config using Docker stdio mode to connect to a local Plex server.
{
"mcpServers": {
"plex": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "PLEX_URL=http://192.168.1.50:32400",
"-e", "PLEX_TOKEN=your-plex-token",
"carldog/plex-mcp"
]
}
}
}Prompts to try
Example natural-language prompts to interact with your Plex media library.
- "What movies were recently added to my Plex library?"
- "Search for all episodes of The Wire in my TV library"
- "What is currently playing on Plex and who is watching it?"
- "Create a playlist of all my unwatched sci-fi movies"
- "Mark all episodes of Season 1 of Breaking Bad as watched"
- "Show me my On Deck items — what should I watch next?"Troubleshooting Plex
Connection refused or timeout when connecting to Plex
Verify PLEX_URL is the correct local network address and port (default 32400). If running Docker, the container's network may not reach your host's local IP — try using host networking: add --network host to the docker run command.
401 Unauthorized errors from the Plex API
Your PLEX_TOKEN is invalid or expired. Retrieve a fresh token from Plex Web by inspecting network requests while the app is open. The token appears as X-Plex-Token in API request URLs.
Docker image not found (carldog/plex-mcp)
If the pre-built image is not available, build it locally: git clone https://github.com/CarlDog/plex-mcp.git && cd plex-mcp && docker build -t plex-mcp . and then use plex-mcp as the image name in your config.
Frequently Asked Questions about Plex
What is Plex?
Plex is a Model Context Protocol (MCP) server that lets mcp clients browse and search your plex media libraries. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Plex?
Follow the installation instructions on the Plex GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Plex?
Plex works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Plex free to use?
Yes, Plex is open source and available under the ISC License license. You can use it freely in both personal and commercial projects.
Plex Alternatives — Similar Business Applications Servers
Looking for alternatives to Plex? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.
n8n
★ 189.1kA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou
LobeHub
★ 77.5k🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.
Jeecgboot
★ 46.4kAI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。
CowAgent
★ 44.7kCowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。
Minds Platform
★ 39.2kPlatform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.
Astrbot
★ 32.8kAI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
Browse More Business Applications MCP Servers
Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Plex in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Plex?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.