
vladimir-tutin/plex-mcp-server 是从 https://github.com/vladimir-tutin/plex-mcp-server. 导入的 MCP 服务器候选
概览
vladimir-tutin/plex-mcp-server 是从 https://github.com/vladimir-tutin/plex-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个MCP服务器,用于管理Plex库、媒体以及来自Claude、ChatGPT及其他MCP客户端的播放。
特色
- JSON 响应:Plex 操作的结构化结果。
- 多传输:支持
stdio、SSE(服务器发送事件)和可流式HTTP。 - 全面控制:管理图书馆、媒体、收藏、播放列表、客户端和用户。
- 远程准备:内置OAuth 2.1支持,支持与 Claude.ai 等远程AI平台集成。
- 管理工具:访问日志、监控带宽并运行管家任务。
安装
选项1:使用紫外线(推荐)
无需安装即可直接运行:
选项2:通过pip安装
选项3:开发 / 来源
选项4:Docker
发布的镜像是 Linux 版的 ghcr.io/vladimir-tutin/plex-mcp-server:latest
amd64 和 arm64。它作为非根用户运行,并在 /mcp 提供可流式 HTTP 服务。
遗留SSE位于/sse。无需挂载媒体文件夹:它使用Plex的API。
按照下面的 Docker 设置操作,然后看看 托管客户端如 Claude.ai 或ChatGPT的公开HTTPS访问。
Docker Compose
开始前编辑 .env。例如,对于可信的局域网部署:
替换’192.168。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Plex MCP Server
An MCP server for managing Plex libraries, media, and playback from Claude, ChatGPT, and other MCP clients.
Features
- JSON responses: Structured results for Plex operations.
- Multiple Transports: Supports
stdio, SSE (Server-Sent Events), and Streamable HTTP. - Comprehensive Control: Manage libraries, media, collections, playlists, clients, and users.
- Remote Ready: Built-in OAuth 2.1 support for integration with remote AI platforms like Claude.ai.
- Admin Tools: Access logs, monitor bandwidth, and run Butler tasks.
Installation
Option 1: Using uv (Recommended)
Run directly without installation:
uvx plex-mcp-server --transport stdio --plex-url http://your-server:32400 --plex-token your-token
Option 2: Install via pip
pip install plex-mcp-server
Option 3: Development / Source
git clone https://github.com/vladimir-tutin/plex-mcp-server.git
cd plex-mcp-server
pip install -e .
Option 4: Docker
The published image is ghcr.io/vladimir-tutin/plex-mcp-server:latest for Linux
amd64 and arm64. It runs as a non-root user and serves Streamable HTTP at /mcp
and legacy SSE at /sse. No media folders need to be mounted: it uses Plex’s API.
Follow the Docker setup below, then see Public HTTPS access for hosted clients such as Claude.ai or ChatGPT.
Docker Compose
git clone https://github.com/vladimir-tutin/plex-mcp-server.git
cd plex-mcp-server
cp .env.docker.example .env
Edit .env before starting. For a trusted LAN deployment, for example:
PLEX_URL=http://192.168.1.10:32400
PLEX_TOKEN=your-plex-token
MCP_BIND_ADDRESS=192.168.1.20
MCP_PUBLISHED_PORT=3001
MCP_SERVER_URL=http://192.168.1.20:3001
MCP_OAUTH_ENABLED=false
Replace 192.168.1.10 with the Plex address and 192.168.1.20 with the Docker
host’s address. Without OAuth, anyone who can reach this port can use the tools.
The supplied example file defaults to loopback (127.0.0.1) instead, for access
from the Docker host only. Keep .env private.
docker compose pull
docker compose up -d --no-build
docker compose logs -f
The LAN example’s client URL is http://192.168.1.20:3001/mcp. Hosted clients
need a reachable HTTPS endpoint; follow Public HTTPS access.
Other Docker deployments
Use ghcr.io/vladimir-tutin/plex-mcp-server:latest, publish container port
3001 (TCP), and set these environment variables:
| Key | Example value |
|---|---|
PLEX_URL |
http://192.168.1.10:32400 |
PLEX_TOKEN |
your-plex-token |
MCP_SERVER_URL |
http://192.168.1.20:3001 |
MCP_TRANSPORT |
streamable-http (default; serves both /mcp and /sse) |
Use your Docker host’s address and published port in MCP_SERVER_URL.
MCP_BIND_ADDRESS and MCP_PUBLISHED_PORT only configure this repository’s
Compose file; for other deployments, set the port mapping directly.
Public HTTPS access
安装
uvx plex-mcp-server --transport stdio --plex-url http://your-server:32400 --plex-token your-token配置
{
"mcpServers": {
"plex": {
"command": "uvx",
"args": [
"plex-mcp-server",
"--transport",
"stdio",
"--plex-url",
"http://your-server:32400",
"--plex-token",
"your-token"
]
}
}
}