wellness-cgm-mcp
Wellness CGM
Pair cgm_meal_response with wellness-nourish meal logs to get 'this meal hit a 72 mg/dL spike at 45min — try protein-first next time'. Levels charges $199/mo for this; here it's an MCP. Sandbox mode lets any agent demo without setup.

Biohackers, T2D users, athletes optimizing carb timing, anyone who wants their AI agent to see meal→glucose response in real time.
Quick Start
npx -y wellness-cgm-mcp doctor
npx -y wellness-cgm-mcp doctor{
"mcpServers": {
"wellness-cgm": {
"command": "npx",
"args": ["-y", "wellness-cgm-mcp"],
"env": {
"DEXCOM_ENV": "sandbox",
"DEXCOM_CLIENT_ID": "<your_id>",
"DEXCOM_CLIENT_SECRET": "<your_secret>",
"DEXCOM_REDIRECT_URI": "http://localhost:3012/callback",
"DEXCOM_ACCESS_TOKEN": "<set_after_authorize>"
}
}
}
}- 01
Sign up at https://developer.dexcom.com (sandbox is free).
- 02
Create an app, register a redirect URI, set DEXCOM_CLIENT_ID/SECRET/REDIRECT_URI.
- 03
Run wellness-cgm authorize → open URL → exchange code for access_token → set DEXCOM_ACCESS_TOKEN.
- 04
Until then, mock mode returns synthetic data with mock=true so agents can demo.
Data Availability
Live EGV (5-minute glucose)
Dexcom v3 API; mock fallback otherwise.
Time-in-range (ADA 70-180)
Computed from EGVs.
Time-in-range (Levels 70-140)
Metabolic-health profile for non-DM users.
GMI (estimated A1C)
Bergenstal 2018 formula: 3.31 + 0.02392 × mean(mg/dL).
CV (variability)
stdev / mean × 100.
Meal response (peak + band)
Pair with wellness-nourish meal logs.
Refresh-token rotation
Lands in v0.2.
FreeStyle Libre (LibreLink Up)
Roadmapped for v0.2.
Agent Tools
Profile and onboarding
- cgm_profile_get
- cgm_profile_update
- cgm_onboarding
Start here
- cgm_quickstart
- cgm_demo
- cgm_glucose_now
Diagnostics
- cgm_connection_status
- cgm_capabilities
- cgm_privacy_audit
- cgm_data_inventory
Reasoning
- cgm_glucose_window
- cgm_daily_summary
- cgm_meal_response
- cgm_authorize_url
Prompts and Resources
Prompts
Resources
- wellness-cgm-mcp://agent-manifest
- wellness-cgm-mcp://capabilities
- wellness-cgm-mcp://privacy-audit