MCP server for the Google Health API, with a local SQLite cache and trend analysis.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
MCP server for the Google Health API, with a local SQLite cache and trend analysis.
Designed for Claude Code and other MCP clients. Your data syncs to a database on your own machine, so queries are fast, work offline, and cost no API quota.
doctor - diagnoses a setup offline and read-only, without spending quota| Tool | Data |
|---|---|
health_get_heart_rate | Resting heart rate |
health_get_activity | Steps, calories, distance, floors |
health_get_exercises | Workouts (name, duration, heart rate, calories) |
health_get_sleep | Duration, stages, sleep period |
health_get_weight | Weight, body fat % |
health_get_spo2 | Nightly blood oxygen saturation |
health_get_hrv | Heart rate variability (RMSSD) |
health_get_azm | Active zone minutes, with the per-zone breakdown |
health_get_breathing_rate | Nightly breaths per minute |
health_get_skin_temperature | Nightly variation from your baseline, and the absolutes behind it |
health_get_core_temperature | Body temperature readings you logged by hand |
health_get_cardio_fitness | VO2 max, where the device reports it |
health_get_food_log | Food calories and water, where logged |
health_get_ecg | Electrocardiograms: classification, average rate, duration, waveform on request |
health_get_irregular_rhythm | Irregular-rhythm notifications and the windows that triggered them |
health_get_devices | Paired devices, battery level, last sync |
health_get_lifetime_stats | Totals and best days over the cached history, with its coverage |
health_trends | Aggregated averages and period comparisons |
Or run it without installing, in which case every google-health-mcp ... command you run below becomes uvx google-health-mcp ...:
Every user registers their own OAuth client. This is seven console steps, and the page names are Google's as of August 2026.
Google's own setup page will send you somewhere else - follow the steps below instead. Its quick-start builds a Web client with https://www.google.com as the redirect URI, which suits the OAuth Playground rather than a program running on your machine; this server refuses that file and says so. Use that page only to check whether one of the pages below has been renamed.
403: access_denied.Step 7 is the one that bites, and it is worth checking rather than assuming. While an app's publishing status is Testing, Google issues refresh tokens that expire seven days after consent - so everything works, and then syncing stops a week later with nothing pointing back to this moment. The Audience page can read "In production" while the token server disagrees. Two readings that do not: the verification-status line on the Branding page, and google-health-mcp doctor, which fails loudly when the stored token records a short expiry.
Put the downloaded client JSON where the server looks for it, unedited:
Your browser will warn that Google hasn't verified this app. That is expected, and the app is your own: these health scopes are classified restricted, and verification only matters above 100 users. Click Advanced, then Go to google-health-mcp (unsafe), and grant the scopes.
The flow listens on localhost:8081 for the callback, so that port must be free. It saves tokens to ~/.config/google-health-mcp/google_tokens.json, created 0600 on POSIX. Windows keeps only the owner-write bit, as its read-only attribute, and governs access by ACLs - so there the file is not restricted to your account, and what it grants is whatever its directory's ACLs pass down. Access tokens last an hour and refresh automatically. Refresh tokens do not rotate, so a token minted on a machine with a browser can be copied to a headless one.
If you authorised before publishing the app, re-run google-health-mcp auth afterwards: publishing does not extend a token already granted, and that one still expires after seven days.
Running it with uvx instead: claude mcp add -s user google-health -- uvx google-health-mcp.
Worth running before step 3 (Authorise) as well as after: it reports whether port 8081 can be bound and whether this host can open a browser, which are the two ways auth fails before it starts.
Offline and read-only: it reports which paths resolved where, whether the credential files are the right shape, whether the token is short-lived, and whether the cache is being kept up to date.
doctor --json reports the same findings for a monitor to act on:
The payload goes to stdout; logging goes to stderr, so a subprocess consumer should read the two separately.
Match on check, never on name or detail: the first is a stable identifier, the other two are prose and carry the data type. check is null for findings nothing consumes programmatically yet.
The exit code is 1 only when something is graded fail, in both formats - a warning never changes it, which is the reason this flag exists: a stopped data series is a warning, so the exit code alone cannot tell you about the one failure most worth watching for.
Check version before trusting an absent check. A release older than this one omits the field entirely and an older one still rejects --json and exits 2, so "no stopped-series finding" and "this build cannot report one" look identical without it. version is itself null when the package is run from a source tree with no installed distribution metadata - the payload is still emitted, since a diagnostic that dies on a half-configured install is worthless exactly when it is needed.
The payload names the resolved config, database and credential paths, the same way the text report does. That is deliberate - it is what makes a wrong-path setup diagnosable - but a consumer that forwards the payload off the machine is disclosing them. No credential values appear in either format.
Query tools sync on first use each day, so you can skip this. To pre-populate the cache, or to pull history older than it:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/google-health-mcp-2)<a href="https://allmcps.com/mcp/google-health-mcp-2"><img src="https://allmcps.com/api/badge/google-health-mcp-2?style=directory" alt="Google Health MCP on AllMCPs" /></a>