SSyncDev

Plex MCP Server

Unified MCP server for Plex, Sonarr, Radarr, and Trakt — 45 AI tools for managing your media library with personalized recommendations (54 with write

Local serverstdioPython

What is the Plex MCP Server?

Unified MCP server for Plex, Sonarr, Radarr, and Trakt — 45 AI tools for managing your media library with personalized recommendations (54 with write operations

What you get

A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to your Plex Media Server, Sonarr, Radarr, and Trakt.tv — all from a single unified server.

This MCP server transforms your Plex Media Server into an AI-queryable database. Ask your AI assistant questions like:

  • Plex Library Management — — Browse libraries, search media, get detailed metadata, list playlists and watchlist
  • Tautulli-Style Analytics — — Viewing statistics, user activity, popular content, watch history
  • Personalized Recommendations — — AI-powered movie suggestions based on your watch history, genres, directors, and actors. Supports per-user profiles for multi-user Plex servers
  • Sonarr/Radarr Integration — — Browse, search, add series/movies, view queues, trigger downloads
  • Trakt.tv Sync — — OAuth authentication, watch history sync, enhanced statistics, scrobbling. When configured, Trakt data enriches recommendations by catching movies watched outside Plex
  • Write Operations — (opt-in) — Create/edit playlists, update metadata, manage watchlist

Configuration and credentials

  • Node.js 20+ - Plex Media Server (any recent version) - Plex Token (How to get your token) - MCP-compatible client (Claude Desktop, etc.)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_librariesList all Plex libraries
get_library_itemsList items in a library with pagination
export_libraryExport a full library to JSON (under ./exports)
search_mediaSearch media globally or within one library
get_recently_addedRecently added content
get_on_deckContinue watching list
get_media_detailsDetailed media info
get_editable_fieldsShow editable fields and available tags for an item
get_playlistsList all Plex playlists
get_playlist_itemsList items in a playlist
get_watchlistGet current Plex watchlist
get_recently_watchedRecently watched content
get_watch_historyDetailed watch sessions

How to install the Plex MCP Server

{
  "mcpServers": {
    "plex": {
      "command": "node",
      "args": [
        "/path/to/plex-mcp-server/build/plex-mcp-server.js"
      ],
      "env": {
        "PLEX_URL": "http://localhost:32400",
        "PLEX_TOKEN": "YOUR_PLEX_TOKEN",
        "SONARR_URL": "http://localhost:8989",
        "SONARR_API_KEY": "YOUR_SONARR_API_KEY",
        "RADARR_URL": "http://localhost:7878",
        "RADARR_API_KEY": "YOUR_RADARR_API_KEY",
        "TRAKT_CLIENT_ID": "optional_trakt_client_id",
        "TRAKT_CLIENT_SECRET": "YOUR_TRAKT_CLIENT_SECRET"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js 20+ - Plex Media Server (any recent version) - Plex Token (How to get your token) - MCP-compatible client (Claude Desktop, etc.)
VariableDescriptionRequired
PLEX_URLDeclared in the maintainer’s client configuration.Check documentation
PLEX_TOKENDeclared in the maintainer’s client configuration.Yes
SONARR_URLDeclared in the maintainer’s client configuration.Check documentation
SONARR_API_KEYDeclared in the maintainer’s client configuration.Optional
RADARR_URLDeclared in the maintainer’s client configuration.Check documentation
RADARR_API_KEYDeclared in the maintainer’s client configuration.Optional
TRAKT_CLIENT_IDDeclared in the maintainer’s client configuration.Optional
TRAKT_CLIENT_SECRETDeclared in the maintainer’s client configuration.Optional

Example prompts to try

  • “Use Plex to Function.”
  • “Use Plex to get libraries.”
  • “Use Plex to get library items.”

Frequently asked questions

Unified MCP server for Plex, Sonarr, Radarr, and Trakt — 45 AI tools for managing your media library with personalized recommendations (54 with write operations Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.