Skip to main content

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.

Macrolog dashboard: today's calories left with a progress ring, macro bars, the weekly budget, today's meals and a six-month record
Trends: averages, calorie and protein charts, macro split, body weight, meal types and top foods Macrolog trends: stat tiles, calories per day, protein per day, calories from each macro, body weight, calories by meal type 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)

  1. Download Macrolog-…-mac-arm64.zip (Apple Silicon) or …-mac-x86_64.zip (Intel) from Releases, unzip it, and drag Macrolog to Applications.
  2. 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.app once.)
  3. 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

  1. Fully quit the Claude app and open it again.
  2. 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.
  3. 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.log and mcp-server-macrolog.log in the Claude app's logs folder:
    • macOS: ~/Library/Logs/Claude
    • Windows: %APPDATA%\Claude\logs
    • Linux: ~/.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_PORT to 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for macrolog 0.1.1
File Size Uploaded Provenance Actions
macrolog-0.1.1.tar.gz 119.9 kB With provenance Details for macrolog-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for macrolog 0.1.1
File Interpreter ABI Platform Actions
macrolog-0.1.1-py3-none-any.whl Python 3 none any Details for macrolog-0.1.1-py3-none-any.whl

Total release size: 233.8 kB

Release files / macrolog-0.1.1.tar.gz

Download URL macrolog-0.1.1.tar.gz
Size 119.9 kB
Tags Source
SHA-256 checksum
How to use checksums
716e0e86e34a02094a0b428505b83b7d01a855c5d3e812fe41aaa353e3f8a77c
BLAKE2b-256 checksum
How to use checksums
2e54584641f9ea1ee826a453f7080496a884a0f65fccc19bc0ae8afaa8cb955a
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 log

Release files / macrolog-0.1.1-py3-none-any.whl

Download URL macrolog-0.1.1-py3-none-any.whl
Size 113.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16c0db0d5c5d15cbc1355891cf0cdcc1ad2280028ecaf1f8239cc17e4b5412cd
BLAKE2b-256 checksum
How to use checksums
aada11d9e418490ffe1b300bb121b235fc839aed84280b0395af4d7524d18d60
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 log

Security for macrolog 0.1.1

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.

Select from 2 files

Attestation for macrolog-0.1.1.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 log

A 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page