What is Nutrition MCP?
Nutrition MCP is a free, open-source Model Context Protocol (MCP) server that turns Claude, ChatGPT or another MCP client into a calorie and macro tracker. Instead of looking up each item yourself, you tell your AI what you ate and it logs the calories, macros, fiber, sugar, added sugar, saturated and trans fat and caffeine to your own food diary.
What is the Model Context Protocol (MCP)?
The Model Context Protocol is an open standard that lets AI assistants like Claude and ChatGPT connect to external tools and data sources. An MCP server provides specific capabilities — here, nutrition tracking — that the AI can use during a conversation. Think of it as a plugin system for AI assistants.
How do I track calories with Claude or ChatGPT?
Connect Nutrition MCP once — in Claude from the connectors directory, in ChatGPT as a custom app with the server URL — and sign in. Then tell your AI what you ate in your own words, show it a photo of the meal, or give it a product barcode. For a generic food, the values come from USDA FoodData Central when it has them and are estimated otherwise; a barcode is looked up in Open Food Facts. Nutrition MCP saves the entry to your food diary. Ask for today's totals, weekly trends or progress toward your goals at any time.
Does it work with ChatGPT?
Yes. In ChatGPT on the web, open Settings → Apps, create a custom app with the server URL using OAuth, and sign in. Creating a custom app needs ChatGPT's Developer mode, which OpenAI offers on some ChatGPT plans.
Which other clients are supported?
Any MCP client that supports OAuth 2.0 with PKCE — including Claude.ai, the Claude desktop and mobile apps, Claude Code, Cursor, Windsurf, and VS Code.
Can I self-host it?
Yes. Nutrition MCP is open source (MIT). You can run your own instance with your own Supabase project — the GitHub repository includes a full self-hosting guide and a Dockerfile.
Is Nutrition MCP free?
Yes, it is completely free — no paid tier, no ads, no hidden costs. You need an AI app that supports MCP connectors, such as Claude or ChatGPT, and a free Nutrition MCP account, which you create the first time you connect. Voluntary donations on Patreon help cover server costs and unlock nothing.
What can I track?
Calories, protein, carbohydrates, fat, saturated and trans fat, fiber, total sugar, added sugar, and water for every entry — described in plain language, looked up as a generic food in USDA FoodData Central, or pulled from a product barcode via Open Food Facts. A meal can be logged ingredient by ingredient, each with its own amount and nutrients, and a meal you eat often can be kept as a saved meal and logged again by its name. Caffeine is tracked too, in milligrams, the unit every label uses, and it adds no calories. Alcohol can be tracked as well, in grams of pure ethanol; it is shown once you switch alcohol tracking on. You can also log your body weight in kg or lb and track trends toward a target weight. Body measurements (waist, hips, neck, chest, shoulders, upper arm, forearm, thigh and calf) can be logged in cm or inches too. View daily summaries, query meals by date range, update or delete past entries, set goals, and monitor trends over time.
Can I save meals I eat often, or my own recipes?
Yes. Ask to save a meal under a name — just its totals, or a recipe with its ingredients — and its values for one serving are kept. Next time, name it and it is logged in one step: scaled by servings, with a single ingredient set to the amount you actually had or left out. The logged entry is a copy, so editing or deleting the saved meal later never changes meals already logged from it. Saved meals are part of your data export.
How accurate are the calorie counts?
Generic foods use USDA FoodData Central values when available, and estimates otherwise. A barcode's figures come from the product's record in Open Food Facts, scaled to how much you had. Each value is tagged with its source (USDA, Open Food Facts, you or an estimate), and a USDA or Open Food Facts tag appears only when the figure matches that record for the amount you logged. Estimates and records can be wrong, so check anything that matters — you can correct or delete any entry just by asking. Nutrition MCP is a logging tool, not medical or dietary advice: talk to a doctor or dietitian before making decisions about your health, especially if you are pregnant, have a medical condition or a history of disordered eating.
Does it track alcohol?
Yes, as an opt-in: alcohol tracking is off by default, and alcohol stays hidden from your meals, goals, and summaries until you switch it on. Then drinks are shown in grams of pure ethanol and as US standard drinks or UK units, whichever you prefer. Nothing infers alcohol for you: it is only recorded from a drink you log or an alcohol column in a file you import, and a drink you log is saved even while tracking is off. Switching it back off hides alcohol again and stops the importer reading alcohol columns — it is not a delete switch, and your export always includes what you logged. To remove an alcohol figure, delete the meal it belongs to.
Can I import my history from MyFitnessPal or another app?
Yes. Ask to import your history and an importer opens in the chat: you pick the CSV your old app exported, check how its columns map, and see what will be added before confirming. Exports from MyFitnessPal, Cronometer, Lose It!, and MacroFactor are recognised automatically, and any other CSV works by mapping the columns yourself. Your browser reads the file, so the AI never retypes your rows. In clients without in-chat panels you can paste your export instead — and importing the same file again does not create duplicates, as long as your timezone hasn't changed in between.
Is my data private?
Your logs are stored in the EU and linked to your own account, which you reach through the AI apps you connect. Nutrition MCP never sells your data, never shares it with third parties, apart from the food names it sends to USDA FoodData Central or Open Food Facts to look a food up, and never uses it for advertising; the home page shows only anonymous site-wide totals. Whatever your AI reads through the tools is sent to that AI's provider under your own agreement with them. You can export everything we store about you, or delete your account and all its data, at any time — the privacy policy has the details.