Skip to main content
Glama

Plex MCP Server

Search and manage your Plex media libraries with Claude. Actively developed by Claude and a nerdy human who mostly uses Plex for auditory delights and wanted to see how much could be accomplished without knowing much about what they're doing. Results may vary, but probably in a good way.

Quick Start

npx -y @smithery/cli install @vyb1ng/plex-mcp --client claude

Manual Setup for Claude Desktop

Add to your Claude Desktop MCP settings:

{
  "mcpServers": {
    "plex": {
      "command": "npx",
      "args": ["plex-mcp"],
      "env": {
        "PLEX_URL": "http://your-plex-server:32400"
      }
    }
  }
}

Related MCP server: plex-mcp-server

Authentication

Option 1: OAuth (Recommended)

  • Use the authenticate_plex tool to get a login URL

  • Sign in through your browser

Option 2: Static Token

  • Add "PLEX_TOKEN": "your_token" to the env section

  • Get your token from Plex Support

Note: Replace your-plex-server:32400 with your actual Plex server address and port.

HTTP Debug Logging

For troubleshooting connection issues, you can enable comprehensive HTTP request/response logging:

{
  "mcpServers": {
    "plex": {
      "command": "npx",
      "args": ["plex-mcp"],
      "env": {
        "PLEX_URL": "http://your-plex-server:32400",
        "MCP_HTTP_DEBUG": "true"
      }
    }
  }
}

When MCP_HTTP_DEBUG=true, the server will log:

  • Request Details: Method, URL, headers, parameters, timing

  • Response Details: Status codes, headers, response size, duration

  • Error Diagnostics: Connection details, TLS/SSL certificate info, troubleshooting suggestions

  • Performance Metrics: DNS lookup, TCP connection, TLS handshake timing

  • Security: All sensitive headers (tokens, auth) are automatically redacted

All logs are structured JSON with correlation IDs for request/response tracking.

What You Can Do

Search & Browse

  • Search movies, TV shows, music, and other content

  • Browse libraries and collections

  • View recently added content and watch history

Music Discovery

  • Natural language music discovery ("songs from the 90s", "rock bands I haven't heard")

  • Smart recommendations based on listening patterns

  • Intelligent randomization for variety and surprise

  • Similar artist discovery and genre exploration

Playlists

  • Create and manage playlists

  • Add items to existing playlists

  • Browse playlist contents

Media Info

  • Get detailed media information (codecs, bitrates, file sizes)

  • Check watch status and progress

  • View library statistics and listening stats

Resources (Data Access)

  • Access structured data via URI: plex://libraries, plex://recent, plex://playlists

  • Library-specific data: plex://library/{id}, plex://library/{id}/recent

  • Server statistics and connection status

  • JSON-formatted data for analysis and automation

Prompts (AI Assistance)

  • playlist_description: Generate creative playlist descriptions

  • content_recommendation: Get personalized content recommendations

  • smart_playlist_rules: Create smart playlist criteria and rules

  • media_analysis: Analyze library content and patterns

  • server_troubleshooting: Diagnose server connection issues

Status

✅ Working: Search, browse, playlists, media info, library stats, watch history, collections, music discovery, resources, prompts

❌ Disabled: Smart playlists (filter logic broken)

🚧 Planned: Remote server browsing

Development

Want to contribute? Point Claude at your local version:

{
  "mcpServers": {
    "plex-dev": {
      "command": "node",
      "args": ["/path/to/plex-mcp/index.js"],
      "env": {
        "PLEX_URL": "http://your-plex-server:32400"
      }
    }
  }
}

It works for us. If it doesn't work for you, well we tried. Hit us up, we don't bite. Much.

Available Tools

22 tools
add_to_playlistB

Add items to an existing playlist

Inputs: playlist_id (required), item_keys (required).

authenticate_plexA

Initiate Plex OAuth authentication flow to get user login URL

Inputs: no named parameters.

browse_collectionC

Browse content within a specific collection

Inputs: collection_id (required), sort, limit, offset.

browse_librariesA

List all available Plex libraries (Movies, TV Shows, Music, etc.)

Inputs: no named parameters.

browse_libraryB

Browse content within a specific Plex library with filtering and sorting options

Inputs: library_id (required), sort, genre, year, +35 more.

browse_playlistB

Browse and view the contents of a specific playlist with full track metadata

Inputs: playlist_id (required), limit.

check_auth_statusB

Check if Plex authentication is complete and retrieve the auth token

Inputs: pin_id.

clear_authB

Clear stored authentication credentials

Inputs: no named parameters.

create_playlistA

Create a new regular playlist on the Plex server. Requires an initial item (item_key parameter) to be created successfully. Smart playlists are not supported due to their complex filter requirements.

Inputs: title (required), type (required), item_key (required).

delete_playlistB

Delete an existing playlist

Inputs: playlist_id (required).

discover_musicB

Natural language music discovery with smart recommendations based on your preferences and library

Inputs: query (required), context, limit.

get_collectionsB

List all collections available on the Plex server

Inputs: library_id.

get_library_statsA

Get comprehensive statistics about Plex libraries (storage usage, file counts, content breakdown, etc.)

Inputs: library_id, include_details.

get_listening_statsA

Get detailed listening statistics and music recommendations based on play history and patterns

Inputs: account_id, time_period, include_recommendations, music_library_id.

get_media_infoA

Get detailed technical information about media files (codecs, bitrates, file sizes, etc.)

Inputs: item_key (required).

get_on_deckB

Get 'On Deck' items (continue watching) for users

Inputs: limit.

get_recently_addedC

Get recently added content from Plex libraries

Inputs: library_id, limit, chunk_size, chunk_offset.

get_watched_statusC

Check watch status and progress for specific content items

Inputs: item_keys (required), account_id.

get_watch_historyC

Get playback history for the Plex server

Inputs: limit, account_id, chunk_size, chunk_offset.

list_playlistsB

List all playlists on the Plex server

Inputs: playlist_type.

search_plexC

Search for movies, TV shows, and other content in Plex libraries

Inputs: query (required), type, limit, play_count_min, +34 more.

validate_llm_responseB

Validate LLM response format and content against expected schemas for different prompt types

Inputs: response (required), prompt_type (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 22 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, such as playlist management vs library browsing vs authentication. However, there is minor potential overlap between browse_libraries and browse_library, and between browse_collection and get_collections, but descriptions help disambiguate.

    Naming Consistency3/5

    Tool names mostly follow a verb_noun pattern, but there are inconsistencies: browse_libraries vs browse_library (plural vs singular), some use 'get' and others 'browse' for similar operations, and validate_llm_response uses a different verb.

    Tool Count4/5

    22 tools is on the higher side but reasonable for a comprehensive Plex media server covering authentication, browsing, playlists, collections, stats, and search. Slightly over the ideal range but still well-scoped.

    Completeness3/5

    The tool set covers many common Plex operations but misses some expected ones like updating playlists, marking media as watched, or editing media info. The presence of validate_llm_response seems out of place.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables users to manage and control their Plex media library through natural language commands in MCP-compatible AI clients. It supports searching content, managing playlists, tracking library statistics, and monitoring live viewing sessions.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Lets AI assistants browse your libraries, search media, get viewing recommendations, check what's on deck, and more — all read-only against your local Plex instance.
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables full management of a Plex Media Server via Claude, including browsing libraries, fixing metadata, managing collections, and more.
      -