MCP server for Dexcom CGM glucose data - continuous health intelligence for AI agents
Project description
mcp-server-dexcom-health
MCP server for Dexcom CGM glucose data. Enables AI agents to access and analyze continuous glucose monitor data for health intelligence applications.
Features
- Real-time glucose monitoring - Current readings with trend analysis
- Historical data access - Up to 24 hours of glucose history
- Clinical analytics - Time-in-range, GMI, CV%, AGP reports
- Episode detection - Automatic hypo/hyper event identification with detailed context
- Time-block analysis - Identify patterns by time of day
- Persistence layer support - Pass external data for long-term analysis
Tools
| Tool | Description |
|---|---|
get_current_glucose |
Current glucose reading with trend |
get_glucose_readings |
Historical readings (up to 24h) |
get_statistics |
TIR, CV%, GMI, and other metrics |
get_status_summary |
Complete "how am I doing?" summary |
detect_episodes |
Find hypo/hyper episodes |
get_episode_details |
Deep analysis of each episode |
analyze_time_blocks |
Patterns by time of day |
check_alerts |
Real-time threshold alerts |
export_data |
Export for external storage |
get_agp_report |
Clinical AGP report |
Installation
# Using uvx (recommended)
uvx mcp-server-dexcom-health
# Using pip
pip install mcp-server-dexcom-health
Configuration
Set environment variables:
| Variable | Required | Description |
|---|---|---|
DEXCOM_USERNAME |
Yes | Dexcom username, email, or phone (+1234567890) |
DEXCOM_PASSWORD |
Yes | Dexcom password |
DEXCOM_REGION |
No | us (default), ous (outside US), or jp (Japan) |
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"dexcom": {
"command": "uvx",
"args": ["mcp-server-dexcom-health"],
"env": {
"DEXCOM_USERNAME": "your_username",
"DEXCOM_PASSWORD": "your_password",
"DEXCOM_REGION": "us"
}
}
}
}
Usage Examples
Basic usage with Claude
"What's my current glucose?"
"How was my overnight control?"
"Did I have any lows today?"
"Give me my statistics for the last 12 hours"
Persistence Layer Integration
Tools that analyze data accept an optional data parameter for external data sources:
# Pass your own historical data
result = get_statistics(
data=[
{"glucose_mg_dl": 120, "timestamp": "2024-01-15T08:00:00"},
{"glucose_mg_dl": 135, "timestamp": "2024-01-15T08:05:00"},
# ... more readings
]
)
This enables building long-term analytics by storing data externally and passing it back for analysis.
Requirements
- Python 3.10+
- Active Dexcom Share session (requires Dexcom mobile app with Share enabled)
- At least one follower configured in Dexcom Share
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_dexcom_health-0.1.1.tar.gz.
File metadata
- Download URL: mcp_server_dexcom_health-0.1.1.tar.gz
- Upload date:
- Size: 67.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8222b172f312c79284520202be02f042e33704d02dfa56b00a9703f20dd9f2c
|
|
| MD5 |
68def101a1db70610027d387d28b8179
|
|
| BLAKE2b-256 |
21e961c29f00c5285a8e647adba3aead62a3fb26f0bef70f5057a4bacb1e58b3
|
File details
Details for the file mcp_server_dexcom_health-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcp_server_dexcom_health-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
612da3afd0180d32b5c91dc76a4da0f7d7984e27e430dbb445ead05f382a8c50
|
|
| MD5 |
19d5837af7b940f0419fbb1acb4783ba
|
|
| BLAKE2b-256 |
b0ed740fb6a5e24c4523a6e27024d11421568f80ebcce39559ba7f774c37929f
|