Dexcom G7

v1.0.0Analyticsstable

MCP server for getting your blood glucose readings and history using dexcom share

dexcom-g7-mcp-servermcpai-integration
Share:
11
Stars
0
Downloads
0
Weekly
0/5

What is Dexcom G7?

Dexcom G7 is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for getting your blood glucose readings and history using dexcom share

MCP server for getting your blood glucose readings and history using dexcom share

This server falls under the Analytics category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server for getting your blood glucose readings and histo

Use Cases

Get blood glucose readings
Access glucose history data
phildougherty

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx dexcom-g7-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Dexcom G7

Dexcom G7 MCP Server connects AI assistants to your continuous glucose monitoring data via the Dexcom Share API. It provides real-time blood glucose readings and historical trend data, enabling Claude and other MCP clients to help you understand your glucose patterns, spot trends, and answer health questions grounded in your actual CGM readings.

Prerequisites

  • A Dexcom account with Share enabled in the Dexcom G7 mobile app
  • Docker installed (recommended deployment method)
  • Your Dexcom username and password
  • An MCP-compatible client that supports HTTP/SSE transport (Claude Desktop, etc.)
1

Enable Dexcom Share in the mobile app

Open the Dexcom G7 app on your phone, navigate to Settings → Share, and enable sharing. This activates the Share API that the server uses to fetch your readings.

2

Build the Docker image

Clone the repository and build the Docker image locally.

git clone https://github.com/phildougherty/dexcom_g7_mcp_server.git
cd dexcom_g7_mcp_server
docker build -t dexcom-mcp .
3

Run the server with your credentials

Start the container, passing your Dexcom credentials as environment variables. Use 'ous' for DEXCOM_REGION if you are outside the United States.

docker run -p 8007:8007 \
  -e DEXCOM_USERNAME="your-dexcom-username" \
  -e DEXCOM_PASSWORD="your-dexcom-password" \
  -e DEXCOM_REGION="us" \
  dexcom-mcp
4

Configure your MCP client

Point your MCP client at the running HTTP server. The server listens on port 8007 by default.

{
  "mcpServers": {
    "dexcom": {
      "url": "http://localhost:8007",
      "capabilities": ["tools"]
    }
  }
}
5

Verify by fetching current glucose

Test the connection by calling the get_current_glucose tool directly or via an AI prompt.

curl -X POST http://localhost:8007/ \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "get_current_glucose", "arguments": {}}}'

Dexcom G7 Examples

Client configuration

Claude Desktop configuration using the HTTP endpoint for the Dexcom MCP Server running on localhost.

{
  "mcpServers": {
    "dexcom": {
      "url": "http://localhost:8007",
      "capabilities": ["tools"],
      "description": "Dexcom G7 continuous glucose monitor"
    }
  }
}

Prompts to try

Example prompts to use once the Dexcom MCP Server is connected.

- "What is my current blood glucose reading and what is the trend direction?"
- "Show me my glucose readings for the last 6 hours and identify any highs or lows."
- "Get my glucose history for the past 24 hours and tell me my average and standard deviation."
- "Is my glucose currently in range, and how long has it been since my last high alert?"

Troubleshooting Dexcom G7

Authentication error: invalid username or password

Verify your credentials by logging into the Dexcom Share app manually. Ensure you are using your Dexcom account credentials (not your Google/Apple SSO), and set DEXCOM_REGION to 'ous' if you are outside the US.

get_current_glucose returns no data or stale readings

The Dexcom Share API only returns data when your G7 sensor is active and your phone has recently synced readings. Ensure Bluetooth is active between your G7 sensor and phone, and that the Dexcom app is running in the foreground or background.

Docker container exits immediately on startup

Check container logs with 'docker logs <container-id>'. The most common cause is missing required environment variables. Both DEXCOM_USERNAME and DEXCOM_PASSWORD must be provided.

Frequently Asked Questions about Dexcom G7

What is Dexcom G7?

Dexcom G7 is a Model Context Protocol (MCP) server that mcp server for getting your blood glucose readings and history using dexcom share It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Dexcom G7?

Follow the installation instructions on the Dexcom G7 GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Dexcom G7?

Dexcom G7 works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Dexcom G7 free to use?

Yes, Dexcom G7 is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Analytics MCP Servers

Explore all analytics servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "dexcom-g7-mcp-server": { "command": "npx", "args": ["-y", "dexcom-g7-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Dexcom G7?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides