Skip to main content
Glama
CarlDog
by CarlDog

plex-mcp

一个用于 Plex Media ServerMCP 服务器,打包为 Docker 容器。允许 MCP 客户端(如 Claude Desktop 等)浏览和搜索您的 Plex 媒体库。

工具

工具

描述

plex_list_libraries

列出服务器上的所有媒体库(分区)

plex_search

在所有媒体库中进行搜索

plex_recently_added

最近添加的项目,可选择按分区筛选

plex_on_deck

“待续”项目(部分观看/下一集)

plex_get_item

通过评分键获取单个项目的完整元数据

Related MCP server: Plex Assistant MCP

配置

需要两个环境变量,均为必填项:

变量

示例

说明

PLEX_URL

http://192.168.1.50:32400

Plex 服务器的基础 URL

PLEX_TOKEN

(见下文)

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

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
3dResponse time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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
  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server for reelgrep - browse and search your local video library from any MCP client.
    12
    MIT

View all related MCP servers

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)

View all MCP Connectors

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