Back Original

Deploy Your Own Food Tracking MCP in Minutes

My friend Jordan built a diet tracker where he tells Claude what he ate and Claude writes it to a Google Sheet. I’d quit MyFitnessPal after about a year of typing in every meal, so I wanted something I could just talk to. I’d never built an MCP before, so I built one: a Cloudflare Worker that looks up foods in USDA FoodData Central and Open Food Facts and saves my logs to D1.

Then I turned it into a template so you can run your own copy.

Get the template: github.com/redSlug/healthy-mcp-template

Telling Claude on my phone that I am eating three Whoppers candies, and Claude logging them to my food tracker
Telling Claude on my phone that I am eating three Whoppers candies, and Claude logging them to my food tracker

What you get

Set it up

The steps are in the healthy-mcp-template README.

Then say something like “I had oatmeal with blueberries for breakfast” and it’s logged.

How it works

How the food tracking MCP fits togetherYou talk to Claude or another LLM client, which calls the MCP server running as a Cloudflare Worker in your own account, after signing in with GitHub. The Worker stores your logs in D1, keeps sign-in grants in KV, and looks up foods from USDA and Open Food Facts. GitHub Actions deploys the Worker but never serves requests.

MCP over HTTPS

find foods

first sign-in only

test, create, migrate, deploy

You

Claude or your fave LLM

Worker /mcp

D1

KV

USDA and

GitHub

GitHub Actions

The MCP server runs on a Cloudflare Worker. Claude calls it to search foods and save logs, and the Worker stores your logs in D1.

Things I learned

Try it

Deploy it, log a meal, and tell me how it goes. Issues and pull requests are welcome: healthy-mcp-template on GitHub

Thank you