Nightscout
FreeNot checkedEnables AI assistants to access and analyze Continuous Glucose Monitor (CGM) data from Nightscout, providing real-time readings, history, and analytics.
About
Enables AI assistants to access and analyze Continuous Glucose Monitor (CGM) data from Nightscout, providing real-time readings, history, and analytics.
README
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-mcp
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://[email protected]"
}
}
}
}
Configuration
| Variable | Description | Default |
|---|---|---|
NIGHTSCOUT_URL |
Nightscout URL (can include token: https://[email protected]) |
Required |
NIGHTSCOUT_API_SECRET |
API secret (optional if using token in URL) | - |
GLUCOSE_UNITS |
Display units: mmol or mgdl |
mmol |
GLUCOSE_LOW |
TIR lower bound (auto-detects units: <30 = mmol) | 3.9 (70 mg/dL) |
GLUCOSE_HIGH |
TIR upper bound (auto-detects units: <30 = mmol) | 7.8 (140 mg/dL) |
Example with custom TIR range
{
"nightscout": {
"command": "uvx",
"args": ["--from", "git+https://github.com/vgmakeev/nightscout-mcp", "nightscout-mcp"],
"env": {
"NIGHTSCOUT_URL": "https://[email protected]",
"GLUCOSE_UNITS": "mmol",
"GLUCOSE_LOW": "4.0",
"GLUCOSE_HIGH": "10.0"
}
}
}
Tools
| Tool | Description |
|---|---|
glucose_current |
Current glucose reading |
glucose_history |
History for last N hours |
analyze |
TIR, CV, HbA1c for any date range |
analyze_monthly |
Monthly breakdown for a year |
treatments |
Insulin and carbs log |
status |
Nightscout server status |
devices |
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
Install Nightscout in Claude Desktop, Claude Code & Cursor
unyly install nightscout-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add nightscout-mcp -- uvx --from git+https://github.com/vgmakeev/nightscout-mcp nightscout-mcpFAQ
Is Nightscout MCP free?
Yes, Nightscout MCP is free — one-click install via Unyly at no cost.
Does Nightscout need an API key?
No, Nightscout runs without API keys or environment variables.
Is Nightscout hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Nightscout in Claude Desktop, Claude Code or Cursor?
Open Nightscout on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Nightscout with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
