Media

Plex

See what’s playing on your Plex server without opening it: each stream with its poster, how far along it is and who’s watching on what, a shelf of what was just added, and how much each library holds. The page turns red only if the server stops answering.

Install in LegatoSet it up by hand ↓

Plex
Now playing
Harbor Lights · S02E05 · The Long Tide
riley · Living room TV · Direct play31 of 47 min
The Lighthouse Keeper · 2019Paused
sam · Plex Web · Transcoding72 of 118 min
Tidewater · Fernway Quartet · Movement 3
jo · Plexamp · Direct play2 of 4 min
Libraries
Updated 12 min ago

What you’ll see

Plex

  • Health: in Details, the server’s name and version, and "Update ready" when Plex has an update waiting. Once the server stops answering, the health card turns red, and Legato sends a notification. Nothing else counts as a problem.
  • Now playing: each stream with its poster (a show’s, or an album’s cover; a film, show or note icon when there’s none), its title and episode, a bar with "31 of 47 min", who’s watching on which player, and whether it plays directly or is transcoding. A paused stream says Paused. On a server with Plex Pass, point at a row for Stop, which asks first. A live channel or a photo slideshow isn’t listed. Someone watching never counts as a problem.
  • Recently added: a shelf of the four newest films, seasons and albums, with their posters. Each opens in Plex Web.
  • Libraries: each library with what it holds ("1,204 movies", "312 shows · 9,870 episodes"). Plex counts by kind across the server, so two libraries of the same kind (Shows and Kids, say) each just say Shows; their own pages have their counts. Each row opens that library’s page.

Library

One page for every library, titled with its name: how many titles it holds, its kind and folder, and the latest fifteen added, each opening in Plex Web.

Status

  • Watches whether the server answers, not who’s watching.
  • Red once the server stops answering.
  • An update waiting, someone watching or a transcode never counts as a problem.
  • Notifies you when it turns orange or red.

How it connects

The pages read your server’s own API with your Plex token, sent as X-Plex-Token, and ask for JSON with Accept: application/json.

Requests it makes on its own 13

  • GET/status/sessions

    Who’s playing what, where it’s up to, and how it plays.

    PlexOnce a minute

  • GET/

    The server’s name, version and id (for links into Plex Web), and whether it has Plex Pass, which Stop needs.

    Plex, LibraryOnce a minute, and every 5 and 15 minutes

  • GET/updater/status

    Whether an update is waiting.

    PlexEvery 5 minutes

  • GET/library/sections

    The libraries, their kinds and folders.

    Plex, LibraryEvery 15 minutes

  • GET/library/recentlyAdded?X-Plex-Container-Start=0&X-Plex-Container-Size=8

    What was added most recently.

    PlexEvery 15 minutes

  • GET/library/all?type=1&X-Plex-Container-Start=0&X-Plex-Container-Size=0

    How many films the server holds (and type=2, 4, 9, 10 for shows, episodes, albums and songs).

    PlexEvery 15 minutes

  • GET/library/all?type=2&X-Plex-Container-Start=0&X-Plex-Container-Size=0

    How many shows.

    PlexEvery 15 minutes

  • GET/library/all?type=4&X-Plex-Container-Start=0&X-Plex-Container-Size=0

    How many episodes.

    PlexEvery 15 minutes

  • GET/library/all?type=9&X-Plex-Container-Start=0&X-Plex-Container-Size=0

    How many albums.

    PlexEvery 15 minutes

  • GET/library/all?type=10&X-Plex-Container-Start=0&X-Plex-Container-Size=0

    How many songs.

    PlexEvery 15 minutes

  • GET/library/sections/{param.id}/all?X-Plex-Container-Start=0&X-Plex-Container-Size=0

    How many titles the library holds.

    LibraryEvery 15 minutes

  • GET/library/sections/{param.id}/recentlyAdded

    What was added to it most recently.

    LibraryEvery 15 minutes

  • GET/library/metadata/{id}/thumb/{time}

    Posters and covers the server has, kept on this Mac.

    Plex, LibraryWhile the panel shows the row

Requests it makes when you act 1
  • POST/status/sessions/terminate?sessionId={id}&reason=Stopped%20from%20Legato

    Stops that stream; the viewer sees "Stopped from Legato".

    PlexWhen you press Stop and confirm

That’s about 180 requests an hour with the overview open, plus a poster the first time each one shows. Posters come only from your server, never from another site, and Load icons from the web in Settings doesn’t affect them.

Sources and buttons explains each part of a page.

Set it up

  1. Find your token. Plex’s guide, Finding an authentication token, shows where: sign in to Plex Web as the server’s owner, open any item’s Get Info → View XML, and copy the X-Plex-Token at the end of the address. Use the classic token that way; Plex’s newer sign-in tokens last only 7 days.
  2. Save it in Legato. In Settings → Secrets, save the token under plex, bound to your server’s address. You can also link a 1Password reference.
  3. Add the pages. Paste the prompt into your agent, or download the two pages and run /Applications/Legato.app/Contents/Helpers/legato set plex-library plex-library.json, then legato set plex plex.json. Keep the ID plex-library: every library row opens it with that library’s key.
  4. Point them at your server. Change http://plex.local:32400 to your server’s local address on every source of both pages. Use plain http:// with the server’s address on your network: an https:// address by IP fails Plex’s certificate.

The cards fill within a minute. A mistyped token is the usual reason they don’t: the page then notes that the server refused it.

Prompt for your agent

prompt
Add 2 Legato pages for Plex, starting from https://legatobar.com/examples/plex.json, https://legatobar.com/examples/plex-library.json. Use the page IDs plex, plex-library if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.

Add the pages as they are, keeping their page IDs, and change http://plex.local:32400 on every source to my server’s address. I’ll save my Plex token as plex in Settings → Secrets myself. Don’t press Stop to test it.

Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.

Download the pages

Questions

Why don’t I see Stop on a row?

Stopping someone’s stream is a Plex Pass feature, so Stop shows only when the server has Plex Pass. Plex has no other way to message a viewer; when you stop a stream, they see "Stopped from Legato".

Why isn’t transcoding a warning?

Transcoding is the server doing its job: a phone that can’t play a film’s format still gets it. The row says Transcoding so you can see it; it never counts as a problem.

Why does an update waiting not count as a problem?

An update can wait until it suits you, so the status card just says "Update ready". The page counts it as a problem only when the server stops answering.

What happens to the posters?

Legato fetches each poster from your server with your token, only while it’s on screen, and keeps up to 50 MB of them on this Mac, the oldest going first. They never go anywhere else.

The pages were filled from a Plex Media Server 1.43.5 on 9 Nov 2026 with made-up players reporting playback, open films, and a made-up series and album. That server wasn’t signed in to Plex, so Stop and viewers’ names are checked by tests with made-up answers rather than live. Illustrations use made-up titles, people and numbers. See the service index for other examples.

Legato is independent and isn’t affiliated with or endorsed by Plex.