4,000+ servers built on MCP Fusion
Vinkius
Pydantic AISDK
Pydantic AI
Why use Plex MCP Server with Pydantic AI?

Bring Media Server
to Pydantic AI

Create your Vinkius account to connect Plex to Pydantic AI and start using all 15 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.

MCP Inspector GDPR Free for Subscribers
Get All EpisodesGet ChildrenGet LibrariesGet Library ContentGet MetadataGet On DeckGet Playlist ItemsGet PlaylistsGet Recently AddedGet Server InfoGet SessionsMark UnwatchedMark WatchedRefresh LibrarySearch Library
ChatGPT Claude Perplexity

Compatible with every major AI agent and IDE

ClaudeClaude
ChatGPTChatGPT
CursorCursor
GeminiGemini
WindsurfWindsurf
VS CodeVS Code
JetBrainsJetBrains
VercelVercel
+ other MCP clients
Plex

What is the Plex MCP Server?

Connect to your Plex Media Server and manage your entire media library through natural conversation.

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

How it works

  1. Subscribe to this server
  2. Enter your Plex Token and Server URL
  3. Start managing your media library from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Home Media Users — search your library, check what's playing and find new content to watch
  • Server Admins — monitor active sessions, manage libraries and check server health
  • Family Managers — see what family members are watching and manage playlists

Built-in capabilities (15)

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

Why Pydantic AI?

Pydantic AI validates every Plex tool response against typed schemas, catching data inconsistencies at build time. Connect 15 tools through Vinkius and switch between OpenAI, Anthropic, or Gemini without changing your integration code. full type safety, structured output guarantees, and dependency injection for testable agents.

  • Full type safety: every MCP tool response is validated against Pydantic models, catching data inconsistencies before they reach your application

  • Model-agnostic architecture. switch between OpenAI, Anthropic, or Gemini without changing your Plex integration code

  • Structured output guarantee: Pydantic AI ensures tool results conform to defined schemas, eliminating runtime type errors

  • Dependency injection system cleanly separates your Plex connection logic from agent behavior for testable, maintainable code

P
See it in action

Plex in Pydantic AI

AI AgentVinkius
High Security·Kill Switch·Plug and Play
Enterprise Security

Why run Plex with Vinkius?

The Plex connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 15 tools are ready to work instantly without any complex setup.

You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

View full Plex details →
Plex
Fully ManagedNo server setup
Plug & PlayNo coding needed
SecurePrivacy protected
PrivateYour data is safe
Cost ControlBudget limits
Control1-click disconnect
Auto-UpdatesMaintenance free
High SpeedOptimized for AI
Reliable99.9% uptime
Your credentials and connection tokens are fully encrypted

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure

01 / Catalog

Over 4,000 integrations ready for AI agents

Explore a vast library of pre-built integrations, optimized and ready to deploy.

02 / Credentials

Connect securely in under 30 seconds

Generate tokens to authenticate and link external services in a single step.

03 / Guardian

Complete visibility into every agent action

Audit live requests, latency, success rates, and active security compliance policies.

04 / FinOps

Optimize spending and track token ROI

Analyze real-time token consumption and cost metrics detailed by connection.

Over 4,000 integrations ready for AI agents
Connect securely in under 30 seconds
Complete visibility into every agent action
Optimize spending and track token ROI

Explore our live AI Agents Analytics dashboard to see it all working

This dashboard is included when you connect Plex using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.

Why Vinkius

Plex and 4,000+ other AI tools. No hosting, no code, ready to use.

Professionals who connect Plex to Pydantic AI through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.

4,000+MCP Integrations
<40msResponse time
100%Fully managed
Raw MCP
Vinkius
Ready-to-use MCPsFind and configure each manually4,000+ MCPs ready to use
Connection SetupManual coding & server setup1-click instant connection
Server HostingYou host it yourself (needs 24/7 uptime)100% hosted & managed by Vinkius
Security & PrivacyStored in plaintext config filesBank-grade encrypted vault
Activity VisibilityBlind execution (no logs or tracking)Live dashboard with real-time logs
Cost ControlRunaway AI token spend riskAutomatic budget limits
Revoking AccessMust delete files or code to stop1-click disconnect button
The Vinkius Advantage

How Vinkius secures Plex for Pydantic AI

Every request between Pydantic AI and Plex is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.

< 40msCold start
Ed25519Signed audit chain
60%Token savings
FAQ

Frequently asked questions

01

How do I get my Plex Token?

Log in to your Plex account at plex.tv, go to Settings > Server > General and look for 'X-Plex-Token'. Alternatively, check your browser's network tab when loading the Plex web app.

02

What is my Server URL?

For local access: http://YOUR_SERVER_IP:32400 (e.g. http://192.168.1.100:32400). For remote access: https://YOUR_PLEX_SUBDOMAIN.plex.direct:32400. The IP is your Plex server's local network address.

03

Can I see what's currently playing?

Yes! Use get_sessions to see all active playback sessions. Each session shows the user, media title, playback position, player device and whether it's direct playing or transcoding.

04

Can I search for specific media?

Yes! Use search_library with any title. Results include movies, TV shows, episodes, artists and albums matching your query. Optionally filter by library key to search in a specific library only.

05

How does Pydantic AI discover MCP tools?

Create an MCPServerHTTP instance with the server URL. Pydantic AI connects, discovers all tools, and generates typed Python interfaces automatically.

06

Does Pydantic AI validate MCP tool responses?

Yes. When you define result types as Pydantic models, every tool response is validated against the schema. Invalid data raises a clear error instead of silently corrupting your pipeline.

07

Can I switch LLM providers without changing MCP code?

Absolutely. Pydantic AI abstracts the model layer. your Plex MCP integration works identically with OpenAI, Anthropic, Google, or any supported provider.

08

MCPServerHTTP not found

Update: pip install --upgrade pydantic-ai

Explore More MCP Servers

View all →