google-health-mcp
This is a private, read-only MCP server for asking AI apps about your Google Health / Fitbit data.
Get a one-day health overview: steps, distance, calories, Active Zone Minutes, floors, resting heart rate, HRV, sleep, and workouts.
Analyze daily or weekly trends and hourly aggregates across many health data types.
Retrieve raw records such as sleep stages, workouts, weight, SpO2, HRV, ECG, and more.
Fetch GPS exercise routes with distance, elevation, heart rate, and optional map points while hiding nearby start/finish areas.
Read profile, settings, goals, paired devices, battery status, last sync, and all readable data types.
It cannot modify data and cannot access food or water logs.
Provides read-only access to Fitbit health and fitness data via the Google Health API v4, including daily summaries, activity and heart-rate rollups, sleep stages, workouts, weight, SpO2, HRV, ECG, profile, goals, and paired devices.
Integrates with the Google Health API v4 to retrieve read-only health data from a linked Google Health/Fitbit account using Google OAuth sign-in.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-health-mcp How did I sleep last night, and how many steps did I get yesterday?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
google-health-mcp
Unofficial. A community project, not made, endorsed or supported by Google or Fitbit.
Ask Claude, ChatGPT or Grok about your Fitbit or Pixel Watch data: "How did I sleep?", "Steps this month?", "Map my last run". A private, read-only MCP server for the Google Health API that runs free on your own Vercel account. It can only read your data, never change it.
Setup
You need a Fitbit or Pixel Watch synced to the Fitbit / Google Health app, plus free Vercel and GitHub accounts. It takes about 10 minutes.
1. Deploy
Click Deploy with Vercel above. Vercel copies this repo to your GitHub, creates a private storage area for your Google sign-in, and asks for one value:
MCP_HTTP_TOKEN: a random password of 32+ characters (a password manager can generate one, or runopenssl rand -hex 32). Your AI apps use it to reach your data. Save it.
2. Connect Google
Open https://YOUR-APP.vercel.app/auth. The first time, it shows a short checklist for creating a Google sign-in, with direct links and your app's exact redirect URI to copy. Then you add two values in Vercel, redeploy, reload the page and sign in with Google.
You don't need Google's app verification for personal use. On the Google Auth Platform Audience page, click Publish app so it is "In production", because sign-ins in "Testing" expire after 7 days. Google then shows a "Google hasn't verified this app" screen at sign-in; click Advanced → Go to (your app). Unverified apps work for up to 100 users. Full verification of health scopes needs a yearly security assessment, which isn't worth it for your own data. If a form asks for links, use https://YOUR-APP.vercel.app as the home page and https://YOUR-APP.vercel.app/privacy as the privacy policy.
3. Connect your AI app
Add your server address, https://YOUR-APP.vercel.app/mcp, as a connector and click Connect. A page on your own server opens and asks for your MCP_HTTP_TOKEN; type it there and click Allow access. The token never goes into a chat, a URL or the app's settings.
Claude (web, desktop, phone): Settings → Connectors → Add custom connector → paste the address → Connect.
ChatGPT: turn on Developer mode under Settings → Apps & Connectors, create a connector with the address and authentication OAuth.
Grok: grok.com/connectors → New Connector → Custom → paste the address → finish the sign-in that opens.
Claude Code:
claude mcp add --transport http -s user google-health https://YOUR-APP.vercel.app/mcp, then run/mcpin Claude Code and choose Authenticate.
Apps without sign-in support can still send the token directly: header Authorization: Bearer YOUR_TOKEN, or the URL https://YOUR-APP.vercel.app/mcp?key=YOUR_TOKEN (the parameter is key). Your app's home page shows all of this with your address filled in.
Related MCP server: google-health-mcp
What it can read
Tool | Answers |
| One day at a glance: steps, calories, Active Zone Minutes, resting heart rate, HRV, sleep, workouts |
| Trends per day or week, up to 90 days |
| Hour-by-hour values, such as heart rate during a run |
| Raw records: sleep stages, workouts, weight, SpO2, HRV, ECG |
| A GPS workout's distance, elevation and heart rate. Map points only on request, with 500 m around the start and finish hidden |
| Profile, units, time zone and goals |
| Devices, battery and last sync |
| Every readable data type |
Food and water logs are not available: the Google Health API has no read permission for them yet.
Skill: better answers (optional)
The google-health-insights skill teaches the AI which tool to use for each question, how to read the raw numbers, how to compare them with your own baseline, and when to suggest seeing a doctor. It's a single file, SKILL.md.
Let your AI install it. Paste this into Claude Code or any coding agent:
Install the google-health-insights skill from https://github.com/gokulkrishh/google-health-mcp.
Download https://raw.githubusercontent.com/gokulkrishh/google-health-mcp/main/skills/google-health-insights/SKILL.md
and save it as ~/.claude/skills/google-health-insights/SKILL.md, creating the folder if needed.
Then confirm the file starts with "name: google-health-insights".Or install it yourself:
Claude Code:
mkdir -p ~/.claude/skills/google-health-insights && curl -fsSL https://raw.githubusercontent.com/gokulkrishh/google-health-mcp/main/skills/google-health-insights/SKILL.md -o ~/.claude/skills/google-health-insights/SKILL.mdStart a new session to load it. It's already active when you work inside this repo.
Claude apps (web, desktop, phone): download
SKILL.md, put it in a folder namedgoogle-health-insights, zip that folder, and upload the zip as a custom skill in claude.ai settings.Other AI apps: any app that supports Agent Skills can use the same folder. For apps without skills, paste the contents of
SKILL.mdinto the app's custom instructions or project instructions.
To update the skill later, run the same command or prompt again.
Grok Bot template
grok-bot/TEMPLATE.md sets up a Health Coach Grok Bot in a few copy-pastes: the connector, its standing instructions, three skills (/daily-health-brief, /weekly-health-review, /recovery-check), and routines for a morning brief and a Sunday review.
Troubleshooting
You see | Fix |
| Open |
| Sign in again at |
| The Google client's redirect URI must exactly match the one shown on |
| Open the Fitbit / Google Health phone app with the same Google account and finish setup. |
401 in your AI app | Disconnect and reconnect it, or check the token you typed matches |
No data for today | Open the Fitbit app to sync. Sleep and resting heart rate appear after a night's wear. |
To disconnect Google, remove the app at https://myaccount.google.com/connections. To lock out your AI apps, change MCP_HTTP_TOKEN and redeploy.
Variable | Purpose |
| Required. Secret your AI apps send (32+ characters). |
| Required. Your Google OAuth web client. |
Blob store | Required on Vercel. Created by the Deploy button; keeps your Google sign-in. |
| Only for custom domains: your public |
| Scopes to request. Default |
| Use a refresh token from elsewhere instead of signing in at |
| GPS points this close to a workout's start or finish are never sent to the AI. Default |
Create the Google client as on the
/authchecklist, but use the redirect URIhttp://127.0.0.1:8765/oauth2callback, and save the downloaded JSON as~/.config/google-health-mcp/credentials.json.npm install, thennpm run auth.Add
node /path/to/google-health-mcp/dist/index.js serveas a local MCP server, for exampleclaude mcp add google-health -s user -- node /path/to/google-health-mcp/dist/index.js serve.
Development
npm test builds and runs the unit tests. See AGENTS.md for how the code is organised. MIT licensed.
Available Tools
7 toolsget_daily_rollupDaily totals over a date rangeARead-only
Aggregated values per day (or per N days) for a data type, e.g. steps per day this week, average heart rate per day, weekly distance. Best tool for trends. Max range is 14 days for heart-rate, active-minutes, total-calories and calories-in-heart-rate-zone, 90 days otherwise.
Inputs: endDate (required), dataType (required), startDate (required), windowDays.
get_daily_summaryDaily health summaryARead-only
One-call overview of a single day: steps, distance, calories, active zone minutes, floors, resting heart rate, HRV, sleep that ended that day, and exercise sessions. Start here for questions like 'how did I do today/yesterday'.
Inputs: date.
get_data_pointsRaw data pointsARead-only
Raw records for a data type, newest first: sleep sessions with stages, exercise sessions, weight entries, daily resting heart rate, HRV, SpO2, ECG and so on. Heart-rate and steps produce many points per day, so prefer the rollup tools for those. Pass nextPageToken back as pageToken to read more. For electrocardiogram the API only filters by start, treated as UTC, and end is ignored.
Inputs: dataType (required), end, start, filter, +2 more.
get_rollupAggregates over fixed time windowsARead-only
Aggregated values over physical-time windows (e.g. heart rate per 60 minutes during a workout, steps per hour today). Use get_daily_rollup for per-day values.
Inputs: endTime (required), dataType (required), startTime (required), windowMinutes (required).
get_user_infoProfile, settings and identityCRead-only
The user's Google Health identity (user IDs), profile (age, height, stride, etc.) and settings (units, time zone, goals).
Inputs: no named parameters.
list_data_typesList Google Health data typesARead-only
Lists every readable Google Health / Fitbit data type, which tools support it, and the maximum rollup range.
Inputs: no named parameters.
list_paired_devicesPaired devicesARead-only
Devices paired to the account (e.g. Fitbit Air, Pixel Watch), with battery and last sync time when available.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct granularity or resource: catalog (list_data_types), one-day overview (get_daily_summary), per-day aggregation (get_daily_rollup), time-window aggregation (get_rollup), raw records (get_data_points), identity (get_user_info), and hardware (list_paired_devices). The only near-overlap, get_daily_rollup vs get_rollup, is explicitly disambiguated in both descriptions ('per-day' vs 'per 60 minutes/hourly').
All seven names follow a clean verb_noun snake_case pattern (list_data_types, get_daily_summary, get_rollup, get_user_info, etc.). Verbs are used consistently and predictably: 'list' for enumerations, 'get' for retrieval.
Seven tools is well-scoped for a read-oriented health data server, with each tool earning its place at a distinct layer (catalog, summary, two rollup granularities, raw points, identity, devices). No redundant or filler tools.
The read surface is thorough: data-type discovery, high-level summary, both rollup granularities, paginated raw points, profile, and paired devices cover the typical query lifecycle. Gaps are minor and likely API-imposed (read-only — no goal/profile updates) and there is no dedicated sleep or heart-rate-zone helper, though get_data_points and get_rollup can reach those.
Related MCP Connectors
Read wearables and lab health data — sleep, activity, workouts, timeseries, lab tests and orders.
Your Google Health data (Fitbit, Pixel Watch): sleep, HRV, readiness and biological age.
Read-only Apple Health data synced from your iPhone: sleep, heart rate, HRV, workouts and trends.
Connect your health, fitness, nutrition, sleep, and wearable data to your AI assistant.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to access and analyze Fitbit health data (activity, sleep, heart rate, weight, profile) via natural language through the Fitbit Web API.7MIT
- AlicenseAqualityCmaintenanceEnables AI agents to securely read and analyze your Google Health data from Fitbit, Pixel Watch, and Health Connect, providing baseline-aware insights, readiness scores, trends, and anomalies while keeping data local and read-only.91MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to read, write, and delete Google Health (Fitbit successor) metrics such as activity, sleep, heart rate, weight, and nutrition, plus log meals with photo-based nutrition estimation.MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude and other MCP clients to query your Fitbit/Pixel Watch health data via the Google Health API, including sleep, heart rate, activity, workouts, and trends with read-only access.MIT