myhotlunchbox-mcp
MCP server for My Hot Lunchbox — read the
school lunch calendar, manage students, place and change orders, and track
deliveries and payments on a parent account.
Developed and maintained by AI (Claude Code). Use at your own discretion.
Install
npx myhotlunchbox-mcp
Or as a Claude Code plugin:
/plugin marketplace add chrischall/myhotlunchbox-mcp
/plugin install myhotlunchbox-mcp
Configure
[email protected]
MYHOTLUNCHBOX_PASSWORD=…
That is the whole setup. The server performs a real server-side sign-in against
ordernow.myhotlunchbox.com (OAuth2 password grant) and renews the session with
the refresh token it receives — no browser extension, no signed-in tab, no
captured cookie. Nothing is written to disk.
MYHOTLUNCHBOX_BASE_URL overrides the app origin if it ever moves. It must be https:// (plain http:// is accepted only for localhost), and the token cache is bound to it, so changing it signs in again.
The server boots without credentials so a host's install-time tools/list probe
still works; the configuration error surfaces on the first tool call.
Tools
35 tools, all prefixed mhlb_. All 20 read tools are verified live against a real parent account (node scripts/verify-reads.mjs); the 14 write tools are not — see below.
The read claim carries a date because it can go stale with no tool file
touched: an SDK or zod major re-plumbs every read path underneath it. Last
re-run 2026-09-19 on 1.0.0 — the tree after the MCP SDK v2 migration and the
forced zod 4.6.2 bump — 20/20 green.
Account — mhlb_whoami, mhlb_session_reset
Health — mhlb_healthcheck (is this connector working? reports whether the credential resolved, whether My Hot Lunchbox accepted it, and what to fix — unlike mhlb_whoami, which throws instead of answering)
Students — mhlb_list_students, mhlb_get_student_form,
mhlb_new_student_form, mhlb_create_student, mhlb_update_student,
mhlb_delete_student
Calendar — mhlb_get_calendar, mhlb_get_day
Ordering — mhlb_get_cart, mhlb_get_cart_tabs, mhlb_get_menu,
mhlb_get_order_form, mhlb_get_order, mhlb_create_order,
mhlb_update_order, mhlb_delete_order
Billing — mhlb_list_transactions, mhlb_get_transaction,
mhlb_list_subscriptions, mhlb_get_subscription_settings,
mhlb_set_subscription_enabled, mhlb_unsubscribe_order,
mhlb_list_gift_cards, mhlb_apply_gift_card, mhlb_get_coupon,
mhlb_apply_coupon, mhlb_remove_coupon. mhlb_list_gift_cards masks each code to its
last 4 characters (a code is redeemable money); pass revealCodes: true for
the full code.
Checkout — mhlb_init_checkout, mhlb_checkout
Reports — mhlb_print_calendar, mhlb_print_orders,
mhlb_print_transaction. These return real PDFs. On a local install each
writes the file and returns its path, or the bytes inline as base64 with
inline: true. Set MYHOTLUNCHBOX_OUTPUT_DIR (the "Report folder" setting in
the .mcpb) to choose where they land; it defaults to ~/Downloads. Existing
files are never overwritten. On a hosted server (mcp-host) the PDF comes back as
a signed, expiring download link (url, expiresAt) and nothing is written to
the server's disk; inline: true still returns base64 up to 750 KB, and links
anything larger.
Upgrading
next release
Hosted deployments only (local installs are unchanged): the report tools no
longer write the PDF under MCP_DATA_DIR and return a path nobody can open.
They return { via: "link", filename, contentType, bytes, url, expiresAt }
instead (note added when an inline: true request was too large and a link
was returned). A hosted server with no blob store returns a report up to
750 KB as { filename, contentType, bytes, base64, note } and refuses a larger
one as too_large.
Confirmations
Every mutating tool asks you to confirm before it sends anything. On a client
that can show a confirmation prompt (Claude Code) you get the prompt, with the
exact request the tool would send. On a client that cannot (claude.ai, Claude
Desktop), the first call makes no network call: it returns a preview of
exactly what it would send plus a confirmToken, and only a repeat call with
the same arguments and that token goes through. A token is single-use, and
changing any argument between the two calls is refused (DRAFT_CHANGED).