Macro Engine
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Macro Enginewhat's left today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Macro Engine
Macro tracking you talk to instead of tap at. A local food database built from open data (USDA FoodData Central), exposed as an MCP server so any Claude surface (a local Claude Code session, or any agent that speaks MCP) can log meals in plain language and answer the only question that matters: what's left today.
Setup
python3 -m venv .venv && .venv/bin/pip install mcp
.venv/bin/python -m macro_engine.etl_fdc # download + load USDA data (~15k foods)
.venv/bin/python -m unittest discover tests -v # run testsData lands in ~/.local/share/macro-engine/ (macros.db + cached raw/ zips).
Override the DB path with MACRO_ENGINE_DB.
Related MCP server: Nutrition MCP
MCP registration
claude mcp add macro-engine -- \
/path/to/macro-engine/.venv/bin/python \
/path/to/macro-engine/mcp_server.pyOr in a project .mcp.json:
{
"mcpServers": {
"macro-engine": {
"command": "/path/to/macro-engine/.venv/bin/python",
"args": ["/path/to/macro-engine/mcp_server.py"]
}
}
}Tools: log_meal, remaining, day_summary, search_food, set_targets,
add_alias, delete_log_entry.
Architecture
macro_engine/db.py— SQLite schema (foods, per-100g nutrients, portions, aliases, log, targets, FTS5 index)macro_engine/etl_fdc.py— USDA FDC bulk-CSV loader (Foundation + SR LegacyFNDDS Survey). Re-runnable; food ids stable across reloads.
macro_engine/resolve.py— phrase → food: learned aliases first, then FTS5 with source-quality re-rankingmacro_engine/tracker.py— logging, targets (append-only, latest wins), day totals, remainingmcp_server.py— FastMCP stdio server
Design rules: log rows carry denormalized macros (history survives data
reloads); unresolvable items are returned as problems or logged as flagged
estimates, never silently dropped; aliases are the product — every correction
teaches the resolver.
Roadmap
Core loop: USDA data + MCP server + fleet wiring(this)Vault recipe indexer (
Wiki/Reference/Recipes/→ per-serving macros)Open Food Facts import (Canadian packaged goods), miss-queue → recon sourcing, chain-restaurant adapters
Optional UI (standalone PWA or Training Engine feature)
License
MIT. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP server for USDA nutrition data lookup, meal logging, and daily macro tracking.88MIT
- Alicense-qualityBmaintenanceA filesystem-based MCP server that turns any MCP-capable AI agent into a conversational calorie and protein tracker with natural-language estimates, confidence-aware logging, daily/weekly progress, food-history search, and export, working offline with local fallback data.88MIT
- Alicense-qualityBmaintenanceAn MCP server that lets you log meals through Claude (and soon ChatGPT) in plain language, using India's official food composition data (IFCT 2017) plus USDA, enabling accurate calorie and macro tracking for Indian dishes with household units and photo logging.53AGPL 3.0
- Flicense-qualityBmaintenanceLocal-first nutrition tracker MCP server for Hermes, enabling food, alias, recipe, and meal log management with SQLite persistence.
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Nutrition MCP — wraps Open Food Facts API (free, no auth)
Personal nutrition tracking — log meals, track macros, review history, import from another app.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rockitdev/macro-engine'
If you have feedback or need assistance with the MCP directory API, please join our Discord server