Plex MCP Server 是 AI Skill Hub 本期精选MCP工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
Plex MCP Server 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
Plex MCP Server 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/niavasha/plex-mcp-server
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"plex-mcp-server": {
"command": "npx",
"args": ["-y", "plex-mcp-server"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Plex MCP Server 执行以下任务... Claude: [自动调用 Plex MCP Server MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"plex_mcp_server": {
"command": "npx",
"args": ["-y", "plex-mcp-server"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to your Plex Media Server, Sonarr, Radarr, and Trakt.tv — all from a single unified server.
<a href="https://glama.ai/mcp/servers/@niavasha/plex-mcp-server"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@niavasha/plex-mcp-server/badge" alt="Plex Server MCP server" /> </a>
45 tools out of the box (54 with write operations enabled):
One server, all tools. Trakt and Sonarr/Radarr credentials are optional — tools that need them return a helpful setup message if the key is missing. You don't need to configure everything upfront.
npm install
```bash
npm run build
Or install directly from npm:bash npx plex-mcp-server ```
npm run build
git clone https://github.com/niavasha/plex-mcp-server.git
cd plex-mcp-server
npm install
npm run dev
Once configured, you can ask your AI assistant:
"What movies did I watch last week?"
"Show me my most popular TV shows this month"
"Give me viewing statistics for the past 30 days"
"Search for Night of the Living Dead in my library"
"What's on my continue watching list?"
"List all my Plex libraries"
"Add that new show to Sonarr"
"What's in my Radarr download queue?"
"Sync my Plex history to Trakt"
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature){
"mcpServers": {
"plex": {
"command": "node",
"args": ["/path/to/plex-mcp-server/build/plex-mcp-server.js"],
"env": {
"PLEX_URL": "http://localhost:32400",
"PLEX_TOKEN": "your_plex_token_here",
"SONARR_URL": "http://localhost:8989",
"SONARR_API_KEY": "optional_sonarr_api_key",
"RADARR_URL": "http://localhost:7878",
"RADARR_API_KEY": "optional_radarr_api_key",
"TRAKT_CLIENT_ID": "optional_trakt_client_id",
"TRAKT_CLIENT_SECRET": "optional_trakt_client_secret"
}
}
}
}
Only PLEX_TOKEN is required. All other credentials are optional — tools for unconfigured services return a clear error message explaining how to set them up, rather than crashing the server.
Sonarr/Radarr API keys can be found at Settings > General > API Key in each app's web UI.
Trakt.tv setup requires a Trakt OAuth application. Create one with redirect URI urn:ietf:wg:oauth:2.0:oob, then add the Client ID and Secret to your config. Once the server is running, ask your AI assistant to "authenticate with Trakt" — it will guide you through the OAuth flow. See the Trakt setup guide for detailed instructions.
<details> <summary><strong>Migrating from v1.0.x?</strong></summary>
In v1.0.x there were three separate server binaries (build/index.js, build/plex-trakt-server.js, build/plex-arr-server.js). In v1.1.0+ these are replaced by a single unified binary: build/plex-mcp-server.js.
The old binaries still work but emit a deprecation warning. Update your MCP config to point to build/plex-mcp-server.js and remove any duplicate server entries.
See the migration guide for full details. </details>
Sync Plex watch history to Trakt: 1. Set up Trakt credentials (see above) 2. Ask: "Authenticate with Trakt" — follow the OAuth flow 3. Ask: "Do a dry run sync of my Plex history to Trakt" — preview what would sync 4. Ask: "Sync my Plex watch history to Trakt" — run the actual sync
Find and add new content: 1. Ask: "Search Sonarr for The Beverly Hillbillies" — find the TVDB ID 2. Ask: "Add The Beverly Hillbillies to Sonarr" — it auto-detects quality profiles and root folders 3. Ask: "What's in my Sonarr download queue?" — monitor progress
Get personalized recommendations: 1. Ask: "Recommend me some movies from my library" 2. The engine analyzes your watch history — genres, directors, actors, ratings 3. Scores every unwatched movie and returns the top matches with reasons 4. For multi-user servers, specify the user: "Recommend movies for Titus" 5. If Trakt is configured, it automatically uses your Trakt history too — catching movies you watched outside Plex (other platforms, before tracking was set up)
Cross-platform viewing analytics: 1. Ask: "Show me my Plex viewing stats for the last 30 days" 2. Ask: "What are my Trakt stats?" — see lifetime stats (movies watched, hours, milestones) 3. Ask: "What are my most popular movies this month?"
Plex MCP 服务器是一个 Model Context Protocol (MCP) 服务器,提供 AI 助手全面访问您的 Plex 媒体服务器、Sonarr、Radarr 和 Trakt.tv —— 从单个统一服务器中获取所有内容。
Plex MCP 服务器提供 45 个工具(54 个工具支持写入操作): Plex 库管理、Tautulli 风格分析、个人化推荐等。
环境依赖与系统要求: Node.js 20+、Plex Media Server(任何最近版本)、Plex Token(获取 Plex Token 的说明)和 MCP 兼容的客户端(Claude Desktop 等)。
安装步骤:安装依赖项 npm install、安装 Node.js 20.0.0 或更高版本、Plex Media Server(任何最近版本)和有效的 Plex token。
使用教程:配置后,您可以向 AI 助手询问问题,如“上周我看过哪些电影?”“显示本月最受欢迎的电视节目”等。
配置说明:获取 Plex Token(获取 Plex Token 的说明)、配置 MCP 客户端(例如 Claude Desktop):配置 MCP 服务器、环境变量和关键参数。
工作流 / 模块说明:推荐工作流程,如同步 Plex 观看历史到 Trakt、找到新剧集等。
常见问题:环境依赖、配置、安装、使用教程等问题的解决方案。
该项目提供了开源MCP工具,提高了开发效率和自动化能力,但缺乏更多的使用场景和文档支持。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,Plex MCP Server 在MCP工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | plex-mcp-server |
| 原始描述 | 开源MCP工具:Plex MCP Server。⭐13 · TypeScript |
| Topics | mcpserverplex |
| GitHub | https://github.com/niavasha/plex-mcp-server |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-23 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端