家庭自动化与物联网 · 娱乐与媒体

Plex MCP Server

niavasha/plex-mcp-server

Plex MCP Server是一个将Plex媒体服务器转换为可通过AI查询的数据库的服务,提供媒体库管理、观看统计和智能查询功能。

安装

npx plex-mcp-server

客户端配置

{
  "mcpServers": {
    "plex": {
      "command": "node",
      "args": [
        "/path/to/plex-mcp-server/build/plex-mcp-server.js"
      ],
      "env": {
        "PLEX_URL": "<PLEX_URL>",
        "PLEX_TOKEN": "<PLEX_TOKEN>",
        "SONARR_URL": "<SONARR_URL>",
        "SONARR_API_KEY": "<SONARR_API_KEY>",
        "RADARR_URL": "<RADARR_URL>",
        "RADARR_API_KEY": "<RADARR_API_KEY>",
        "TRAKT_CLIENT_ID": "<TRAKT_CLIENT_ID>",
        "TRAKT_CLIENT_SECRET": "<TRAKT_CLIENT_SECRET>"
      }
    }
  }
}

环境变量

PLEX_URLPLEX_TOKENSONARR_URLSONARR_API_KEYRADARR_URLRADARR_API_KEYTRAKT_CLIENT_IDTRAKT_CLIENT_SECRET
作者
@niavasha
分类
家庭自动化与物联网, 娱乐与媒体
许可证
MIT
更新于
2026年10月6日

工具(40)

  • get_libraries

    List all Plex libraries

  • get_library_items

    List items in a library with pagination

  • export_library

    Export a full library to JSON (under./exports)

  • search_media

    Search media globally or within one library

  • get_recently_added

    Recently added content

  • get_on_deck

    Continue watching list

  • get_media_details

    Detailed media info

  • get_editable_fields

    Show editable fields and available tags for an item

  • get_playlists

    List all Plex playlists

  • get_playlist_items

    List items in a playlist

  • get_watchlist

    Get the current account Watchlist from Plex Discover

  • get_recently_watched

    Recently watched content

  • get_watch_history

    Detailed watch sessions

  • get_fully_watched

    Fully watched movies/shows

  • get_watch_stats

    Comprehensive viewing statistics

  • get_user_stats

    User activity statistics

  • get_library_stats

    Library usage metrics

  • get_popular_content

    Most popular content analysis

  • get_recommendations

    Personalized movie recommendations based on your watch history

  • get_active_sessions

    Currently active Plex streams — who is watching what, player state, transcoding

  • update_metadata

    Update metadata fields and editable tags for a media item

  • update_metadata_from_json

    Apply a metadata JSON payload using best-effort field mapping

  • create_playlist

    Create a new smart or static playlist

  • add_to_playlist

    Add a media item to a playlist

  • remove_from_playlist

    Remove an item from a playlist

  • clear_playlist

    Preview and optionally clear all items from a playlist (confirm=true)

  • delete_playlist

    Delete a playlist without deleting the underlying media

  • add_to_watchlist

    Add a matched local movie or show to the account Watchlist

  • remove_from_watchlist

    Remove an account Watchlist item by its global Plex GUID or local rating key

  • rate_media

    Set the user's rating for a media item from 0 to 10

  • mark_watched

    Mark a media item as watched

  • mark_unwatched

    Mark a media item as unwatched

  • sonarr_get_series

    List series with optional title filter

  • sonarr_search

    Search TheTVDB for new series

  • sonarr_add_series

    Add series by TVDB ID

  • sonarr_get_missing

    Missing/wanted episodes

  • sonarr_get_queue

    Download queue

  • sonarr_get_calendar

    Upcoming episodes

  • sonarr_get_profiles

    Quality profiles and root folders

  • sonarr_trigger_search

    Trigger missing episode search

本页信息摘自该项目的 README。 查看 README

支持的客户端

该服务器 README 中提到的客户端:

查看全部
Claude Desktop logo

Claude Desktop

桌面端 · 免费增值 · Proprietary

Anthropic 官方推出的 Claude AI 桌面应用程序。支持 MCP 服务器以扩展功能。

WindowsMacOS
VS Code GitHub Copilot logo

VS Code GitHub Copilot

桌面端 · 免费增值 · MIT

VS Code 通过代理模式将 MCP 与 GitHub Copilot 集成,允许在你的代理编码工作流中直接与 MCP 提供的工具交互。在 Claude Desktop、工作区或用户设置中配置服务器,提供引导式 MCP 安装和安全处理输入变量中的密钥,避免泄露硬编码密钥。

WindowsMacOSLinuxWeb

相关 MCP 服务器

更多服务器
rulego logo

rulego

rulego/rulego

1.1k

RuleGo是一个基于Go语言的轻量级、高性能、嵌入式、可编排的组件化规则引擎,适用于低代码、业务编排、数据集成、工作流、物联网等多种场景。

家庭自动化与物联网
Homeassistant MCP logo

Homeassistant MCP

tevonsb/homeassistant-mcp

246

一个连接Home Assistant与LLM的MCP协议服务器,实现智能家居的自然语言控制与监控

家庭自动化与物联网
MCP Server Apple Shortcuts logo

MCP Server Apple Shortcuts

recursechat/mcp-server-apple-shortcuts

145

一个让AI助手通过MCP协议控制苹果快捷指令的服务

家庭自动化与物联网
Siri Shortcuts logo

Siri Shortcuts

dvcrn/mcp-server-siri-shortcuts

115

通过MCP协议提供Siri快捷指令服务的服务器

家庭自动化与物联网
Hass MCP logo

Hass MCP

voska/hass-mcp

60

Hass-MCP是一个连接Home Assistant与AI助手(如Claude)的协议服务器,实现智能家居设备查询、控制和自动化管理。

家庭自动化与物联网
MCP Server Home Assistant logo

MCP Server Home Assistant

allenporter/mcp-server-home-assistant

45

为Home Assistant提供模型上下文协议服务的集成组件

家庭自动化与物联网