Macrofactor MCP
Fueling & recovery decision engine combining MacroFactor nutrition with Garmin training data
Connector by NasserAlbusaidi · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/nasseralbusaidi-macrofactor-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
- Tools
- 21 read · 2 write · 1 delete · 5 not yet classified
- Secrets
- None asked for
- Install scripts
- Not scanned yet
- Runs as
- Python package
Tools by what they do 29
Read from the source code; the running server may list different tools.
Read 21 · Look things up without changing anything.
analyze_meal_patternsdata_statusdetect_phasesgarmin_statusget_combined_dataget_compliance_reportget_digestget_exercise_progressget_food_logget_insightsget_muscle_group_summaryget_nutrition_range
Show 9 more tools
get_nutrition_summaryget_weight_trendget_workout_historyget_workout_loglist_exercisesrecovery_checksearch_foodsetup_checksleep_analysis
Write 2 · Create, change, send or run things.
import_exportsync_garmin
Delete 1 · Delete, drop, revoke or wipe things.
clear_data
Not yet classified 5 · We could not tell from the name and description.
body_comp_trenddaily_briefingnutrition_performance_correlationqueryweekly_report
Secrets and settings it asks for
Other settings (environment variables or headers).
GARMINTOKENSMACROFACTOR_DATA_DIRMACROFACTOR_DB_PATH
Files it touches
- Any path the agent passes to its tools
Tools (29)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
analyze_meal_patternsAnalyze meal timing, frequency, and which foods correlate with hitting targets. Shows when you eat, how many meals per day, most frequent foods, and which foods appear most on days where you hit your calorie and protein targets. Args: start_date: Start date (YYYY-MM-DD). Default: 30 days ago. end_date: End date (YYYY-MM-DD). Default: today. limit: Max foods to show per category (default 15).
body_comp_trendTrack body composition over time — weight, body fat, training volume, energy balance. Answers: am I gaining muscle or fat? Combines weight trend with body fat, training volume, and calorie surplus/deficit. Args: start_date: Start date (YYYY-MM-DD). Default: 90 days ago. end_date: End date (YYYY-MM-DD). Default: today.
clear_dataClear all imported data so you can reimport fresh exports.
daily_briefingComplete day view combining MacroFactor nutrition + Garmin health data. The cross-data tool — shows nutrition, adherence, body, activity, sleep, and training in one view. No API calls — reads from DuckDB. Args: date_str: Date in YYYY-MM-DD format. Empty = today.
data_statusCheck what data is currently loaded — date ranges, row counts, last import.
detect_phasesAuto-detect cut/bulk/maintenance phases from weight trend and energy balance. Analyzes the full history and identifies distinct phases based on trend weight direction and caloric balance. Each phase shows duration, weight change, and average deficit/surplus. Args: min_days: Minimum days for a phase to be reported (default 14).
garmin_statusQuick Garmin health snapshot for a date. No API calls — reads from synced DuckDB data. Combines daily stats, sleep, and training status in one view. Run sync_garmin first to populate data. Args: date_str: Date in YYYY-MM-DD format. Empty = today.
get_combined_dataUnified cross-domain query — returns merged nutrition + health data by date. One call replaces multiple tool calls. Returns all requested domains in one payload. Args: start_date: Start date (YYYY-MM-DD). Default: 7 days ago. end_date: End date (YYYY-MM-DD). Default: today. domains: List of domains to include. Options: nutrition, weight, sleep, training, activity, workouts. Default: all.
get_compliance_reportCompare actual intake vs targets over a date range. Shows adherence. Args: start_date: Start date (YYYY-MM-DD) end_date: End date (YYYY-MM-DD)
get_digestGet a comprehensive weekly or monthly digest combining nutrition, weight, training, and adherence. One call instead of five — gives a complete picture of a period. Args: period: "week" (last 7 days) or "month" (last 30 days). end_date: End date (YYYY-MM-DD). Default: today.
get_exercise_progressTrack progress for a specific exercise over time. Args: exercise: Exercise name (case-insensitive, partial match). metric: One of: estimated_1rm, estimated_3rm, estimated_10rm, total_volume, best_set_volume, heaviest_weight, total_reps, best_set_reps, total_sets, total_duration, best_set_duration, total_distance, best_set_distance. limit: Max data points to return (default 20, most recent).
get_food_logGet all foods logged on a specific date. Args: date_str: Date (YYYY-MM-DD). Default: today.
get_insightsGet personalized insights based on your nutrition, training, sleep, and recovery data. Analyzes cross-domain patterns specific to YOUR data. Includes: - Current state (phase, weight trajectory, weekly nutrition pacing) - Trend alerts (sleep, HRV, body battery, compliance changes) - Personal correlations (what actually affects YOUR recovery) - Actionable recommendations prioritized by urgency - Sparkline trends for key metrics Works best with both MacroFactor and Garmin data synced. No arguments needed — analyzes everything automatically.
get_muscle_group_summaryGet muscle group sets and volume summary. Defaults to last 7 days. Args: start_date: Start date (YYYY-MM-DD) end_date: End date (YYYY-MM-DD)
get_nutrition_rangeGet daily nutrition data for a date range. Args: start_date: Start date (YYYY-MM-DD) end_date: End date (YYYY-MM-DD)
Show 14 more tools
get_nutrition_summaryGet nutrition summary for a specific date. Args: date_str: Date in YYYY-MM-DD format. Empty = today.
get_weight_trendGet weight trend data. Defaults to last 30 days. Args: start_date: Start date (YYYY-MM-DD). Default: 30 days ago. end_date: End date (YYYY-MM-DD). Default: today.
get_workout_historyGet a summary of all workouts in a date range. Defaults to last 30 days. Args: start_date: Start date (YYYY-MM-DD) end_date: End date (YYYY-MM-DD)
get_workout_logGet workout details for a specific date. Args: date_str: Date (YYYY-MM-DD). Default: most recent workout.
import_exportImport a MacroFactor .xlsx export file into the database. Supports both Quick Export and All-Time Data formats. If filename is empty, auto-detects the most recent .xlsx in the data directory. Args: filename: Path to .xlsx file, or empty to auto-detect.
list_exercisesList all tracked exercises with available metrics.
nutrition_performance_correlationCorrelate nutrition intake with next-day training metrics. Shows whether protein/calorie intake patterns affect next-day body battery, HRV, and workout performance. Splits days into high/low intake buckets. Args: start_date: Start date (YYYY-MM-DD). Default: 30 days ago. end_date: End date (YYYY-MM-DD). Default: today.
queryRun a custom SQL query against the MacroFactor database. Available tables: - daily: date, calories, macros, targets, weight, expenditure, steps, micros - food_log: date, time, food details (from Quick Export) - workouts: date, exercise, sets, reps, weight (from Quick Export) - muscle_sets: date, muscle_group, sets - muscle_volume: date, muscle_group, volume_kg - exercise_tracking: date, exercise, metric, value (from All-Time) - body_metrics: date, metric, value - custom_foods: food_name, nutrition info - nutrition_targets: program_date, weekday, targets - food_log_notes: d…
recovery_checkReadiness assessment — should you train hard today? Combines last night's sleep, body battery, training load ratio, and yesterday's nutrition compliance into a single readiness view. Args: date_str: Date to check (YYYY-MM-DD). Default: today.
search_foodSearch logged foods by name across all dates. Also searches custom foods if no log results found. Args: query: Search term (case-insensitive). limit: Max results (default 20).
setup_checkCheck local setup and explain the easiest next action. Use this first when the MCP seems empty, stale, misconfigured, or when you are not sure which tool to call next. Args: show_workflows: Include common question-to-tool workflows.
sleep_analysisAnalyze what affects sleep quality — prior-day training, calories, timing. Correlates sleep scores with training intensity, total calories, and meal timing from the preceding day. Args: start_date: Start date (YYYY-MM-DD). Default: 30 days ago. end_date: End date (YYYY-MM-DD). Default: today.
sync_garminSync Garmin health data into local DuckDB for fast cross-queries with MacroFactor data. Pulls daily stats, activities, sleep, training status, and body fat from Garmin Connect for the last N days. Data is upserted (idempotent). Args: days: Number of days to sync (default 7).
weekly_reportComprehensive 7-day report — nutrition, workouts, sleep, body, activity in one call. Includes daily detail for weight and nutrition, full workout breakdown with merged MacroFactor + Garmin strength data, sleep trends, and training load. Args: end_date: Last day of the week (YYYY-MM-DD). Default: today.
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Weekly downloads
- 30
- Last commit
- Jul 10, 2026 (3 months ago)
- Last release
- Jul 10, 2026 (3 months ago)
- Last package publish
- Jul 10, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.NasserAlbusaidi/macrofactor-mcp- Version
- 0.1.1
- Auth
- No auth
- Packages
- pypi macrofactor-mcp
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
Macrofactor MCP. Agent Mart. https://agentmart.dev/connectors/nasseralbusaidi-macrofactor-mcp (last updated 2026-10-24)