Imports Dexcom Stelo/Clarity CSV glucose data exports into SQLite and provides query endpoints for retrieving glucose readings, date ranges, and statistics like time-in-range, average glucose, GMI, and coefficient of variation.
stelo-workaround-mcp
FastAPI service to import Dexcom Stelo/Clarity CSV exports into SQLite, with MCP endpoints for Simtheory.ai.
Why?
Dexcom API v3 does not support Stelo device data. This workaround lets you:
Export CSV from Dexcom Clarity
Import into local SQLite database
Query via MCP endpoints
Endpoints
Method | Path | Description |
POST |
| Upload Clarity CSV file |
GET |
| Last N hours of readings |
GET |
| Date range query |
GET |
| TIR, avg, GMI, CV stats |
GET |
| MCP manifest for Simtheory.ai |
GET |
| Health check |
Deployment
Docker (Coolify)
Manual
Usage
Schema Migrations
Auto-migrations run on startup. To add a new migration:
Increment
LATEST_SCHEMA_VERSIONAdd migration function
_apply_migration_vN()Register in
MIGRATIONSdict
License
MIT