plex-claude-plugin
Enables Plex Media Server administration including library management, media file identification and renaming, batch processing, and automatic ingestion with folder watching.
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
.envfile
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 sectionslist_recent- Recently added itemssearch_library- Search by titleget_server_info- Server statuslist_directory- List local filesparse_filename- Parse with guessitsearch_tmdb- Search TMDbget_tmdb_details/get_tmdb_episode- TMDb metadatapreview_rename- Preview Plex-compliant namebatch_identify- Identify all files in a directoryget_watcher_status- Watcher stateget_ingest_queue- Pending review itemsget_ingest_history- Past operations
Write (require confirmation)
scan_library- Trigger library scanrename_file/copy_file/move_file- File operationscreate_directory- Create folder structureexecute_naming_plan- Batch rename/copyexecute_ingest- Full ingest pipelinestart_watcher/stop_watcher- Control watcherapprove_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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.