google-health-mcp
Provides tools to access Google Health API data, including steps, heart rate, sleep, exercise, SpO2, weight, and more, allowing AI agents to retrieve health and fitness data from Google Health.
Click on "Install 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-mcpShow my step count for this week"
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 Server
An MCP server that connects any MCP-compatible AI client to the Google Health API, giving you access to your health and fitness data directly in AI conversations.
Runs as a Cloudflare Worker — deploy your own instance in ~10 minutes.
Compatible with Claude, Cursor, Windsurf, Zed, VS Code (Copilot), Continue.dev, and any other MCP-compatible client.
What you can ask
"How many steps did I take last week?"
"Show me my sleep data for the past month"
"What was my resting heart rate trend in May?"
"Summarize my exercise sessions this year"
"How does my SpO2 look over the last 30 days?"
Related MCP server: Google Health MCP
Available tools
Tool | Description |
| Steps, calories and distance for a date range |
| Daily step counts for trend analysis |
| Raw heart rate samples + daily resting HR |
| Logged workouts with duration, distance, type |
| Sleep sessions and stages |
| Blood oxygen saturation readings |
| Weight measurements over time |
| Query any Google Health data type by ID |
| Compare your recent average against a goal |
| Check token health / debug connection issues |
Prerequisites
Cloudflare account (free tier is sufficient)
Google Cloud project with the Health API enabled
Node.js 18+
Setup
1. Clone and install
git clone https://github.com/YOUR_USERNAME/google-health-mcp.git
cd google-health-mcp
npm install2. Enable the Google Health API
Go to Google Cloud Console → APIs & Services → Enable APIs
Search for and enable Google Health API
Go to Credentials → Create OAuth 2.0 Client ID (type: Web application)
Add
http://127.0.0.1:8765/callbackas an authorised redirect URINote your Client ID and Client Secret
3. Create a Cloudflare KV namespace
npm run kv:createCopy the returned id and paste it into wrangler.toml under [[kv_namespaces]].
4. Set secrets in Cloudflare
# A long random string — becomes part of your private connector URL
wrangler secret put MCP_SHARED_SECRET
# From your Google Cloud OAuth client
wrangler secret put GOOGLE_CLIENT_ID
wrangler secret put GOOGLE_CLIENT_SECRET5. Get your Google refresh token
GOOGLE_CLIENT_ID=your-id GOOGLE_CLIENT_SECRET=your-secret npm run token:setupThis opens a browser for Google consent. After approving, copy the printed command and run it:
wrangler kv key put --binding=HEALTH_TOKENS google_refresh_token "your-refresh-token"6. Deploy
npm run deployYour MCP server is now live at:
https://google-health-mcp.<your-workers-subdomain>.workers.dev/mcp/<MCP_SHARED_SECRET>7. Connect your MCP client
Add the URL above as a custom MCP server in your AI client. Some examples:
Claude.ai → Customize → Integrations → Add integration URL
Cursor → Settings → MCP → Add server URL
Windsurf → Settings → MCP Servers → Add
VS Code (Copilot) →
.vscode/mcp.json→ add server entryContinue.dev →
config.json→mcpServersarray
Local development
cp .dev.vars.example .dev.vars
# Fill in .dev.vars with your credentials
npm run devData types
The get_raw_data_points tool accepts any identifier from the Google Health data types reference, e.g. body-fat, vo2-max, blood-glucose.
Security
The MCP endpoint is only accessible via a secret URL — treat it like a password
This server is read-only: it never writes data back to Google Health
Your refresh token is stored in Cloudflare KV, encrypted at rest
Staying up to date
To pull the latest changes and redeploy your instance:
git pull origin main
npm install # only needed if dependencies changed
npm run deployNo re-setup of secrets or KV is needed — those persist across deployments.
If new tools aren't showing up in your AI client after a deployment, disconnect and reconnect the integration — most MCP clients cache the tool list from when you first connected.
If a release changes the Google OAuth scopes (check the CHANGELOG), you'll need to re-run npm run token:setup to get a new refresh token with the updated permissions.
Changelog
See CHANGELOG.md for a full history of releases and what changed in each version.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/akshaygoyal/google-health-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server