Health Data (your own Supabase)
v0.1.3Your health data (weight, macros, weigh-ins) as MCP tools — in your own Supabase, zero custody.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_schema Get schema
The Postgres schema (two tables) and the metric registry (names, units, classes). Call before writing SQL for the query tool.
get_sync_status Get sync status
Latest date, row count, and days-since-last-entry per metric. Use to detect a stalled daily sync before trusting an analysis. days_since is measured against the UTC calendar date, so a healthy daily sync typically reads 1–2 (never 0 in the evening US time); treat 3+ as a stalled sync.
get_recent Get recent rows
Rows for the last N days (default 30), optionally one metric. Daily totals and individual measurements in one date-sorted list.
| Parameter | Type | Description |
|---|---|---|
days | integer | |
metric | string | One of the registry metrics; omit for all. |
get_daily_summary Get daily summary
All metrics for one day (default: the most recent day with any data): totals plus every weigh-in/measurement.
| Parameter | Type | Description |
|---|---|---|
date | string |
get_stats Get stats
Min/max/avg plus a rolling-average series for one metric over a date range. rollup: daily (7-day rolling), weekly, monthly (rolling window = 7 periods). Measurements average multiple samples per day first.
| Parameter | Type | Description |
|---|---|---|
end * | string | |
metric * | string | |
start * | string | |
rollup | string |
query Run read-only SQL
Escape hatch: run one read-only SQL statement (SELECT or WITH…SELECT) against the schema from get_schema. Writes/DDL/PRAGMA are rejected; LIMIT 500 enforced when absent. Use for anything the other tools can't answer.
| Parameter | Type | Description |
|---|---|---|
sql * | string | A single SELECT/WITH statement. |
get_energy_inputs Get energy-model inputs
Daily (date, weight, kcal) entries for days having BOTH a calorie total and at least one weigh-in — shaped exactly for the fitness-tools `adaptive-tdee` tool. Pass the returned `entries` array straight through to compute measured TDEE. Weight is the day's average in lb.
| Parameter | Type | Description |
|---|---|---|
window_days | integer | Trailing window (default 90 days). |