samsung-health-mcp

v0.5.0
io.github.davidmosiah/samsung-health-mcp Checked 22 hours ago Published 6 months ago

Unofficial local-first MCP server for Samsung Health personal-data CSV/ZIP exports.

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

samsung_health_agent_manifest Samsung Health Agent Manifest

Machine-readable install, runtime and privacy guidance for AI agents operating Samsung Health export data.

ParameterTypeDescription
clientstring
response_formatstring

samsung_health_capabilities Samsung Health MCP Capabilities

Explain supported Samsung Health export data, unavailable live Samsung Health access, privacy modes and recommended agent workflow.

ParameterTypeDescription
response_formatstring

samsung_health_connection_status Samsung Health Connection Status

Check local Samsung Health export path, Node version, privacy mode and Hermes client posture without reading full export data.

ParameterTypeDescription
clientstring
response_formatstring

samsung_health_quickstart Samsung Health Quickstart

Personalized 3-step setup walkthrough for the human user. Adapts to current state (is SAMSUNG_HEALTH_EXPORT_PATH set? does the export folder/CSV/zip exist and parse?). Call this first when the user asks 'how do I connect Samsung Health?'. This connector is local-first and never touches Samsung, Health Connect, or any cloud API.

ParameterTypeDescription
response_formatstring

samsung_health_demo Samsung Health Demo

Returns realistic example payloads of samsung_health_daily_summary, samsung_health_weekly_summary, and samsung_health_wellness_context with Galaxy-Watch-style values, so agents see the contract before parsing a real export.

ParameterTypeDescription
response_formatstring

samsung_health_privacy_audit Samsung Health Privacy Audit

Return the local privacy and export-file posture without revealing health data.

ParameterTypeDescription
response_formatstring

samsung_health_list_records List Samsung Health Records

List bounded records from local Samsung Health CSV/ZIP export data. Use type/start/end filters to keep output small.

ParameterTypeDescription
endstringOptional ISO date/time upper bound.
incremental_cachebooleanWhen true and `type` is set, skip records already seen in a previous call (per-category cache at ~/.samsung-health-mcp/incremental-cache.json). Cache auto-invalidates when the export file mtime change…
limitinteger
privacy_modestring
response_formatstring
startstringOptional ISO date/time lower bound.
typestringSamsung Health record type, e.g. samsung_health_steps.

samsung_health_list_workouts List Samsung Health Workouts

List bounded workout records from local Samsung Health CSV/ZIP export data.

ParameterTypeDescription
endstringOptional ISO date/time upper bound.
limitinteger
privacy_modestring
response_formatstring
startstringOptional ISO date/time lower bound.

samsung_health_export_freshness Samsung Health Export Freshness

