Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Full-library Plex access for AI agents: watched state, all-user watch history, safe curation writes.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
PLEX_URL, PLEX_TOKEN, PLEX_ALLOW_PLAYBACK, PLEX_READ_ONLY, TAUTULLI_URL, TAUTULLI_API_KEY标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"plex": {
"command": "npx",
"args": [
"-y",
"@dustinhansen/plex-mcp"
],
"env": {
"PLEX_URL": "your-value",
"PLEX_TOKEN": "your-value",
"PLEX_ALLOW_PLAYBACK": "your-value",
"PLEX_READ_ONLY": "your-value",
"TAUTULLI_URL": "your-value",
"TAUTULLI_API_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add plex --env PLEX_URL=your-value --env PLEX_TOKEN=your-value --env PLEX_ALLOW_PLAYBACK=your-value --env PLEX_READ_ONLY=your-value --env TAUTULLI_URL=your-value --env TAUTULLI_API_KEY=your-value -- npx -y @dustinhansen/plex-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"plex": {
"command": "npx",
"args": [
"-y",
"@dustinhansen/plex-mcp"
],
"env": {
"PLEX_URL": "your-value",
"PLEX_TOKEN": "your-value",
"PLEX_ALLOW_PLAYBACK": "your-value",
"PLEX_READ_ONLY": "your-value",
"TAUTULLI_URL": "your-value",
"TAUTULLI_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"plex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dustinhansen/plex-mcp"
],
"env": {
"PLEX_URL": "your-value",
"PLEX_TOKEN": "your-value",
"PLEX_ALLOW_PLAYBACK": "your-value",
"PLEX_READ_ONLY": "your-value",
"TAUTULLI_URL": "your-value",
"TAUTULLI_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
PLEX_ALLOW_PLAYBACK envPLEX_READ_ONLY envTAUTULLI_URL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 dustinhansen 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:PLEX_URL, PLEX_TOKEN, TAUTULLI_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.9.1)于4天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js, Docker。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Agent Data Tools: Utilities
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
103 tools: JSON repair, CSV, hashes, cron, dates, units, validators. 25 free calls.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
An MCP server that gives your AI assistant a complete picture of your Plex Media Server: every library, watched and unwatched, every household member's watch history, plus safe curation writes (playlists, collections, watched state, ratings, the plex.tv watchlist).
It talks to Plex's HTTP API directly (no client library, 2 runtime dependencies), ships as an npm package and a Docker image, and is tested offline.
Nothing in this server can delete, move, or modify media files or metadata.
Requires Node 22+ and a Plex Media Server you own.
1. Sign in and get your credentials (plex.tv PIN flow, no token hunting):
npx @dustinhansen/plex-mcp login
It prints a link, waits for you to approve it in the browser, then prints PLEX_URL=… and PLEX_TOKEN=…. Add --write to append both lines to a file as well. The file holds your token, so on macOS and Linux a new one is created readable by you only. An existing file keeps its permissions. --write refuses a file name that starts with -, so pass it as ./-name. (Prefer the manual route? Plex Web → play any item → ⋮ → Get Info → View XML → X-Plex-Token in the URL.)
2. Add it to your client. Any MCP client that can launch a local (stdio) server works. Most of them take the server as a command, its arguments and an environment. Here are 2 CLIs, for example:
# Claude Code
claude mcp add plex -e PLEX_URL=http:// :32400 -e PLEX_TOKEN= -- npx -y @dustinhansen/plex-mcp
codex mcp add plex --env PLEX_URL=http:// :32400 --env PLEX_TOKEN= -- npx -y @dustinhansen/plex-mcp
Clients configured with a JSON file (Claude Desktop, Cursor, and any client that reads a .mcp.json) mostly use this shape. Your client's docs say where the file lives and whether it names the top-level key differently:
{
"mcpServers": { "plex": { "command": "npx", "args": ["-y", "@dustinhansen/plex-mcp"], "env": { "PLEX_URL": "http:// :32400", "PLEX_TOKEN": " " } } } }
Assistants that run in a browser or on a phone (claude.ai, ChatGPT) can't launch a local process. They need the server in HTTP mode, reachable from the vendor's cloud. See HTTP mode and Docker and docs/remote-access.md.
Use the server owner's admin token if you want every user's watch history.
The server registers 22 tools by default, and the optional ones below add up to 4 more. Each tool declares a title and all 4 MCP annotations (read-only, destructive, idempotent, open-world). The spec tells clients to treat annotations as hints, so the Safety model rests on what the server registers.
| tool | what it does |
|---|---|
list_libraries | All sections with libraryType (Movies / TV Shows / Music / Photos / Other Videos), scanner type, agent, and whether a scan is running. |
list_media | Any library, any kind (movie/show/season/episode/artist/album/track/collection). Filters: watched, rated, genre, year, decade, contentRating, collection, country, studio, label, maxDurationMin, addedSince, lastViewedBefore, lastViewedAfter. The last-viewed filters take an ISO date or a relative value like -3y. A never-watched item counts as last viewed before any date, so pair lastViewedBefore with watched: "watched" to leave those out. Sorts: title, year, rating, audienceRating, userRating, addedAt, lastViewedAt, viewCount, duration, random. A filters object names what each genre, collection, country, studio or label filter matched, so you can see when a name matched a longer one. collection with no kind lists the kind the collection holds, so an episode collection in a TV library lists episodes. A smart collection with no tag is an error naming the ratingKey to pass to get_children. Paginated (offset/limit/nextOffset). fields projects each record to the keys you need. detail: true adds fields such as cast, crew and a summary to each record, and caps limit at 25. |
search | Global search across libraries incl. people, collections, playlists. externalId (imdb:tt0113277, tmdb:949, tvdb:12345) looks a movie or show up by the id Plex holds for it instead. |
get_item | Full metadata + file info (paths, codecs, sizes, every version) by ratingKey. labels names the item's Plex labels, and is an empty array when it has none. |
get_children | Children of a show (seasons), season (episodes), artist (albums), album (tracks), collection (items) or playlist (items, with playlist: true). A movie, episode or track has no children, and the call fails saying so. Paginated (offset/limit/nextOffset). fields projects each record to the keys you need. detail: true adds fields such as cast, crew and a summary to each record, and caps limit at 25. |
get_extras | Trailers, featurettes, behind-the-scenes for an item. |
person_credits | Filmography by director/actor/writer/composer, with watched filter. Paginated (offset/limit/nextOffset). fields projects each record to the keys you need. detail: true adds fields such as cast, crew and a summary to each record, and caps limit at 25. |
library_changes | What's new or updated since a cutoff (-7d or ISO date), as an added and an updated list, each capped by limit. detail: true adds fields such as cast, crew and a summary to each record, and caps limit at 25 for each list. |
library_stats | Totals watched and unwatched, with genre/decade/rating breakdowns and optional per-user play counts. |
| tool | what it does |
|---|---|
similar_items | Plex's "more like this" for an item, with a watched filter. |
random_pick | N random items matching any list_media filter set ("surprise me, unwatched, 80s, under 2h"). Each pick is the same record list_media returns. filters names what the tag filters matched, as in list_media, and collection with no kind picks the kind the collection holds. A smart collection with no tag is an error naming the ratingKey to pass to get_children. detail: true adds fields such as cast, crew and a summary to each record. user picks as a Plex Home user, so unwatched means unwatched by them. |
continue_watching | Plex's Continue Watching row: the next unwatched episode per in-progress show and any partially watched movie, with how far into each you are. detail: true returns full item records instead, and caps limit at 25. |
get_watchlist | The server owner's plex.tv watchlist, with whether each title is in a library here and its ratingKey if so. Paginated (offset/limit). |
There are also two MCP prompts, movie_night and whats_new, and a plex://libraries resource.
| tool | what it does |
|---|---|
watch_history | Who watched what, and when. Filter by user, library, time window, or item. |
now_playing / list_users | Live sessions and every account on the server. |
continue_watching, list_media, random_pick and library_stats accept a user argument to see the library as a Plex Home user (their watched state, their on-deck). Plex only allows this for Home (managed) users. For friends, watch_history is the view that works for everyone.
Registered unless PLEX_READ_ONLY=1.
| tool | what it does |
|---|---|
set_watched | Mark items watched/unwatched (explicit ratingKeys only). |
rate_item | Set or clear the server owner's star rating. |
manage_playlist / manage_collection | Create, add, remove, delete. Deleting removes only the grouping, never media. |
manage_watchlist | Add movies and shows in the library to the server owner's plex.tv watchlist, or remove them (explicit ratingKeys only). |
scan_library | Trigger "Scan Library Files" for a section, optionally one folder. |
manage_watchlist resolves each ratingKey to the Plex GUID plex.tv identifies the item by. It takes movies and shows only, the kinds a Plex watchlist offers, and refuses an item matched by a legacy agent (which has no Plex GUID). Both checks run before anything is sent.
Set PLEX_ALLOW_PLAYBACK=1 to register list_clients and play_item ("play this album on my phone"). Both tools use Plex's player-control API, so the target must be a player that advertises itself to the server. We have tested playback with Plexamp. Current Plex apps for TVs and desktops may not show up in list_clients at all: Plex for Apple TV and Plex for Mac did not, even with the app open. Off by default because it's the one thing here that touches the real world. PLEX_READ_ONLY=1 keeps them unregistered even when this is set.
Set TAUTULLI_URL and TAUTULLI_API_KEY to add tautulli_stats (home stats: most watched, most active users, popular items over a period) and tautulli_history (per-play records with platform, player, and percent watched). Plex's own history covers the basics. Tautulli adds the detail most admins already collect. They need Tautulli 2.18.0 or later, the first release that reads the API key from a request header.
kind that contradicts the library is refused before the write, and so is a library type that holds no collection kind the tool offers. Nothing operates on "all matches".PLEX_ALLOW_PLAYBACK says, so a client sees only reads. The Tautulli tools are reads and stay. The restriction wins over the opt-in because a server set up to change nothing should not start changing things when another variable is added. Any value other than 1, 0 or empty stops the server rather than starting it with writes... or ? could turn a read into one of those writes, even with PLEX_READ_ONLY=1. We refuse a bad id rather than encode it, because no real Plex id needs encoding.只显示了开头部分;其余内容请在仓库中阅读