Bring Media Server
to Mastra AI
Create your Vinkius account to connect Plex to Mastra 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.
Compatible with every major AI agent and IDE
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
- Subscribe to this server
- Enter your Plex Token and Server URL
- 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)
Useful for getting the complete episode list for a series. Get all episodes of a TV show
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)
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
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
Returns title, summary, year, runtime, rating, genres, director, cast, media streams, file path and more. Get detailed metadata for a specific item
Returns the next unwatched episode for each in-progress show. Get "On Deck" items (continue watching)
Returns the items with their titles, types, durations and metadata. Requires the playlist ID. Get items in a specific playlist
Each playlist includes its ID, title, type (video, audio, photo), item count and duration. Get all playlists on the Plex server
Returns movies, episodes and albums with their titles, addition dates and metadata. Get recently added media to the library
Useful for verifying server connectivity and checking server health. Get Plex Media Server information
Each session includes the user, the media being watched (movie/episode), playback progress, player device, bandwidth and transcoding info. Get currently active streaming sessions
This resets the item's watch status. Requires the item's rating key. Mark a media item as unwatched
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
Useful after adding or removing files from your media folders. Requires the library key. Trigger a library scan/refresh
Returns matching movies, shows, episodes, artists and albums with their titles, types and metadata. Search the Plex media library
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Plex tool infrastructure. Connect 15 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Plex without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Plex tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Plex in Mastra AI
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.

* 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
Over 4,000 integrations ready for AI agents
Explore a vast library of pre-built integrations, optimized and ready to deploy.
Connect securely in under 30 seconds
Generate tokens to authenticate and link external services in a single step.
Complete visibility into every agent action
Audit live requests, latency, success rates, and active security compliance policies.
Optimize spending and track token ROI
Analyze real-time token consumption and cost metrics detailed by connection.




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.
Plex and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect Plex to Mastra 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.
Raw MCP | Vinkius | |
|---|---|---|
| Ready-to-use MCPs | Find and configure each manually | 4,000+ MCPs ready to use |
| Connection Setup | Manual coding & server setup | 1-click instant connection |
| Server Hosting | You host it yourself (needs 24/7 uptime) | 100% hosted & managed by Vinkius |
| Security & Privacy | Stored in plaintext config files | Bank-grade encrypted vault |
| Activity Visibility | Blind execution (no logs or tracking) | Live dashboard with real-time logs |
| Cost Control | Runaway AI token spend risk | Automatic budget limits |
| Revoking Access | Must delete files or code to stop | 1-click disconnect button |
How Vinkius secures
Plex for Mastra AI
Every request between Mastra 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.
Frequently asked questions
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.
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.
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.
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.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
CrowdTangle
10 toolsEquip your AI agent to track public social media insights, viral posts, and link shares via the CrowdTangle API.

Apperio
10 toolsManage legal spend and matters with Apperio — track invoices, approve billing, and monitor matter progress via AI.

Sitecore
9 toolsManage your Sitecore CMS via AI agents — create, search, and update content items, templates, layouts, and workflows directly from your chat.

Webflow
8 toolsDesign and build professional websites visually with a no-code platform that generates clean, production-ready HTML and CSS.