Check how recently the local Samsung Health export directory/CSVs were written. Returns mtime, days_since_export, an is_stale flag, and a recommendation. Considered stale if the export is older than 30 days, or older than 7 days with no recent records (the inventory's latest-record date is also older than 7 days). Use before relying on samsung_health_daily_summary or samsung_health_wellness_context to confirm the export is fresh.

ParameterTypeDescription
response_formatstring

samsung_health_data_inventory Samsung Health Data Inventory

Scan the local Samsung Health export once and report available record types, workouts, date coverage, freshness and safe next calls.

ParameterTypeDescription
endstringOptional ISO date/time upper bound.
privacy_modestring
response_formatstring
startstringOptional ISO date/time lower bound.
timezonestringIANA timezone, e.g. America/Fortaleza. Defaults to SAMSUNG_HEALTH_TIMEZONE or UTC.

samsung_health_daily_summary Samsung Health Daily Summary

Build a daily wellness summary from local Samsung Health export data. It is not live Samsung Health and not medical advice.

ParameterTypeDescription
datestringYYYY-MM-DD local date. Defaults to today in the configured timezone.
response_formatstring
timezonestringIANA timezone, e.g. America/Fortaleza. Defaults to SAMSUNG_HEALTH_TIMEZONE or UTC.

samsung_health_wellness_context Samsung Health Wellness Context

Normalize local Samsung Health export sleep, workout and activity data into the shared wellness_context shape for recommendation engines.

ParameterTypeDescription
datestringYYYY-MM-DD local date. Defaults to today in the configured timezone.
injury_flagsarray
notesstring
response_formatstring
sorenessarray
timezonestringIANA timezone, e.g. America/Fortaleza. Defaults to SAMSUNG_HEALTH_TIMEZONE or UTC.

samsung_health_weekly_summary Samsung Health Weekly Summary

Build a weekly wellness summary from local Samsung Health export data. It is not live Samsung Health and not medical advice.

ParameterTypeDescription
daysinteger
end_datestringYYYY-MM-DD local end date. Defaults to today in the configured timezone.
privacy_modestring
response_formatstring
timezonestringIANA timezone, e.g. America/Fortaleza. Defaults to SAMSUNG_HEALTH_TIMEZONE or UTC.

samsung_health_profile_get Get Delx Wellness Profile

Read the shared Delx Wellness profile from ~/.delx-wellness/profile.json. Returns preferred name, goals, devices, training/nutrition/exercise/agent preferences and safety flags. NEVER contains OAuth tokens or API secrets — this connector is local-export and has no cloud auth, but the profile contract is the same across every Delx Wellness MCP. Read-only.

ParameterTypeDescription
response_formatstring

samsung_health_profile_update Update Delx Wellness Profile

Persist a partial patch to ~/.delx-wellness/profile.json. Requires explicit_user_intent=true (otherwise returns USER_ACTION_REQUIRED). Rejects secret-like fields (oauth, token, secret, password, cookie, refresh, api_key, session) at write time. Use to record preferred name, goals, devices, training context, nutrition context, exercise preferences, agent preferences, and safety flags.

ParameterTypeDescription
patch *objectPartial WellnessProfileDocument patch. Top-level keys: profile, goals, devices, training, nutrition, preferences, safety, notes.
explicit_user_intentbooleanMust be true to persist. Prevents accidental writes from agent inference.
response_formatstring

samsung_health_clear_incremental_cache Clear Samsung Health Incremental Import Cache

Manually clear the incremental import cache at ~/.samsung-health-mcp/incremental-cache.json. The cache tracks the latest parsed timestamp per Samsung Health record category so subsequent `samsung_health_list_records` calls (with `incremental_cache: true`) skip already-seen records. Use this when you want to force a full re-parse without changing the export file. The cache also auto-invalidates when the export file mtime changes.

ParameterTypeDescription
response_formatstring

samsung_health_reimport Reimport Samsung Health Export from Watch Folder

Re-scan the configured watch folder (SAMSUNG_HEALTH_WATCH_PATH or `setup --watch-path <dir>`) for a newer Samsung Health export. If a newer SamsungHealth folder / *.csv / *samsung*health*.zip is found, it is promoted to the active export, the in-memory snapshot cache and incremental cache are cleared, and subsequent summaries reflect the new data. With check_only=true, only report what would happen without promoting. This is the cross-platform recurring-refresh path — the native Android Health Connect bridge needs an Android device and is separate.

ParameterTypeDescription
check_onlybooleanWhen true, report the watch-folder status without promoting a new export.
forcebooleanWhen true, re-promote the newest export in the folder even if it already matches the active export (forces a cache refresh).
response_formatstring

samsung_health_onboarding Delx Wellness Onboarding Flow

Return the 11-question onboarding flow plus the current profile state and missing fields. Read-only — does NOT persist anything. Pair with samsung_health_profile_update once the user answers. Cross-connector: the same profile is shared by every Delx Wellness MCP (whoop, garmin, oura, fitbit, strava, polar, withings, apple-health, samsung-health, google-health, nourish, cycle-coach, cgm, air).

ParameterTypeDescription
localestringOnboarding locale. Defaults to en.
response_formatstring