nightscout-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., "@nightscout-mcp What's my current glucose?"
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.
Nightscout MCP Server
Access your CGM data from Nightscout in AI assistants like Claude, Cursor, etc.
Quick Start
uvx --from git+https://github.com/vgmakeev/nightscout-mcp nightscout-mcpRelated MCP server: Dexcom G7 MCP Server
Setup
Add to your MCP config (e.g. ~/.cursor/mcp.json):
{
"mcpServers": {
"nightscout": {
"command": "uvx",
"args": ["--from", "git+https://github.com/vgmakeev/nightscout-mcp", "nightscout-mcp"],
"env": {
"NIGHTSCOUT_URL": "https://YOUR_TOKEN@your-site.nightscout.com"
}
}
}
}Configuration
Variable | Description | Default |
| Nightscout URL (can include token: | Required |
| API secret (optional if using token in URL) | - |
| Display units: |
|
| TIR lower bound (auto-detects units: <30 = mmol) |
|
| TIR upper bound (auto-detects units: <30 = mmol) |
|
Example with custom TIR range
{
"nightscout": {
"command": "uvx",
"args": ["--from", "git+https://github.com/vgmakeev/nightscout-mcp", "nightscout-mcp"],
"env": {
"NIGHTSCOUT_URL": "https://TOKEN@your-site.nightscout.com",
"GLUCOSE_UNITS": "mmol",
"GLUCOSE_LOW": "4.0",
"GLUCOSE_HIGH": "10.0"
}
}
}Tools
Tool | Description |
| Current glucose reading |
| History for last N hours |
| TIR, CV, HbA1c for any date range |
| Monthly breakdown for a year |
| Insulin and carbs log |
| Nightscout server status |
| Pump, CGM, uploader status |
Examples
Ask your AI assistant:
"What's my current glucose?"
"Show my glucose history for the last 6 hours"
"Analyze my glucose control for December 2025"
"Give me a monthly breakdown for 2025"
License
MIT
Available Tools
7 toolsanalyzeA
Analyze glucose patterns for any date range. Supports dates (YYYY-MM-DD), months (YYYY-MM), or relative periods (7d, 2w, 3m, 1y)
Inputs: to, from, tirGoal.
analyze_monthlyA
Analyze glucose data broken down by month. Great for yearly reviews.
Inputs: year (required), tirGoal, toMonth, fromMonth.
devicesB
Get status of connected devices (pump, CGM, phone)
Inputs: count.
glucose_currentA
Get the current blood glucose reading from Nightscout
Inputs: no named parameters.
glucose_historyB
Get blood glucose history for a specified time period
Inputs: count, hours.
statusA
Get Nightscout server status and settings
Inputs: no named parameters.
treatmentsC
Get recent treatments (insulin doses, carbs, etc.)
Inputs: count, hours.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Tools are mostly distinct, but 'glucose_history' and 'analyze' both support time ranges, which could cause misselection. However, descriptions clarify that one returns raw data and the other analyzes patterns.
Tool names mix noun-based (glucose_current, treatments) and verb-based (analyze) conventions. There's no consistent verb_noun pattern, though names are still readable and predictable.
7 tools is a well-scoped set for a Nightscout server, covering monitoring, analysis, and status without bloat.
The surface covers current glucose, history, analysis, treatments, devices, and status—core Nightscout interactions. Minor gaps like write operations or detailed alerts exist, but the read-only monitoring workflow is complete.
Maintenance
Related MCP Connectors
Your own SLATE health data in your AI assistant: read, trend, plan and log. Never suggests a dose.
Glucose readings from your LibreLink Up sensor: graph, logbook, stats and summaries (read-only). Sec
Connect your health, fitness, nutrition, sleep, and wearable data to your AI assistant.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables 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.3MIT
- FlicenseNot gradedqualityDmaintenanceProvides access to Dexcom G7 continuous glucose monitor data, enabling AI assistants to retrieve current glucose readings and historical data.14-
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Nightscout for real-time glucose monitoring, analysis, and treatment logging, enabling natural language interaction with CGM data.7MIT
- AlicenseAqualityDmaintenanceBridges your Nightscout CGM data with AI assistants via the Model Context Protocol, enabling natural language queries about glucose readings, treatments, statistics, and pattern analysis.21GPL 3.0