Skip to main content
Glama

glyco-mcp

Tests

An open-source MCP server that lets an AI assistant like Claude analyze and explain your blood glucose data in plain language.


WARNING

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

  1. 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.

  2. Your data stays with you. glyco-mcp runs on your own computer. The project has no server and collects nothing.

  3. 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.

  4. 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 (;, decimal comma, BOM)

✅

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 (.mcpb)

✅

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

🙋 help wanted

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.

  1. Download glyco-mcp-<version>.mcpb from the latest release.

  2. 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.

  3. When asked, choose your glyco-data folder.

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.

  1. Install glyco-mcp:

    pip install git+https://github.com/stephanebaribeau/glyco-mcp.git
  2. Find the full path of your Python:

    • Windows (PowerShell): (Get-Command python).Source

    • macOS/Linux: which python3

  3. In Claude Desktop, open Settings → Developer → Edit Config and add a mcpServers block 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 } of mcpServers.

  4. Fully quit Claude Desktop (on Windows: right-click its icon near the clock → Quit) and open it again.

  5. Back in Settings → Developer, glyco should 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 list

glyco 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 juice

Column

Required

Values

timestamp

yes

ISO 8601 date with a time zone offset (-05:00)

value

yes

A number (6.2 or 6,2), or LO / HI

unit

no

mmol/L (default) or mg/dL

context

no

fasting, before_meal, after_meal, bedtime (French aliases such as à jeun and coucher are also accepted)

note

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

list_glucose_files

Lists the CSV files in your data folder, newest first.

summarize_glucose_file

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.

create_report

Creates a one-page printable HTML report (French or English) in the reports subfolder of your data folder. Its "points to discuss" come from fixed rules, not from the AI. Open it in a browser to print it or save it as PDF.

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 .gitignore excludes the data/ folder, and the .mcpb bundle never includes it. Never put real data in data/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]"
pytest

Useful 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 file

Build the .mcpb bundle (requires Node.js):

npm install -g @anthropic-ai/mcpb
mcpb validate manifest.json
mcpb pack . glyco-mcp-<version>.mcpb

Project 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 bundle

The 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 pytest passes, 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 tools
create_reportA
Idempotent

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_filesA
Read-only

List the CSV files in the user's glucose data folder, newest first.

Inputs: no named parameters. Returns: object

summarize_glucose_fileA
Read-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

    A4.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers