Google Health MCP
Provides tools for reading Google Health API v4 data, generating daily health summaries, retrieving account and profile data, creating updating and deleting supported health records, exporting exercise TCX routes, reading shared health links, and optionally managing webhook configuration.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Google Health MCP
A personal, self-hosted MCP server for Google Health API v4. Use it from an MCP-compatible assistant to read your health data, calculate careful summaries, and create or edit only the record types Google documents as writable.
The project has two ways to run:
Local stdio: runs on your computer and uses a Google OAuth Desktop client.
Remote Worker: an optional Cloudflare Worker with its own MCP OAuth flow and a separate Google Health authorization. The deployed endpoint is intended for one allowed Google account.
The public source repository contains no credentials or user health records. A public repository does not make a deployment or account public.
What it supports
The checked-in capability snapshot contains all 44 Google Health data type entries in the official catalog and endpoint metadata generated from the official v4 and v4beta discovery documents. The generic data tool respects each type's allowed operations; a type is not writable just because another type is.
Tool | Purpose |
| Reconciled sleep plus Google's daily rollups for the requested local date and timezone |
| List, fetch, reconcile, or aggregate a documented health data type with pagination and date filters |
| Read identity, profile, settings, paired devices, and IRN profile |
| Create one supported record from user-supplied values |
| Patch one supported, exact record |
| Delete exact record names after explicit confirmation in the tool input |
| Update supported profile or settings fields |
| Export a supported exercise route |
| Read a user-provided SMART Health Link |
| Optional project-level webhook reads (local opt-in only) |
| Optional project-level webhook writes (local opt-in only) |
| Optional project-level webhook deletion (local opt-in only) |
Daily summaries use Google's own rollups where available; raw overlapping sources are not blindly added. Missing data stays missing rather than being represented as zero. Sleep summaries distinguish session time and stages and include completeness information. Results preserve API units and dates.
The Google data type catalog does not expose native step or sleep goals through this project's supported user API methods. This server does not invent or write those goals. Webhook administration requires the broad cloud-platform permission and is disabled by default.
See the complete data type and supported operation list.
Read the architecture notes for the local/remote authorization split and request lifecycle.
Related MCP server: shaughv-health-mcp
Requirements
Node.js 22.12 or newer
npm
A Google Cloud project with Google Health API enabled and an OAuth client
For remote hosting only: a Cloudflare account, Wrangler login, and a free KV namespace for OAuth state/grants
Local setup
In Google Cloud, configure the OAuth consent screen for your own use and create an OAuth client ID → Desktop app. Download the client JSON to a private location outside this repository.
Enable Google Health API for the project. No Google Cloud service account is used.
Install and build:
npm ci npm run buildAuthorize read access. This opens Google's consent screen and stores an authorized-user refresh token under your user profile, outside the project:
npm run auth -- --client-secrets C:\path\to\client_secret.jsonBefore opening Google sign-in, the terminal displays how data flows and asks you to type
AUTHORIZE. The Google consent screen then shows the requested scopes.Add
--writeonly if you want the local MCP server to write supported record types. Add--project-adminonly if you intentionally want the opt-in project webhook tools. These two switches request additional Google permissions.Check the saved authorization by running:
npm run doctorStart the local server:
npm run serve
Configure your local MCP client to launch node with the absolute path to dist/stdio.js as its argument. Example:
{
"mcpServers": {
"google-health": {
"command": "node",
"args": ["C:/path/to/GoogleHealthMCP/dist/stdio.js"]
}
}
}For local project webhook tools, set GOOGLE_HEALTH_ENABLE_PROJECT_ADMIN=true and GOOGLE_HEALTH_PROJECT_NUMBER in the MCP process environment. The OAuth credentials must also have been granted project-admin scope using --project-admin.
Remote Cloudflare Worker
The Worker is optional. It uses Cloudflare's maintained OAuth Provider for MCP authorization and Google OAuth for upstream access. The two grants are separate: the MCP client receives only an MCP token, while the Worker keeps the Google refresh token in encrypted OAuth grant properties. A verified Google email is checked against HEALTH_ALLOWED_EMAIL before issuing the authorization.
Configure
Set the Worker name and deploy account in Wrangler if needed:
npx wrangler login npx wrangler whoamiCreate the OAuth KV namespace and copy its ID into
wrangler.jsoncunderkv_namespaces:npx wrangler kv namespace create OAUTH_KVCreate a Google OAuth Web application client. Once you know the Worker URL, add this exact authorized redirect URI:
https://<worker-name>.<your-subdomain>.workers.dev/google/callbackEnable Google Health API. The Worker requests OpenID email identity plus Google Health read permissions; MCP write permission is separately requested by the MCP client. Project-wide IAM scopes remain unavailable through the remote Worker.
Store the deployment URL and allowed Google account as Worker secrets.
MCP_RESOURCEmust be the full HTTPS Worker URL ending in/mcp;HEALTH_ALLOWED_EMAILmust be the exact account allowed to authorize this personal deployment:npx wrangler secret put MCP_RESOURCE npx wrangler secret put HEALTH_ALLOWED_EMAILAdd the Google client values as Worker secrets (never as
vars):npx wrangler secret put GOOGLE_CLIENT_ID npx wrangler secret put GOOGLE_CLIENT_SECRETKeep all four values in Cloudflare's secret store. The repository has no account-specific Worker variables.
Verify the package, run locally if desired, then deploy only when you intend to publish the endpoint:
npm run typecheck npm test npm run worker:dry-run npx wrangler deploy
Cloudflare KV is required for OAuth authorization state and token/grant records. Ordinary personal use targets Workers Free and KV Free limits, but actual free-tier eligibility, account quotas, Worker CPU use and Google OAuth eligibility depend on the account and must be checked in Cloudflare/Google dashboards. This repository does not deploy automatically. The present verification is a local dry run, not a live deployment or measured production CPU result.
For local Worker development, copy .dev.vars.example to .dev.vars; edit only the synthetic loopback resource and test email unless you are intentionally testing the complete OAuth callback. .dev.vars is ignored by Git.
After deployment, configure the MCP client with the Worker endpoint https://<worker-name>.<your-subdomain>.workers.dev/mcp and complete both consent steps. If the account uses Google OAuth Testing mode, refresh tokens can expire under Google's testing rules; configure the OAuth audience appropriately for personal use and verify the current Google policy.
ChatGPT
From ChatGPT on the web, open Plugins → Add custom MCP server, enter the deployed /mcp URL, and complete the server OAuth flow followed by the Google Health consent flow. Review the discovered tools before enabling them. OpenAI's current plan availability differs: its Help Center says full read/write MCP access is available on Business, Enterprise, and Edu, while Pro is limited to read/fetch; Plus availability is not promised. Check the current ChatGPT custom MCP requirements for your account before relying on write tools. The local stdio mode can also be used with other MCP clients such as Codex.
Supported permissions and data
Local authorization is read-only by default. --write requests the documented write scopes for available types, but Google may not permit create/update/delete for every type. Each call is capability checked against the checked-in Google documentation snapshot and request schemas from the API discovery documents. Remote authorization has mcp:read and optional mcp:write scopes; a write-only Google scope is rejected unless the MCP grant also has mcp:write.
get_health_data takes a type slug from spec/data-types.json. Use date bounds to keep result sizes manageable. Pagination returns page tokens and the server limits pages/response sizes. Aggregation date limits are validated before requests. The API's supported operations and filter fields can change; refresh the snapshot and review the diff before adopting an update:
npm run spec:update
npm run docs:data-typesThe tool will not expose arbitrary HTTP calls. Shared Health Links are bearer capabilities: only provide links you intend this assistant to access.
Development and verification
npm ci
npm run format:check
npm run lint
npm run typecheck
npm test
npm run build
npm run worker:dry-runTests use synthetic or mocked data. They do not prove live account permissions or write support. Never run a create, update, or delete tool against real Google Health records unless you intentionally authorized that action.
Privacy and safety
Read PRIVACY.md, SECURITY.md, and the applicable Google Health API developer and user data policy before connecting a model. When you ask an MCP client to retrieve health data, that client receives the returned data for the requested analysis under its own data-handling terms. The server does not store health responses, use them for advertising, sell them, or use them to train a general-purpose AI model. Local credentials remain on the host; remote Google refresh credentials are retained only in the OAuth provider's encrypted grant storage to support ongoing use.
This is personal wellness software, not a medical device. It does not diagnose, treat, or replace a clinician.
API metadata provenance
spec/api-methods.json is generated from the official Google Health v4 and v4beta discovery documents. spec/data-types.json is the reviewed capability snapshot derived from the official data type catalog. Refresh through the script above, check the source URLs/dates, and update tests and documentation when API behavior changes. The THIRD_PARTY_NOTICES.md file acknowledges an MIT-licensed reference project used for comparison; no implementation code was copied from it.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
Hosted Apple Health MCP for Claude and ChatGPT, works outside the US. iPhone app, no local server.
Your Gmail, Calendar, Drive, GitHub, Oura, wallet and confirmed profile facts in any MCP client.
Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
Related MCP Servers
- AlicenseBqualityBmaintenanceA local-first MCP server that enables AI agents to read user-authorized Google Health API v4 data from Fitbit, Pixel Watch, and partners via OAuth, with tokens never leaving the machine.26771 npm84MIT
- FlicenseNot gradedqualityBmaintenanceA remote MCP server that allows trusted LLM assistants to read Google Health/Fitbit data and log nutrition, hydration, and body measurements via the Google Health API.-
- AlicenseNot gradedqualityDmaintenanceA personal MCP server on Cloudflare Workers that connects Claude to Google Health API v4, enabling reading of health data like activity, sleep, heart rate, SpO₂, HRV, and nutrition.MIT
- AlicenseNot gradedqualityCmaintenanceA remote MCP server that gives MCP clients read-only, OAuth-authenticated access to Google Health API data such as activity, sleep, heart, body, nutrition and ECG records. It exposes tools for profiles, paired devices, data points, daily summaries and time-window rollups, and is deployed on Cloudflare Workers.1MIT