mcp-server-dexcom-health
MCP server for Dexcom CGM glucose data, enabling AI agents to access and analyze continuous glucose monitor readings for health intelligence applications.
README
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
- Time window queries - Query specific time ranges (e.g., "4-3 hours ago")
- 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 with optional time windows |
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"
"What about the hour before that?" (follow-up queries work!)
Time Window Queries
Query specific time ranges using start_minutes and end_minutes:
# Last 3 hours (standard)
get_glucose_readings(minutes=180)
# Specific window: 4 hours ago to 3 hours ago
get_glucose_readings(start_minutes=240, end_minutes=180)
# Stats for 6-5 hours ago
get_statistics(start_minutes=360, end_minutes=300)
# Episodes between 8-4 hours ago
detect_episodes(start_minutes=480, end_minutes=240)
Supported tools: get_glucose_readings, get_statistics, detect_episodes, export_data
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:00Z"},
{"glucose_mg_dl": 135, "timestamp": "2024-01-15T08:05:00Z"},
# ... 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.