# Mealie in your Mac’s menu bar

Check what’s for dinner, and tick things off the shopping list in the shop, without opening Mealie. The page shows the next seven days of your meal plan and the shopping list you name when you set it up, and a tick or a new item goes straight to Mealie.

## What you’ll see

- **Mealie:**
  - **Meal plan:** today and the next six days, under Today, Tomorrow and each day’s date, in meal order: breakfast, lunch, dinner, side, dessert, snack, drink. Each recipe has its photo from Mealie (an icon when it has none), its total time, and a link to it in Mealie. A note in the plan ("Eating out") shows its own words. Something planned for a week but not a day, which Mealie 3.30 added, comes last under **Any day this week** (or **Any day next week**, once next week’s starts within the seven days). The card shows 7 rows, with **Show more** for the rest, and a note when more is planned than the page reads.
  - **Your shopping list**, titled with its name: what’s left to buy, under the list’s labels in the order the list puts them (Produce, Dairy, Pantry), with unlabelled items under Other, then what’s already ticked under Ticked. The title counts how many are ticked. Tick a row and it’s ticked in Mealie too. The **+** in the corner adds an item: type it as you would in Mealie ("2 lemons"). The card shows 7 rows, with **Show more** for the rest.
  - **Shopping lists:** when you have two or more, each with how many items are left on it. Click one for its own page. The page reads 200 shopping items at a time, unticked first; past that, a note says so and the counts read "At least".
  - **Mealie:** how many recipes you have, and Mealie’s version.
  - **Made recently:** the last four times someone pressed **I Made This** on a recipe, with the note they left and when.
- **A shopping list:** one page for any of your lists, titled with its name: the same checklist with 15 rows and its own **+**.

### Status

No health card. The meals and the list are the page, as on a to-do app.

## How it connects

The pages read Mealie’s REST API with your API token, sent as `Authorization: Bearer …`.

| Request | When | What it supplies |
| --- | --- | --- |
| `GET /api/households/mealplans?start_date=…&end_date=…&include_week_entries=true` | Every 5 minutes | The plan for today and the next six days, with each recipe’s name, time and photo. |
| `GET /api/households/shopping/items?orderBy=checked` | Every 5 minutes | Every list’s items, up to 200, the unticked ones first. |
| `GET /api/households/shopping/lists` | Every 5 minutes | Your lists, and the order each puts its labels in. |
| `GET /api/recipes/timeline/events?queryFilter=eventType="comment"` | Every 5 minutes | The four newest I Made This entries. |
| `GET /api/recipes/{id}` | For each of those four, at most every 6 hours | The recipe’s name and photo. |
| `GET /api/groups/self`, `/api/households/statistics`, `/api/app/about` | Every 5 minutes | The group in your recipe links, the recipe count and the version. |
| `GET /api/media/recipes/{id}/images/min-original.webp` | While the card shows | Each recipe’s photo, kept on your Mac for a week. |
| `PUT /api/households/shopping/items/{id}` | When you tick an item | The item as Mealie sent it, with checked set. |
| `POST /api/households/shopping/items` | When you add an item | The new item, on your list. |

That’s about 85 requests an hour while your Mac is awake, most of them a few kilobytes. A list’s own page reads the list and its items instead. Mealie’s API documentation is on your own server at `/docs`.

A tick sends the whole item back, because Mealie replaces an item with whatever it’s sent. The item is as Mealie answered within the last five minutes, so a change someone made to it in Mealie since then (its quantity, say) is undone by the tick.

Mealie’s tokens have no permissions of their own: a token can do anything its account can. Make it on the account whose meal plan and lists you want to see. Another household’s plan and lists aren’t visible to it.

[Sources and buttons](https://legatobar.com/docs/sources.md) explains each part of a page.

## Set it up

1. **Make a token.** In Mealie, open your profile, then **API Tokens**, and generate one.
2. **Save it in Legato.** In Settings → Secrets, save the token under `mealie`, bound to your Mealie’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 both pages and run `/Applications/Legato.app/Contents/Helpers/legato set mealie mealie.json` and `/Applications/Legato.app/Contents/Helpers/legato set mealie-list mealie-list.json`.
4. **Point them at Mealie.** Change `http://mealie.local:9925` to your Mealie’s address everywhere it appears in both pages: the sources, the recipe links (`…/g/{grp.slug|raw}/r/…`) and the notes. Mealie can’t sit at a path behind a reverse proxy, so it’s always an address of its own.
5. **Name your list.** In the overview, change `Weekly shop` to your shopping list’s name, as Mealie shows it, everywhere it appears: the two `derive` rules, the shopping card’s title and two notes.

The cards fill within a minute. A mistyped token is the usual reason they don’t: the page then notes that Mealie refused it. If the list’s name doesn’t match, the page says so in place of the list.

### Prompt for your agent

```prompt
Add 2 Legato pages for Mealie, starting from https://legatobar.com/examples/mealie.json, https://legatobar.com/examples/mealie-list.json. Use the page IDs mealie, mealie-list 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 both pages as they are and change http://mealie.local:9925 to my Mealie address everywhere it appears in them: the two sources, the two recipe links and the notes. Change Weekly shop to the name of my shopping list everywhere it appears in the overview: its two derive rules, the shopping card's title and two notes. I’ll save my API token as mealie in Settings → Secrets myself.

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 Mealie (mealie.json)](https://legatobar.com/examples/mealie.json)
- [Download Shopping list (mealie-list.json)](https://legatobar.com/examples/mealie-list.json)

## Questions

### Does it work with older Mealie versions?

With Mealie 2.0 and later. Version 2 moved meal plans and shopping lists under households, and the pages use those addresses, so Mealie 1.x answers with errors. The pages’ requests were read from Mealie 2.0.0, 3.28.0 and 3.31.0. Week entries ("any day this week") need Mealie 3.30 or later; before that there are none to show.

### Why does a ticked row stay on the list for a moment?

The tick reaches Mealie at once. The row spins until the page reads Mealie again, which it does within a minute of the tick, and then the item moves down under Ticked. Ticked items stay in Mealie until they’re deleted there.

### Can it untick an item?

No. Ticked items stay at the end of the list, struck through, until they’re deleted in Mealie. Untick one there.

### Why does Made recently miss a meal?

It lists the times someone pressed **I Made This** on a recipe. Mealie doesn’t count a meal plan entry as made.

### Why does a recipe have no photo?

It has none in Mealie, so the row shows a fork and knife. A note in the plan always shows a note icon.

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

## Verification

The pages were checked against Mealie v3.31.0’s answers on 16 Nov 2026, on a server filled with made-up recipes, photos (drawings of a plate), a meal plan with notes and a week entry, three shopping lists and I Made This notes. A tick and an Add were sent there through Legato’s own requests, and an item with a food and a unit kept both when ticked; a junk token was refused. The pages’ requests were also read from a Mealie 2.0.0 server with made-up data and a 3.28.0 server, after the last change to them. Illustrations use made-up recipes, lists and photos. See the [service index](https://legatobar.com/services/) for other examples.
