plex-mcp
plex-mcp
一个用于 Plex Media Server 的 MCP 服务器,打包为 Docker 容器。允许 MCP 客户端(如 Claude Desktop 等)浏览和搜索您的 Plex 媒体库。
工具
工具 | 描述 |
| 列出服务器上的所有媒体库(分区) |
| 在所有媒体库中进行搜索 |
| 最近添加的项目,可选择按分区筛选 |
| “待续”项目(部分观看/下一集) |
| 通过评分键获取单个项目的完整元数据 |
Related MCP server: Plex Assistant MCP
配置
需要两个环境变量,均为必填项:
变量 | 示例 | 说明 |
|
| Plex 服务器的基础 URL |
| (见下文) | Plex 身份验证令牌 |
要查找您的 Plex 令牌,请参阅 Plex 的 查找身份验证令牌 指南。
使用 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-mcp在 Claude Desktop 中使用
添加到您的 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"
}
}
}
}本地开发
npm install
cp .env.example .env # then edit
PLEX_URL=... PLEX_TOKEN=... npm run dev安全性
容器以非 root 用户 (
plexmcp) 身份运行。Plex 令牌通过环境变量传递 — 切勿将其硬编码到镜像中。
.githooks/pre-commit会在每次提交时运行 gitleaks。请在每次克隆后激活它:git config core.hooksPath .githooks
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceA Python-based MCP server that integrates with Plex Media Server API to search for movies and manage playlists in your Plex media library.96
- 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 gradedqualityBmaintenanceMCP server for reelgrep - browse and search your local video library from any MCP client.12MIT
- AlicenseAqualityCmaintenanceMCP server for Plex Media Server, focused on media discovery, search, library management, and playback control.25MIT
Related MCP Connectors
Search and browse every MCP server in the Model Context Protocol registry.
Remote MCP server for full read/write access to a Zotero library
OMDb MCP — IMDB-derived movie / TV / episode data (BYO key)
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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