fitbitmcp

v0.4.5
io.github.davidmosiah/fitbitmcp Checked 51 minutes ago Published 6 months ago

Privacy-first, unofficial Fitbit MCP server for AI health, sleep, activity and heart-rate agents.

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

fitbit_data_inventory Fitbit Data Inventory

Inventory supported Fitbit data domains, auth scope requirements, privacy boundary and recommended first calls. Does not call Fitbit APIs or expose user data.

ParameterTypeDescription
response_formatstring

fitbit_agent_manifest Fitbit Agent Manifest

Machine-readable install, runtime and client guidance for AI agents. Does not call Fitbit or expose secrets.

ParameterTypeDescription
clientstring
response_formatstring

fitbit_capabilities Fitbit MCP Capabilities

Explain supported Fitbit data, privacy boundaries, recommended agent workflow and project links.

ParameterTypeDescription
response_formatstring

fitbit_quickstart Fitbit Quickstart

Personalized 3-step setup walkthrough for the human user. Adapts to current state (env vars set? token present? what's next?). Call this first when the user asks 'how do I connect Fitbit?'

ParameterTypeDescription
response_formatstring

fitbit_demo Fitbit Demo

Returns realistic example payloads of fitbit_daily_summary, fitbit_wellness_context, and fitbit_get_heart_day so agents see the contract before calling real Fitbit APIs.

ParameterTypeDescription
response_formatstring

fitbit_get_auth_url Get Fitbit OAuth URL

Generate a Fitbit OAuth authorization URL. Use this first when no local token exists.

ParameterTypeDescription
response_formatstring
scopesarrayOptional scope override. Defaults to read-only Fitbit scopes used by this server.
statestringOptional OAuth state value generated by the caller.

fitbit_exchange_code Exchange Fitbit OAuth Code

Exchange a Fitbit OAuth authorization code for local tokens. Tokens are stored locally with 0600 permissions and are never returned.

ParameterTypeDescription
code *stringOAuth authorization code, or a full redirect URL containing ?code=...
response_formatstring

fitbit_get_profile Get Fitbit Profile

Get the authenticated Fitbit user profile. Requires profile scope.

ParameterTypeDescription
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_list_devices List Fitbit Devices

List devices connected to the authenticated Fitbit account. Requires settings scope.

ParameterTypeDescription
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_list_activities Fitbit Activity Logs

List Fitbit activity logs. Supports before/after cursor, pagination and privacy modes. Requires activity scope.

ParameterTypeDescription
afterstringOnly return activities after this time. Converted to Fitbit epoch seconds.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return activities before this time. Converted to Fitbit epoch seconds.
limitintegerFitbit per_page value. Fitbit allows up to 200.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerFitbit page number.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_list_sleep Fitbit Sleep Logs

List Fitbit sleep logs. Supports before/after cursor, pagination and privacy modes. Requires sleep scope. Not medical advice.

ParameterTypeDescription
afterstringOnly return activities after this time. Converted to Fitbit epoch seconds.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return activities before this time. Converted to Fitbit epoch seconds.
limitintegerFitbit per_page value. Fitbit allows up to 200.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerFitbit page number.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_activity Fitbit Activity

Get detailed Fitbit activity log by id. Requires activity scope.

ParameterTypeDescription
id *Fitbit resource id.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_activity_day Fitbit Daily Activity

Get daily activity summary, goals and distances for a date. Requires activity scope.

ParameterTypeDescription
datestringDate as yyyy-MM-dd or today.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_sleep_day Fitbit Daily Sleep

Get sleep logs and stages for a date. Requires sleep scope. Not medical advice.

ParameterTypeDescription
datestringDate as yyyy-MM-dd or today.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_heart_day Fitbit Daily Heart Rate

Get daily heart-rate zones and resting heart rate. Requires heartrate scope. Not medical advice.

ParameterTypeDescription
datestringDate as yyyy-MM-dd or today.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_hrv_day Fitbit Daily HRV

Get HRV summary for a date when available. Requires heartrate scope and supported device/data. Not medical advice.

ParameterTypeDescription
datestringDate as yyyy-MM-dd or today.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_breathing_rate_day Fitbit Daily Breathing Rate

Get breathing-rate summary for a date when available. Requires heartrate scope. Not medical advice.

ParameterTypeDescription
datestringDate as yyyy-MM-dd or today.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_spo2_day Fitbit Daily SpO2

Get SpO2 summary for a date when available. Requires heartrate scope. Not medical advice.

ParameterTypeDescription
datestringDate as yyyy-MM-dd or today.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_weight_day Fitbit Weight Logs

Get weight logs for a date. Requires weight scope. Not medical advice.

ParameterTypeDescription
datestringDate as yyyy-MM-dd or today.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_food_day Fitbit Food Logs

Get food logs for a date. Requires nutrition scope.

ParameterTypeDescription
datestringDate as yyyy-MM-dd or today.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_water_day Fitbit Water Logs

Get water logs for a date. Requires nutrition scope.

ParameterTypeDescription
datestringDate as yyyy-MM-dd or today.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring

fitbit_get_heart_intraday Fitbit Heart Rate Intraday

Get heart-rate intraday samples for a date. Personal apps can access their own intraday data; third-party client/server apps may require Fitbit approval. Requires heartrate scope. Not medical advice.

ParameterTypeDescription
datestringDate as yyyy-MM-dd or today.
detail_levelstring
end_timestringOptional HH:mm end time.
privacy_modestringOptional per-call privacy override. Defaults to FITBIT_PRIVACY_MODE or structured. raw returns upstream Fitbit JSON. summary minimizes sensitive health and profile details.
response_formatstring
start_timestringOptional HH:mm start time.

fitbit_connection_status Fitbit Connection Status

Check local Fitbit config, token file, Node version, privacy mode, cache readiness and optional MCP client readiness without calling Fitbit or exposing secrets.

ParameterTypeDescription
clientstring
response_formatstring

fitbit_cache_status Fitbit Cache Status

Show optional local SQLite cache status. Enable with FITBIT_CACHE=sqlite or FITBIT_CACHE=true.

ParameterTypeDescription
response_formatstring

fitbit_privacy_audit Fitbit Privacy Audit

Return local privacy, cache, token-path and env-presence posture without revealing secret values.

ParameterTypeDescription
response_formatstring

fitbit_revoke_access Revoke Fitbit OAuth Access

Revoke the current Fitbit OAuth grant and delete the local token file. Use only when the user explicitly wants to disconnect Fitbit.

ParameterTypeDescription
response_formatstring

fitbit_daily_summary Fitbit Daily Health Summary

Build a practical daily summary from Fitbit activity, sleep, heart-rate, HRV and weight data when available. Read-only and non-medical.

ParameterTypeDescription
daysintegerLookback window for recent training context.
response_formatstring
timezonestringIANA timezone used only for display, e.g. America/New_York.

fitbit_weekly_summary Fitbit Weekly Health Review

Build a weekly Fitbit scorecard with activity, sleep, heart-rate, HRV availability, bottlenecks and actions. Read-only and non-medical.

ParameterTypeDescription
compare_daysintegerPrior comparison window in days. Use 0 to disable comparison.
daysintegerRecent analysis window in days.
response_formatstring
timezonestringIANA timezone used only for display, e.g. America/New_York.

fitbit_wellness_context Fitbit Wellness Context

Normalize Fitbit sleep and activity load into the shared wellness_context shape for recommendation engines.

ParameterTypeDescription
daysintegerLookback window for normalized Fitbit wellness context.
injury_flagsarray
notesstring
response_formatstring
sorenessarray
timezonestringIANA timezone used only for display, e.g. America/New_York.

fitbit_profile_get Get Shared Wellness Profile

Read the canonical Delx Wellness profile shared with the other wellness MCP connectors (Nourish, Cycle Coach, CGM, etc.). Read-only. Profile stores only what the user typed during onboarding — never OAuth tokens, API keys, or biomarkers.

ParameterTypeDescription
response_formatstring

fitbit_profile_update Update Shared Wellness Profile

Persist a partial patch to the canonical Delx Wellness profile. Requires explicit_user_intent=true after the user confirms they want to save. Rejects secret-like fields (oauth, token, api_key, password, cookie, refresh, session).

ParameterTypeDescription
patch *objectPartial WellnessProfileDocument patch. Top-level keys: profile, goals, devices, training, nutrition, preferences, safety, notes.
explicit_user_intentbooleanSet to true ONLY after the user has explicitly confirmed they want to save this. Otherwise the tool refuses to write.
response_formatstring

fitbit_onboarding Wellness Onboarding Flow

Read-only. Return the 11-question Delx Wellness onboarding flow (en or pt-BR), the current shared profile, missing critical fields, and a cross-connector hint. Use this when the user starts a fresh wellness session and you need to fill out preferred_name, goals, devices, training context, nutrition, preferences, and safety.

ParameterTypeDescription
localestringOnboarding locale. Defaults to en.
response_formatstring