Dexcom G7 MCP Server
@phildougherty
MCP server for getting your blood glucose readings and history using dexcom share
Overview
What is Dexcom G7 MCP Server?
A Model Context Protocol (MCP) server that provides access to Dexcom G7 continuous glucose monitor data. It allows AI assistants and other MCP clients to retrieve current glucose readings and historical data from a Dexcom G7 device.
How to use Dexcom G7 MCP Server?
Run the server via Docker, setting DEXCOM_USERNAME, DEXCOM_PASSWORD, and optionally DEXCOM_REGION as environment variables. The server exposes an HTTP/JSON-RPC interface on port 8007. You can call the tools get_current_glucose and get_glucose_history via HTTP POST requests or integrate it with MCP clients like Claude Desktop by providing the HTTP endpoint.
Key features of Dexcom G7 MCP Server
- Retrieves the most recent glucose reading with trend information
- Provides historical glucose data for a specified time period
- Reports values in both mg/dL and mmol/L
- Uses native HTTP/JSON-RPC transport
- Full Model Context Protocol (MCP) compliance
Use cases of Dexcom G7 MCP Server
- Get real‑time glucose readings and trend direction from your Dexcom G7
- Analyze glucose history over the last 6‑12 hours via an AI assistant
- Integrate live glucose data into MCP‑based dashboards or automations
- Enable natural‑language queries about your current glucose state
FAQ from Dexcom G7 MCP Server
What credentials do I need to run the server?
You need a valid Dexcom account username and password, plus your Dexcom region (us or ous). These are set via environment variables DEXCOM_USERNAME, DEXCOM_PASSWORD, and DEXCOM_REGION.
How do I start the server?
Build the Docker image with docker build -t dexcom-mcp . and run it with your credentials:
docker run -p 8007:8007 -e DEXCOM_USERNAME=... -e DEXCOM_PASSWORD=... -e DEXCOM_REGION=us dexcom-mcp.
Can I retrieve historical glucose readings?
Yes. Use the get_glucose_history tool, which accepts an optional hours parameter (default 6) to specify how many hours of history to retrieve.
What should I do if authentication fails?
Verify your Dexcom username and password are correct, ensure you can log into the Dexcom mobile app, and confirm that data sharing is enabled in your Dexcom account.
Is this server affiliated with Dexcom?
No. This software is not affiliated with or endorsed by Dexcom, Inc. Use requires valid Dexcom credentials and compliance with Dexcom’s terms of service.