macrolog
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
macrolog
A food diary that lives in the Claude desktop app. You tell Claude what you ate. Claude estimates the calories and macros, and an MCP server stores them in a local SQLite file and keeps the totals. A dashboard shows today's budget, your meals, trend charts and weight. Everything stays on your computer. The full design is in SPEC.md.
Screenshots use the demo data from scripts/seed_demo.py. The dashboard follows your system's light or dark mode.
Install
Mac app (no Python needed)
Download
Macrolog-…-mac-arm64.zip(Apple Silicon) or…-mac-x86_64.zip(Intel) from Releases, unzip it, and drag Macrolog to Applications.Open it. The app isn't signed by Apple yet, so macOS blocks it the first time: click Done, then open System Settings → Privacy & Security, scroll down to "Macrolog was blocked" and click Open Anyway. (Or run
xattr -dr com.apple.quarantine /Applications/Macrolog.apponce.)In the Claude desktop app, open Settings → Developer → Edit Config and add:
{
"mcpServers": {
"macrolog": {
"command": "/Applications/Macrolog.app/Contents/MacOS/Macrolog",
"args": ["mcp"]
}
}
}Opening Macrolog shows the dashboard in its own window. Claude runs the same app in the background (mcp) to log your meals. Both use the same database, so they stay in sync.
With Python (any OS)
pipx install macrolog # or: pipx install "macrolog[app]" to also get the macrolog-app window
which macrolog-mcp # use this full path as "command" in the config above, without "args"On Windows the path looks like C:\\Users\\you\\.local\\bin\\macrolog-mcp.exe. Backslashes must be doubled in JSON.
Then
Fully quit the Claude app and open it again.
Click "+" in the chat box, then Connectors. macrolog and its tools should be listed. The app asks for your approval the first time Claude uses each tool.
Say what you ate. The first time, Claude asks about your goal and targets (defaults: maintain weight, 2000 kcal). You can change them later in the dashboard's Settings.
Related MCP server: fatsecret-coach
Configuration
Set these environment variables in an "env": {} block next to "command":
Variable | Default | Meaning |
|
| Path to the database file |
|
| Dashboard port |
|
| Set to |
Dashboard
The Mac app shows the dashboard in a window. The MCP server also serves it at http://127.0.0.1:8765 whenever the Claude app is open, and macrolog-dash starts it on its own. It only accepts connections from 127.0.0.1 and localhost.
Backups and export
Backups: the first time the MCP server connects each day, it writes a copy of the database to
<db folder>/backups/. The last 14 copies are kept. To restore, quit the Claude app and copy a backup over the database file.Export: Settings → Export (CSV) downloads your meals and items, weights, or targets.
Demo data
To try the dashboard without touching your real diary:
python scripts/seed_demo.py # writes ~/.macrolog/demo.db
MACROLOG_DB=~/.macrolog/demo.db MACROLOG_PORT=8799 macrolog-dashThen open http://127.0.0.1:8799. The script won't write to the real database or overwrite an existing file.
Troubleshooting
Check
mcp.logandmcp-server-macrolog.login the Claude app's logs folder:macOS:
~/Library/Logs/ClaudeWindows:
%APPDATA%\Claude\logsLinux:
~/.config/Claude/logs
Run
macrolog-mcp(or/Applications/Macrolog.app/Contents/MacOS/Macrolog mcp) in a terminal to see startup errors.If the dashboard doesn't load, port 8765 may already be in use. Set
MACROLOG_PORTto a different port.
Development
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev,app]"
pytest
pip install pyinstaller && pyinstaller packaging/macrolog.spec # builds dist/Macrolog.appReleasing
Bump version in pyproject.toml, commit, then push a matching tag: git tag v0.2.0 && git push origin v0.2.0. The release workflow publishes to PyPI and attaches Apple Silicon and Intel builds of Macrolog.app to a GitHub release.
One-time setup: on PyPI, add a trusted publisher for this repo (workflow release.yml, environment pypi), and create an environment named pypi in the repo's GitHub settings.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Log meals and read your nutrition diary from Claude or ChatGPT.
Track calories and macros right in Claude or ChatGPT and build a personal nutrition diary
Calorie tracker app for ChatGPT and Claude: read meals, macros, weight and log meals from chat.
Calorie, workout and body-weight log inside ChatGPT and Claude. Log meals by text, photo or voice.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to track daily calorie consumption by logging meals through natural language and searching a comprehensive food database. It provides daily summaries, weekly reports, and persistent SQLite storage to monitor dietary trends and goals.5 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables logging meals, tracking calories and macros, reviewing daily and range summaries, setting weight goals, searching foods and recipes, and getting meal suggestions from any Claude client, with optional multi-user household support. Includes a local food database for items missing from FatSecret and OAuth-based authentication to FatSecret profiles.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to act as the memory and reasoning layer for nutrition tracking, letting users log meals from label photos or descriptions, save foods, recipes, meal-prep containers, and restaurant orders, record weigh-ins, and query targets, progress, and projections as tool calls. All writes are previewed with dry runs, checked for plausibility, and reversible.MIT
- AlicenseAqualityBmaintenanceUnofficial, self-hosted MCP server that connects Claude or ChatGPT to your own FatSecret food diary. It drafts entries from a description, a plate photo or a nutrition label, saves them only after you confirm, and changes or removes entries the same way. It also reads a day or several weeks against your calorie and macro targets.555 PyPI6MIT