# OpenPlate, an MCP-first meal and fitness app

- Period: Nov 2026
- Domain: Independent project, open source
- Role: Designed and built it end to end
- Key result: 37, MCP tools any AI client can call, from one shared, user-owned database
- Capabilities: Agent architecture and orchestration; Knowledge, retrieval and context
- Stack: React 19, Vite, PWA, Supabase, Postgres, Row Level Security, Vercel, MCP, Streamable HTTP
- URL: https://farhanbaluch.com/work/openplate
- Live demo: https://openplate-puce.vercel.app
- Code: https://github.com/farhan1301/openplate

An open-source app for meals, pantry, groceries, calories, workouts and supplements that you host for free and run from the AI you already use, through an MCP connector.

**AI angle.** Instead of putting a model inside the app, OpenPlate gives any model a well-described set of tools and one context document. The app stores the facts; Claude, ChatGPT or Gemini does the reasoning, and switching between them keeps all the history.

**What this shows:**
- I design MCP servers as products: tool surface, a one-call snapshot for agents, scoped keys and an audit trail.
- I can ship a complete, installable app on my own, from database security to a public demo.

### Problem

Calorie and meal apps charge a subscription for work a general-purpose model already does well: understanding "two eggs on toast and a latte", estimating macros, suggesting what to cook. But a chat assistant can't remember your pantry or last week's food log, and each app keeps your history to itself.

### Approach

Split the job in two. A small app the user owns stores the facts, and the AI they already pay for does the thinking through a remote MCP connector. Make the agent side a first-class interface rather than an add-on: every screen in the app has matching tools, and the guide that tells a model how to coach lives in the user's own database.

### What I built

- **An MCP server with 37 tools** over stateless Streamable HTTP on Vercel: read tools for the kitchen, nutrition, fitness and supplements, and write tools for the pantry, grocery list, meals, food log, goals, workouts and the agent guide itself.
- **One snapshot, one call.** `get_kitchen_snapshot` returns profile, meals with readiness, pantry, groceries, today's nutrition and this week's training as one JSON document, so most questions take a single round trip.
- **The agent guide as context.** A markdown guide explains every field and how to coach. Users or their agents can edit it from the app, and any model that connects reads the same guide and history.
- **Scoped keys and an audit trail.** Keys are hashed, read-only unless the user allows changes, and revocable. Every change an agent makes appears in the app under recent agent changes.
- **Security in the database.** Row Level Security and an email allowlist on every Supabase table, so a stateless API layer holds no secrets.
- **A one-prompt install.** A coding agent can follow `INSTALL.md` to fork the repo, create the Supabase project, run migrations and deploy to Vercel in about ten minutes. There is also a browser-only demo on sample data.

### Outcome

Released as MIT-licensed open source in November 2026, with a public demo that runs entirely in the browser. It works from Claude, ChatGPT, Gemini CLI, Cursor and any client that supports remote MCP, and there is a copy-paste fallback for chats without MCP.