Plex MCP Server for Claude Code 15 tools — connect in under 2 minutes
Claude Code is Anthropic's agentic CLI for terminal-first development. Add Plex as an MCP server in one command and Claude Code will discover every tool at runtime. ideal for automation pipelines, CI/CD integration, and headless workflows via Vinkius.
ASK AI ABOUT THIS MCP SERVER
Vinkius supports streamable HTTP and SSE.
Vinkius Desktop App
The modern way to manage MCP Servers — no config files, no terminal commands. Install Plex and 2,500+ MCP Servers from a single visual interface.




# Your Vinkius token. get it at cloud.vinkius.com
claude mcp add plex --transport http "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Plex MCP Server
Connect to your Plex Media Server and manage your entire media library through natural conversation.
Claude Code registers Plex as an MCP server in a single terminal command. Once connected, Claude Code discovers all 15 tools at runtime and can call them headlessly. ideal for CI/CD pipelines, cron jobs, and automated workflows where Plex data drives decisions without human intervention.
What you can do
- Server Info — Check server status, version and connected clients
- Active Sessions — See who's watching what right now with playback progress
- Libraries — Browse all your media libraries (movies, shows, music, photos)
- Search — Find any movie, episode, artist or album by name
- Recently Added — Discover the newest additions to your library
- On Deck — See what's next to continue watching
- Metadata — Get full details on any media item including cast, file info and streams
- Playlists — Browse and manage your playlists
- Watch Status — Mark items as watched or unwatched
The Plex MCP Server exposes 15 tools through the Vinkius. Connect it to Claude Code in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
How to Connect Plex to Claude Code via MCP
Follow these steps to integrate the Plex MCP Server with Claude Code.
Install Claude Code
Run npm install -g @anthropic-ai/claude-code if not already installed
Add the MCP Server
Run the command above in your terminal
Verify the connection
Run claude mcp to list connected servers, or type /mcp inside a session
Start using Plex
Ask Claude: "Using Plex, show me...". 15 tools are ready
Why Use Claude Code with the Plex MCP Server
Claude Code provides unique advantages when paired with Plex through the Model Context Protocol.
Single-command setup: `claude mcp add` registers the server instantly. no config files to edit or applications to restart
Terminal-native workflow means MCP tools integrate seamlessly into shell scripts, CI/CD pipelines, and automated DevOps tasks
Claude Code runs headlessly, enabling unattended batch processing using Plex tools in cron jobs or deployment scripts
Built by the same team that created the MCP protocol, ensuring first-class compatibility and the fastest adoption of new protocol features
Plex + Claude Code Use Cases
Practical scenarios where Claude Code combined with the Plex MCP Server delivers measurable value.
CI/CD integration: embed Plex tool calls in your deployment pipeline to validate configurations or fetch secrets before shipping
Headless batch processing: schedule Claude Code to query Plex nightly and generate reports without human intervention
Shell scripting: pipe Plex outputs into other CLI tools for data transformation, filtering, and aggregation
Infrastructure monitoring: run Claude Code in a cron job to query Plex status endpoints and alert on anomalies
Plex MCP Tools for Claude Code (15)
These 15 tools become available when you connect Plex to Claude Code via MCP:
get_all_episodes
Useful for getting the complete episode list for a series. Get all episodes of a TV show
get_children
For TV shows this returns seasons. For artists this returns albums. Requires the parent item's rating key. Get children of a media item (seasons or albums)
get_libraries
Each library includes its key (ID), type (movie, show, music, photo), title, agent, scanner and updated/created timestamps. Use the library key with other library tools. Get all libraries (sections) on the Plex server
get_library_content
Filter by type: type=1 for movies, type=2 for TV shows, type=8 for artists, type=13 for photos. Requires the library key from get_libraries. Get all content from a specific library
get_metadata
Returns title, summary, year, runtime, rating, genres, director, cast, media streams, file path and more. Get detailed metadata for a specific item
get_on_deck
Returns the next unwatched episode for each in-progress show. Get "On Deck" items (continue watching)
get_playlist_items
Returns the items with their titles, types, durations and metadata. Requires the playlist ID. Get items in a specific playlist
get_playlists
Each playlist includes its ID, title, type (video, audio, photo), item count and duration. Get all playlists on the Plex server
get_recently_added
Returns movies, episodes and albums with their titles, addition dates and metadata. Get recently added media to the library
get_server_info
Useful for verifying server connectivity and checking server health. Get Plex Media Server information
get_sessions
Each session includes the user, the media being watched (movie/episode), playback progress, player device, bandwidth and transcoding info. Get currently active streaming sessions
mark_unwatched
This resets the item's watch status. Requires the item's rating key. Mark a media item as unwatched
mark_watched
This affects the item's watch status and removes it from "On Deck". Requires the item's rating key. Mark a media item as watched
refresh_library
Useful after adding or removing files from your media folders. Requires the library key. Trigger a library scan/refresh
search_library
Returns matching movies, shows, episodes, artists and albums with their titles, types and metadata. Search the Plex media library
Example Prompts for Plex in Claude Code
Ready-to-use prompts you can give your Claude Code agent to start working with Plex immediately.
"Show me what's currently playing on my Plex server."
"Show me my movie libraries."
"What's on deck for me to watch?"
Troubleshooting Plex MCP Server with Claude Code
Common issues when connecting Plex to Claude Code through the Vinkius, and how to resolve them.
Command not found: claude
npm install -g @anthropic-ai/claude-codeConnection timeout
Plex + Claude Code FAQ
Common questions about integrating Plex MCP Server with Claude Code.
How do I add an MCP server to Claude Code?
claude mcp add --transport http "" in your terminal. Claude Code registers the server and discovers all tools immediately.Can Claude Code run MCP tools in headless mode?
How do I list all connected MCP servers?
claude mcp in your terminal to see all registered servers and their status, or type /mcp inside an active Claude Code session.Connect Plex with your favorite client
Step-by-step setup guides for every MCP-compatible client and framework:
Anthropic's native desktop app for Claude with built-in MCP support.
AI-first code editor with integrated LLM-powered coding assistance.
GitHub Copilot in VS Code with Agent mode and MCP support.
Purpose-built IDE for agentic AI coding workflows.
Autonomous AI coding agent that runs inside VS Code.
Anthropic's agentic CLI for terminal-first development.
Python SDK for building production-grade OpenAI agent workflows.
Google's framework for building production AI agents.
Type-safe agent development for Python with first-class MCP support.
TypeScript toolkit for building AI-powered web applications.
TypeScript-native agent framework for modern web stacks.
Python framework for orchestrating collaborative AI agent crews.
Leading Python framework for composable LLM applications.
Data-aware AI agent framework for structured and unstructured sources.
Microsoft's framework for multi-agent collaborative conversations.
Connect Plex to Claude Code
Get your token, paste the configuration, and start using 15 tools in under 2 minutes. No API key management needed.
