macrofactor-mcp

v0.1.1
io.github.NasserAlbusaidi/macrofactor-mcp Checked 20 hours ago Published 4 months ago

Fueling & recovery decision engine combining MacroFactor nutrition with Garmin training data

Values you need

VariableWhat it is
MACROFACTOR_DB_PATHoptional Path to the local DuckDB database (default: ~/.macrofactor/macrofactor.duckdb)
MACROFACTOR_DATA_DIRoptional Directory watched for MacroFactor export files to auto-import (default: ~/Downloads)
GARMINTOKENSoptional Directory holding Garmin Connect auth tokens for optional Garmin sync (default: ~/.garminconnect)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add macrofactor-mcp -- uvx macrofactor-mcp==0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "macrofactor-mcp": {
      "args": [
        "macrofactor-mcp==0.1.1"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "macrofactor-mcp": {
      "args": [
        "macrofactor-mcp==0.1.1"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "macrofactor-mcp": {
      "args": [
        "macrofactor-mcp==0.1.1"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.macrofactor-mcp]
command = "uvx"
args = ["macrofactor-mcp==0.1.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: setup_check, import_export, clear_data, data_status, query, get_nutrition_summary, get_nutrition_range, get_food_log, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json