plex-claude-plugin

plex-claude-plugin

Enables Plex Media Server administration including library management, media file identification and renaming, batch processing, and automatic ingestion with folder watching.

Category
访问服务器

README

Plex Claude Plugin

A Claude MCP plugin for Plex Media Server administration. Provides automated library updates, intelligent media file naming, and automatic ingestion with folder watching.

Features

  • Library Management: List, search, and trigger scans on Plex libraries
  • Media Identification: Parse filenames with guessit, verify against TMDb, construct Plex-compliant names
  • Batch Processing: Identify and rename entire directories of media files in one operation
  • Auto-Ingestion: Watch a folder for new media files, automatically identify, rename, copy to libraries, and trigger scans
  • Safety Model: Three-tier tool classification (read/write/blocked) prevents accidental damage

Architecture

Built as a Python MCP server using FastMCP, following the same patterns as the TrueNAS Claude Plugin.

Claude Desktop / Claude Code
  |  stdio (MCP)
  v
MCP Server (FastMCP)
  +-- PlexClient (python-plexapi)
  +-- MediaMatcher (guessit + TMDb)
  +-- FileManager (copy/rename/move)
  +-- IngestWatcher (watchdog)
  +-- IngestHistory (SQLite audit log)

Requirements

  • Python 3.11+
  • Plex Media Server with API access
  • TMDb API key (free at https://www.themoviedb.org/settings/api)
  • uv package manager

Quick Start

📖 See QUICKSTART.md for detailed setup instructions!

1. Interactive Configuration (Recommended)

cd videodrome-plugin/montreal-v1
./setup-config.sh

This wizard will:

  • ✓ Guide you through all settings
  • ✓ Test Plex and TMDb connections
  • ✓ Save configuration to .env file

2. Test the Server

uv run --env-file .env videodrome

You should see: Plex MCP Server started successfully!

3. Connect to Claude

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "plex": {
      "command": "uv",
      "args": [
        "--directory", "/FULL/PATH/TO/videodrome-plugin/montreal-v1",
        "run", "--env-file", ".env", "videodrome"
      ]
    }
  }
}

Important: Use absolute path and restart Claude Desktop!

Installation

Claude Desktop (.mcpb)

Download the latest .mcpb file from Releases and open it with Claude Desktop.

Claude Code (Plugin)

claude plugin install /path/to/videodrome-plugin

Manual Configuration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "plex": {
      "command": "uv",
      "args": ["--directory", "/path/to/videodrome-plugin", "run", "videodrome"],
      "env": {
        "PLEX_URL": "http://192.168.1.100:32400",
        "PLEX_TOKEN": "your-plex-token",
        "TMDB_API_KEY": "your-tmdb-api-key",
        "PLEX_MEDIA_ROOT": "/data/media",
        "PLEX_INGEST_DIR": "/data/ingest"
      }
    }
  }
}

Configuration

Variable Required Default Description
PLEX_URL Yes - Plex server URL
PLEX_TOKEN Yes - X-Plex-Token
TMDB_API_KEY Yes - TMDb API key
PLEX_MEDIA_ROOT Yes - Root path for media libraries
PLEX_INGEST_DIR No - Folder to watch for new files
PLEX_AUTO_INGEST No false Auto-process high-confidence matches
PLEX_CONFIDENCE_THRESHOLD No 0.85 Minimum confidence for auto-processing
PLEX_WATCHER_AUTO_START No false Start watcher on server launch

MCP Tools

Read-only (auto-approved)

  • list_libraries - List Plex library sections
  • list_recent - Recently added items
  • search_library - Search by title
  • get_server_info - Server status
  • list_directory - List local files
  • parse_filename - Parse with guessit
  • search_tmdb - Search TMDb
  • get_tmdb_details / get_tmdb_episode - TMDb metadata
  • preview_rename - Preview Plex-compliant name
  • batch_identify - Identify all files in a directory
  • get_watcher_status - Watcher state
  • get_ingest_queue - Pending review items
  • get_ingest_history - Past operations

Write (require confirmation)

  • scan_library - Trigger library scan
  • rename_file / copy_file / move_file - File operations
  • create_directory - Create folder structure
  • execute_naming_plan - Batch rename/copy
  • execute_ingest - Full ingest pipeline
  • start_watcher / stop_watcher - Control watcher
  • approve_ingest / reject_ingest - Handle queued items

Claude Code Commands

Command Description
/videodrome:scan Trigger a library scan
/videodrome:identify Identify a media file
/videodrome:rename Rename files to Plex format
/videodrome:ingest Process a folder of media
/videodrome:status Show server status
/videodrome:plan Preview a naming plan
/videodrome:watch Control the file watcher
/videodrome:review Review pending ingest items

Development

# Clone and setup
git clone https://github.com/nickperrott/videodrome-plugin.git
cd videodrome-plugin
uv sync --extra dev

# Run tests
pytest tests/ -v

# Run server locally
uv run videodrome

Plex Naming Conventions

Movies

/Movies/Movie Name (Year) {tmdb-ID}/Movie Name (Year) {tmdb-ID}.mkv

TV Shows

/TV Shows/Show Name (Year)/Season 01/Show Name (Year) - s01e01 - Episode Title.mkv

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选