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.
Trends: averages, calorie and protein charts, macro split, body weight, meal types and top foods
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.
Configuration
Set these environment variables in an "env": {} block next to "command":
| Variable | Default | Meaning |
|---|---|---|
MACROLOG_DB |
~/.macrolog/macrolog.db |
Path to the database file |
MACROLOG_PORT |
8765 |
Dashboard port |
MACROLOG_DASHBOARD |
1 |
Set to 0 to stop the MCP server from also running the dashboard |
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-dash
Then 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/Claude - Windows:
%APPDATA%\Claude\logs - Linux:
~/.config/Claude/logs
- macOS:
- 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.app
Releasing
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.
Metadata
Release files for macrolog 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| macrolog-0.1.0.tar.gz | 119.4 kB | With provenance | Details for macrolog-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| macrolog-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for macrolog-0.1.0-py3-none-any.whl |
Total release size: 232.6 kB
Release files / macrolog-0.1.0.tar.gz
| Download URL | macrolog-0.1.0.tar.gz |
|---|---|
| Size | 119.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81a438764e214363b3f9b2149c83ca4911e760c041a28ab41d82a75457609313
|
|
BLAKE2b-256 checksum How to use checksums |
23a13bf2bd4c245abd08f7437aea621a86af030efc351fca011f538981b31d3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logRelease files / macrolog-0.1.0-py3-none-any.whl
| Download URL | macrolog-0.1.0-py3-none-any.whl |
|---|---|
| Size | 113.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26a44c4cbc7f00010b27d9fb4dac0cb4e15f4c78185daab338eca18f63217039
|
|
BLAKE2b-256 checksum How to use checksums |
c77358a510a2b185421ca2ea1d9878719d89d1334f7ccb2f0da00a52f4032f67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logSecurity for macrolog 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for macrolog-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.