# Jellyfin and Emby in your Mac’s menu bar

See what’s playing on your media 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, how much each library holds, and whether the server needs you. One page set serves Jellyfin and Emby: both take the same sign-in and the same requests.

## What you’ll see

- **Jellyfin:**
  - **Health:** in Details, a row for each scheduled task and each plugin, grouped as the server groups them, and Restart pending while the server waits for one. A task whose last run failed, a plugin that’s malfunctioned and a restart pending are orange. The worst sets the health card's colour, and a change sends a notification. When the server stops answering, the rows give way to one red Server row.
  - **Now playing:** each stream with its poster (a show’s, or an album’s cover; a film, show or note icon when the server has none), its title and episode, a bar with "31 of 47 min", who’s watching on which device, and whether it plays directly or is transcoding. A paused stream says Paused. Point at a row for **Message** and **Stop**; Stop asks first. A live TV channel or an idle app isn’t listed. Someone watching never counts as a problem.
  - **Recently added:** a shelf of the four newest films, episodes and albums, with their posters. Each opens in Jellyfin’s web app.
  - **Libraries:** each library with what it holds ("1,204 movies", "312 shows · 9,870 episodes"). The server counts by kind, 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.

### Status

- Watches the server, not who’s watching.
- Orange for a task whose last run failed, a plugin that’s broken or a restart pending.
- Red once the server stops answering.
- Someone watching or transcoding never counts as a problem.
- Notifies you when it turns orange or red.

## How it connects

The pages read the server’s own API with an API key, sent as `Authorization: MediaBrowser Token="…"`, the form Jellyfin 10.10 and later and Emby both accept.

| Request | Pages | When | What it supplies |
| --- | --- | --- | --- |
| `GET /Sessions?activeWithinSeconds=960` | Jellyfin | Once a minute | Who’s playing what, where it’s up to, and how it plays. |
| `GET /Items/Counts` | Jellyfin | Every 15 minutes | How many films, shows, episodes, albums and songs the server holds. |
| `GET /Library/VirtualFolders` | Jellyfin, Library | Every 15 minutes | The libraries, their kinds and folders, and whether one is being scanned. |
| `GET /Items?Recursive=true&SortBy=DateCreated&SortOrder=Descending&IncludeItemTypes=Movie,Episode,MusicAlbum&Fields=DateCreated&Limit=8` | Jellyfin | Every 15 minutes | What was added most recently. |
| `GET /ScheduledTasks?IsHidden=false` | Jellyfin | Every 5 minutes | Each task’s last run. |
| `GET /System/Info` | Jellyfin | Every 5 minutes | A pending restart (and Emby’s maintenance mode). |
| `GET /Plugins` | Jellyfin | Every 5 minutes | Each plugin’s status. |
| `GET /Items?ParentId={param.id}&Recursive=true&Limit=0&EnableTotalRecordCount=true&IncludeItemTypes=Movie,Series,MusicAlbum,Book,MusicVideo` | Library | Every 15 minutes | How many titles the library holds. |
| `GET /Items?ParentId={param.id}&Recursive=true&SortBy=DateCreated&SortOrder=Descending&IncludeItemTypes=Movie,Episode,MusicAlbum,Book,MusicVideo&Fields=DateCreated&Limit=15` | Library | Every 15 minutes | What was added to it most recently. |
| `GET /Items/{id}/Images/Primary` | Jellyfin, Library | While the panel shows the row | Posters and covers the server says it has, kept on this Mac. |
| `POST /Sessions/{id}/Message` | Jellyfin | When you send a message | Shows your words on that screen for 10 seconds. |
| `POST /Sessions/{id}/Playing/Stop` | Jellyfin | When you press Stop and confirm | Stops that stream. |

That’s about 108 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](https://legatobar.com/docs/sources.md) explains each part of a page.

## Set it up

1. **Make an API key.** In Jellyfin, open Dashboard → API Keys and add one named Legato; in Emby, Settings → Advanced → API Keys. An API key acts as an administrator, which the tasks, plugins and Stop need.
2. **Save it in Legato.** In Settings → Secrets, save just the key under `jellyfin`, bound to your server’s address. You can also link a [1Password reference](https://legatobar.com/docs/1password.md).
3. **Add the pages.** Paste the prompt into your agent, or download the two pages and run `/Applications/Legato.app/Contents/Helpers/legato set jellyfin-library jellyfin-library.json`, then `legato set jellyfin jellyfin.json`. Keep the ID `jellyfin-library`: every library row opens it with that library’s id.
4. **Point them at your server.** Change `http://jellyfin.local:8096` to your server’s address on every source of both pages, and in the Recently added links. A server behind a path such as `/jellyfin` needs that path at the start of each request too.

The cards fill within a minute. A mistyped key 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 Jellyfin and Emby, starting from https://legatobar.com/examples/jellyfin.json, https://legatobar.com/examples/jellyfin-library.json. Use the page IDs jellyfin, jellyfin-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://jellyfin.local:8096 on every source to my server’s address. I’ll save my API key as jellyfin in Settings → Secrets myself. Don’t press Stop or Message to test them.

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

- [Download Jellyfin (jellyfin.json)](https://legatobar.com/examples/jellyfin.json)
- [Download Library (jellyfin-library.json)](https://legatobar.com/examples/jellyfin-library.json)

## Questions

### Does it work with Emby?

Yes. Emby 4.x takes the same sign-in, and every request the pages make. The title says Jellyfin; change `title` to Emby if you like. Emby’s Server dots include its maintenance mode.

### Why don’t I see Stop or Message on a row?

They show only for apps that take remote commands, as the server reports. Some music apps and TVs don’t, and Stop would do nothing there.

### 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.

### What happens to the posters?

Legato fetches each poster from your server with your key, 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.

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

## Verification

The pages were filled from Jellyfin 12.4.0 and Emby 4.10.2 servers on 8 Nov 2026, with made-up viewers playing open films, a made-up series and album, and a real transcoding stream. Message and Stop were checked to be accepted by both. The example pages have tests with made-up answers for a busy evening. Illustrations use made-up titles, people and numbers. See the [service index](https://legatobar.com/services/) for other examples.
