MCP Glucose Server
Enables AI assistants to query glucose data from health storage APIs, providing natural language access to glucose readings, trends, and statistics for diabetes management and health monitoring.
README
MCP Glucose Server
A Model Context Protocol (MCP) server that provides glucose data query tools to AI assistants like Claude and ChatGPT. Connects to the health-data-storage API to retrieve glucose readings.
π― Purpose
This MCP server acts as a specialized interface between AI assistants and your glucose data. It provides natural language tools for querying glucose levels, trends, and statistics.
ποΈ Architecture Position
ββββββββββββββββββββββββ
β health-data-storage β
β REST API β
ββββββββββββ¬ββββββββββββ
β HTTP GET
βΌ
ββββββββββββββββ
β mcp-glucose β β YOU ARE HERE
β (MCP Server) β
ββββββββ¬ββββββββ
β MCP Tools
βΌ
βββββββββββββββββ
β Claude/ChatGPTβ
βββββββββββββββββ
π§ Available Tools
1. get_glucose_readings
Get glucose readings within a date range.
Parameters:
userId(optional): User identifier (defaults to USER_ID env var)startDate(optional): Start date in ISO 8601 formatendDate(optional): End date in ISO 8601 formatlimit(optional): Maximum number of readings (default: 1000)
Example queries:
- "What's my glucose been like today?"
- "Show me my glucose readings for the past week"
- "Get my glucose levels from October 1st to October 22nd"
2. get_latest_glucose
Get the most recent glucose reading.
Parameters:
userId(optional): User identifier (defaults to USER_ID env var)
Example queries:
- "What's my current glucose?"
- "What was my last glucose reading?"
- "Check my latest blood sugar"
3. get_glucose_stats
Get glucose statistics (count, average, min, max) for a time period.
Parameters:
userId(optional): User identifier (defaults to USER_ID env var)startDate(optional): Start date in ISO 8601 formatendDate(optional): End date in ISO 8601 format
Example queries:
- "What's my average glucose this week?"
- "Show me my glucose stats for the past month"
- "What was my glucose range yesterday?"
π Setup
Prerequisites
- Node.js 20+
- Access to a deployed
health-data-storageinstance - API secret for authentication
Installation
# Install dependencies
npm install
# Build TypeScript
npm run build
Configuration
Create a .env file (or set environment variables):
STORAGE_API_URL=https://your-storage-api.run.app
API_SECRET=your-api-secret
USER_ID=user@example.com # Optional default user
Usage with Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"glucose": {
"command": "node",
"args": ["/path/to/mcp-glucose/build/index.js"],
"env": {
"STORAGE_API_URL": "https://your-storage-api.run.app",
"API_SECRET": "your-api-secret",
"USER_ID": "user@example.com"
}
}
}
}
Restart Claude Desktop.
Usage with ChatGPT
(ChatGPT MCP support coming soon)
π¬ Example Conversations
Once configured, you can ask Claude:
Simple queries:
"What's my latest glucose?"
{
"value": 95,
"unit": "mg/dL",
"date": "2025-10-22T10:30:00Z",
"source": "Lingo"
}
Time range queries:
"Show me my glucose for the past 24 hours"
{
"count": 48,
"readings": [
{ "value": 95, "unit": "mg/dL", "date": "2025-10-22T10:30:00Z", "source": "Lingo" },
...
]
}
Statistical queries:
"What's my average glucose this week?"
{
"count": 336,
"average": 98.5,
"min": 75,
"max": 125,
"unit": "mg/dL"
}
Analysis queries:
"Analyze my glucose patterns over the last month"
Claude will use the tools to fetch data and provide intelligent analysis of your glucose trends, patterns, and insights.
π Related Projects
- health-data-storage: Storage backend that this server queries
- health-tracking-app: iOS app that collects the glucose data
- mcp-activity: (future) MCP server for activity/exercise data
- mcp-nutrition: (future) MCP server for food/nutrition data
π Future Enhancements
Potential additions:
- Trend analysis tools: Detect glucose spikes, patterns
- Correlation tools: Compare glucose with meals, exercise
- Alert tools: Notify when glucose is out of range
- Export tools: Generate reports, charts
- Multi-user support: Query data for multiple users
π οΈ Development
Local Testing
# Build
npm run build
# Run (will use stdio transport)
npm start
The server runs on stdio (standard input/output) as per MCP specification. Use it with Claude Desktop or the MCP inspector for testing.
Testing with MCP Inspector
npm install -g @modelcontextprotocol/inspector
npx @modelcontextprotocol/inspector node build/index.js
π 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.
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.
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.
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.