Skip to main content

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

Metadata

Release files for mcp-server-dexcom-health 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-dexcom-health 0.2.0
File Size Uploaded
mcp_server_dexcom_health-0.2.0.tar.gz 69.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-dexcom-health 0.2.0
File Interpreter ABI Platform
mcp_server_dexcom_health-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 80.9 kB

Release files / mcp_server_dexcom_health-0.2.0.tar.gz

Download URL mcp_server_dexcom_health-0.2.0.tar.gz
Size 69.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4b888a05088a3019308bb1d4291bf1aaa8f95220f3d748823df92eedc50773b4
BLAKE2b-256 checksum
How to use checksums
a113bebc71b049fb7af5c408d53f1012f0dd7f053b943ab33f849f9ff268132e
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / mcp_server_dexcom_health-0.2.0-py3-none-any.whl

Download URL mcp_server_dexcom_health-0.2.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d200ee15c0ce0f7232cdda002eeb5afaa09f14588fe8bcd3fd38e4dad3970675
BLAKE2b-256 checksum
How to use checksums
182e8eb1ca1ca1723c95c711ed5837d13cbe996025529923a94c72623cff2704
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page