withings-mcp

v0.11.0
io.github.partymola/withings-mcp Checked 1 hour ago Published 25 days ago

MCP server for the Withings Health API with OAuth, local SQLite cache, and trend analysis.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

withings_sync

Sync Withings health data to the local cache. Fetches data from the Withings API and stores it in SQLite for fast offline queries. Run this before using other withings_get_* tools. Syncs incrementally: only fetches data newer than the last sync. First sync fetches the specified number of days of history. Args: data_types: What to sync. Options: "all", "body", "sleep", "activity", "workouts". Comma-separated for multiple, e.g. "body,sleep". Default: "all". days: Days of history for first sync (default: 30). Ignored on subsequent syncs (uses last sync timestamp…

ParameterTypeDescription
data_typesstring
daysinteger

withings_get_activity

Get daily activity summaries (steps, distance, calories, active time). Returns one entry per day from the local cache by default. Run withings_sync first to populate the cache. Args: start_date: Start date as "YYYY-MM-DD", "YYYY-MM", or "30d". Default: 30 days back from the end date or today, whichever is earlier. end_date: End date as "YYYY-MM-DD", "YYYY-MM" (its last day), or "Nd". Default: today. live: If true, fetch from Withings API instead of cache. Returns daily activity data sorted by date, with steps, distance in km, calories, and active minutes…

ParameterTypeDescription
end_date
liveboolean
start_date

withings_get_workouts

Get workout sessions (type, duration, HR, calories). Returns individual workout sessions from the local cache by default. Run withings_sync first to populate the cache. Args: start_date: Start date as "YYYY-MM-DD", "YYYY-MM", or "90d". Default: 90 days back from the end date or today, whichever is earlier. end_date: End date as "YYYY-MM-DD", "YYYY-MM" (its last day), or "Nd". Default: today. category: Filter by workout type, case-insensitive partial match. A value matching none of the categories below is refused, naming the ones your cache…

ParameterTypeDescription
category
end_date
liveboolean
start_date

withings_get_body

Get body composition measurements (weight, fat, muscle, etc.). Returns measurements from the local cache by default. Use live=True to fetch directly from Withings API. Run withings_sync first to populate the cache. Args: start_date: Start date as "YYYY-MM-DD", "YYYY-MM", or "30d" for relative days. Default: 30 days back from the end date or today, whichever is earlier. end_date: End date as "YYYY-MM-DD", "YYYY-MM" (its last day), or "Nd". Default: today. metrics: Comma-separated metric filter, e.g. "weight_kg,fat_pct". Default: all available metric…

ParameterTypeDescription
end_date
liveboolean
metrics
start_date

withings_get_devices

Get connected Withings devices with battery and firmware info. Always fetched live from the Withings API. Returns device type, model name, battery level (high/medium/low), and last session date for each connected device.

withings_get_heart

Get ECG recordings and atrial fibrillation detection results. Always fetched live from the Withings API (not cached due to large signal data). Requires a Withings device with ECG capability (ScanWatch, BPM Core). Args: start_date: Start date as "YYYY-MM-DD", "YYYY-MM", or "30d". Default: 30 days back from the end date or today, whichever is earlier. end_date: End date as "YYYY-MM-DD", "YYYY-MM" (its last day), or "Nd". Default: today. Returns ECG recording list with timestamps, AFib classification (negative/positive/inconclusive), and heart rate. Does not inc…

ParameterTypeDescription
end_date
start_date

withings_get_sleep

Get sleep data (summaries or detailed phases). Summary mode (default): nightly totals with duration, sleep score, HR, respiratory rate, and snoring. From local cache unless live=True. Detail mode (detail=True): minute-by-minute sleep phases (awake, light, deep, REM) with HR and respiratory rate. Always fetched live. Maximum 7 days per request (Withings API limit). Args: start_date: Start date as "YYYY-MM-DD", "YYYY-MM", or "7d". Default: 7 days (detail) or 30 days (summary) back from the end date or today, whichever is earlier. end_date: End date as "YYYY-MM-DD", "YY…

ParameterTypeDescription
detailboolean
end_date
liveboolean
start_date