glyco-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@glyco-mcp Analyze data/samples/fingerstick_sample.csv and compare after-meal readings to other times."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
glyco-mcp
An open-source MCP server that lets an AI assistant like Claude analyze and explain your blood glucose data in plain language.
glyco-mcp is not a medical device. It analyzes and explains data. It does not diagnose anything and never recommends insulin or medication doses. Never change your treatment without talking to your healthcare team.
What it does
Glucose meters produce hundreds of readings a month, but raw numbers say very little on their own. With glyco-mcp connected to Claude, you can simply ask:
"How is my blood sugar doing?"
"Are my readings after dinner higher than after lunch?"
"What time of day do I have the most lows?"
"How did my last week go?"
"Prepare a report for my doctor with the last 30 days."
Claude finds your latest file, glyco-mcp computes the statistics, and Claude explains them in your own language.
Related MCP server: csv-mcp-server
Project principles
Python computes, the AI explains. Every number (averages, lows, variability) is computed by tested Python code. The AI receives those results and interprets them. A language model is never trusted to do arithmetic on medical data.
Your data stays with you. glyco-mcp runs on your own computer. The project has no server and collects nothing.
Nothing is dropped silently. An unreadable data row is always reported, with the reason. Knowing what is missing from an analysis matters as much as what is in it.
Analyze, don't prescribe. The tool describes trends. Treatment decisions belong to the person and their healthcare team.
Features
Feature | Status |
CSV reader for glucose meter exports (mmol/L and mg/dL, LO/HI readings) | ✅ |
Support for French-locale Excel exports ( | ✅ |
Statistics: mean, SD, coefficient of variation, time in zones | ✅ |
Breakdowns by meal context, time of day, and both combined | ✅ |
Customizable glucose thresholds | ✅ |
Data folder: ask about "my readings" without typing file paths | ✅ |
MCP server for Claude Desktop and Claude Code | ✅ |
One-click install bundle ( | ✅ |
One-page printable report for medical appointments (French and English), with charts | ✅ |
"Points to discuss" detected by fixed rules based on international targets | ✅ |
Native OneTouch Reveal export support | |
Continuous glucose monitors (Dexcom, FreeStyle Libre) | 📋 |
Nightscout integration | 📋 |
✅ done · 🙋 help wanted · 📋 planned
Installation
Step 1: Create your data folder
Create a folder named glyco-data in your home folder (for example C:\Users\<you>\glyco-data on Windows, or /Users/<you>/glyco-data on macOS), and save your glucose meter's CSV exports in it. See Supported CSV format.
Step 2: Connect glyco-mcp to Claude
Pick the option that matches your setup.
Option A: Claude Desktop, one-click install (recommended)
Download
glyco-mcp-<version>.mcpbfrom the latest release.In Claude Desktop, open Settings → Extensions → Advanced settings → Install Extension… and select the file. You can also double-click the file, or drag it into the Claude Desktop window.
When asked, choose your
glyco-datafolder.
Claude Desktop installs Python and all dependencies automatically. Nothing else to install.
Don't see an Extensions page? Some Claude Desktop setups don't offer it. Use Option B instead.
Option B: Claude Desktop, manual configuration
Requires Python 3.10 or later.
Install glyco-mcp:
pip install git+https://github.com/stephanebaribeau/glyco-mcp.gitFind the full path of your Python:
Windows (PowerShell):
(Get-Command python).SourcemacOS/Linux:
which python3
In Claude Desktop, open Settings → Developer → Edit Config and add a
mcpServersblock at the top of the file, keeping everything else:{ "mcpServers": { "glyco": { "command": "C:\\Users\\<you>\\path\\to\\python.exe", "args": ["-m", "glyco_mcp.server"], "env": { "GLYCO_DATA_DIR": "C:\\Users\\<you>\\glyco-data" } } }, "...": "the rest of your existing settings" }On Windows, write every
\in a path as\\(JSON requires it). Mind the comma after the closing}ofmcpServers.Fully quit Claude Desktop (on Windows: right-click its icon near the clock → Quit) and open it again.
Back in Settings → Developer,
glycoshould show as running.
Can't find the config file on Windows? Depending on how Claude Desktop was installed, it can be in
%APPDATA%\Claude\, in%LOCALAPPDATA%\Claude-3p\, or in a Microsoft Store folder under%LOCALAPPDATA%\Packages\. To find it:Get-ChildItem $env:LOCALAPPDATA, $env:APPDATA -Recurse -Filter "claude_desktop_config.json" -ErrorAction SilentlyContinue | Select-Object FullName
Option C: Claude Code
After installing glyco-mcp with pip (Option B, step 1):
claude mcp add --scope user --env GLYCO_DATA_DIR=/path/to/glyco-data glyco -- /full/path/to/python -m glyco_mcp.server
claude mcp listglyco should show as connected.
Step 3: Ask
Open a new conversation and ask "How is my blood sugar doing?". Allow the glyco tools when Claude asks for permission.
Supported CSV format
timestamp,value,unit,context,note
2026-11-01T07:15:00-05:00,6.2,mmol/L,fasting,
2026-11-01T14:00:00-05:00,8.9,mmol/L,after_meal,pizza
2026-11-01T16:30:00-05:00,LO,mmol/L,before_meal,had orange juiceColumn | Required | Values |
| yes | ISO 8601 date with a time zone offset ( |
| yes | A number ( |
| no |
|
| no |
|
| no | Free text |
The delimiter can be , or ;, and column names are case-insensitive.
Native support for meter-specific exports is coming. If you use a OneTouch meter, you can help!
Tools
glyco-mcp gives Claude two read-only tools:
Tool | What it does |
| Lists the CSV files in your data folder, newest first. |
| Computes statistics for one file: period, mean, SD, coefficient of variation, time in each zone, and breakdowns by meal context and time of day. Optional: analyze only the last N days, use custom thresholds. |
| Creates a one-page printable HTML report (French or English) in the |
Default thresholds (mmol/L): very low < 3.0, low < 4.0, high > 10.0, very high > 13.9. Targets are personal: ask Claude to use the ones agreed with your healthcare team.
Privacy
Blood glucose data is sensitive health information.
glyco-mcp runs locally. The project has no server and collects nothing.
When you use glyco-mcp with Claude, the statistics Claude asks for are sent to Anthropic as part of your conversation, under Anthropic's terms. The raw CSV file is read on your computer.
If you contribute to the project: the
.gitignoreexcludes thedata/folder, and the.mcpbbundle never includes it. Never put real data indata/samples/.
Development
git clone https://github.com/stephanebaribeau/glyco-mcp.git
cd glyco-mcp
python -m venv .venv
# Windows: .venv\Scripts\activate · macOS/Linux: source .venv/bin/activate
pip install -e ".[dev]"
pytestUseful scripts:
python scripts/generate_sample.py # one month of MADE-UP readings with hidden patterns
python scripts/summarize.py # print the statistics of a CSV fileBuild the .mcpb bundle (requires Node.js):
npm install -g @anthropic-ai/mcpb
mcpb validate manifest.json
mcpb pack . glyco-mcp-<version>.mcpbProject structure
glyco-mcp/
├── src/glyco_mcp/
│ ├── models.py # GlucoseReading: the core data model
│ ├── readers/ # Data readers (CSV)
│ ├── analysis/ # Statistics (pure Python, no AI)
│ └── server.py # MCP server: exposes the analysis to the AI
├── tests/ # pytest test suite
├── scripts/ # Sample data generator, summary script
├── data/samples/ # MADE-UP sample data
├── manifest.json # .mcpb bundle description
└── .mcpbignore # Files left out of the bundleThe core (models, readers, analysis) depends on neither MCP nor any AI, so it can be reused in a web app, a command-line tool, and so on.
Roadmap
Native readers for popular meter exports (OneTouch Reveal first)
Continuous glucose monitor support (Dexcom, FreeStyle Libre) and Nightscout
A one-page report to bring to medical appointments
Contributing
Contributions are welcome, especially from people living with diabetes and healthcare professionals: your feedback on what is actually useful is invaluable.
Report a bug or suggest an idea by opening an issue.
For code: create a branch, add tests, make sure
pytestpasses, then open a pull request.Is your meter's export format not supported? Open an issue with an anonymized sample (change the values and dates, remove names and serial numbers).
License
Licensed under the Apache License 2.0.
Available Tools
3 toolscreate_reportAIdempotent
Create a one-page printable report to bring to a medical appointment.
The report is an HTML file saved in the "reports" subfolder of the data folder. It contains the key statistics, the distribution of readings, the breakdowns by time of day and meal context, and "points to discuss" detected by fixed rules (not by AI). It can be opened in any browser and printed or saved as PDF.
Args: file_path: A file name from list_glucose_files, or a full path. language: Report language: "fr" (French) or "en" (English). Use the person's language when it is one of these. last_days: Only include the last N days (counted back from the most recent reading). Common choices: 14 or 30. Omit for the whole file. patient_name: Optional name printed at the top of the report. very_low: Level 2 hypoglycemia threshold in mmol/L. low: Hypoglycemia threshold in mmol/L. high: Hyperglycemia threshold in mmol/L. very_high: Level 2 hyperglycemia threshold in mmol/L.
Inputs: file_path (required), low, high, language, +4 more. Returns: object
list_glucose_filesARead-only
List the CSV files in the user's glucose data folder, newest first.
Inputs: no named parameters. Returns: object
summarize_glucose_fileARead-only
Read a glucose meter CSV file and return descriptive statistics.
Returns the period covered, mean, standard deviation, coefficient of variation (CV), the share of readings in each zone (very low, low, in range, high, very high), and breakdowns by meal context and time of day. All values are in mmol/L.
Args: file_path: A file name from list_glucose_files (looked up in the data folder), or a full path to a CSV file. last_days: Only analyze the last N days of the file (counted back from the most recent reading). Omit to analyze the whole file. very_low: Level 2 hypoglycemia threshold in mmol/L (below = very low). low: Hypoglycemia threshold in mmol/L (below = low). high: Hyperglycemia threshold in mmol/L (above = high). very_high: Level 2 hyperglycemia threshold in mmol/L (above = very high).
Inputs: file_path (required), low, high, very_low, +2 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a clearly distinct step in a linear workflow: discovering files, computing statistics, and generating a printable report. There is no overlap in purpose, and an agent can unambiguously select the right tool for each task.
All three tools follow a consistent verb_noun snake_case pattern (list_glucose_files, summarize_glucose_file, create_report). The convention is predictable and readable.
Three tools is a well-scoped surface for a narrow, single-domain server focused on glucose CSV analysis. Each tool earns its place with no redundancy.
The core lifecycle of discover-analyze-report is fully covered. Minor gaps exist, such as no tool for viewing raw readings or comparing multiple files, but agents can work around these by reusing summarize_glucose_file.
Maintenance
Related MCP Connectors
Your lab results and health record in Claude: trends, retests, meds, conditions and symptoms.
Ask Claude, ChatGPT or Cursor about your Apple Health data: workouts, sleep, food. Read-only.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables access to FreeStyle Libre glucose data through Claude Desktop, providing current readings, historical data, statistics, and trend analysis from LibreLinkUp accounts with secure credential storage.101MIT
- FlicenseBqualityDmaintenanceEnables Claude to directly access, query, and analyze local CSV files using natural language, keeping data private and local.41-
- AlicenseAqualityDmaintenanceEnables Claude to access Abbott Freestyle Libre CGM data from multiple providers (LibreView, Terra, Thryve) to retrieve current glucose, history, and summaries via natural language.42MIT
- AlicenseBqualityDmaintenanceEnables Claude to answer natural language questions about your Apple Health data by analyzing local CSV exports, supporting metrics like steps, heart rate, sleep, and more.62MIT