mcp-server-dexcom-health 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+ .env
@@ -0,0 +1 @@
1
+ 3.11
@@ -0,0 +1,183 @@
1
+ Metadata-Version: 2.4
2
+ Name: mcp-server-dexcom-health
3
+ Version: 0.1.0
4
+ Summary: MCP server for Dexcom CGM glucose data - continuous health intelligence for AI agents
5
+ Author-email: Ishaan Sharma <ishaan02@hotmail.com>
6
+ License: MIT
7
+ Keywords: ai-agents,cgm,dexcom,diabetes,glucose,health,mcp,model-context-protocol
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Intended Audience :: Healthcare Industry
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Requires-Python: >=3.11
17
+ Requires-Dist: mcp[cli]>=1.26.0
18
+ Requires-Dist: pydantic>=2.12.5
19
+ Requires-Dist: pydexcom>=0.5.1
20
+ Description-Content-Type: text/markdown
21
+
22
+ # mcp-server-dexcom
23
+
24
+ MCP server for Dexcom CGM glucose data. Enables AI agents to access and analyze continuous glucose monitor data for health intelligence applications.
25
+
26
+ ## Features
27
+
28
+ - **Real-time glucose monitoring** - Current readings with trend analysis
29
+ - **Historical data access** - Up to 24 hours of glucose history
30
+ - **Clinical analytics** - Time-in-range, GMI, CV%, AGP reports
31
+ - **Episode detection** - Automatic hypo/hyper event identification with detailed context
32
+ - **Time-block analysis** - Identify patterns by time of day
33
+ - **Persistence layer support** - Pass external data for long-term analysis
34
+
35
+ ## Tools
36
+
37
+ | Tool | Description |
38
+ |------|-------------|
39
+ | `get_current_glucose` | Current glucose reading with trend |
40
+ | `get_glucose_readings` | Historical readings (up to 24h) |
41
+ | `get_statistics` | TIR, CV%, GMI, and other metrics |
42
+ | `get_status_summary` | Complete "how am I doing?" summary |
43
+ | `detect_episodes` | Find hypo/hyper episodes |
44
+ | `get_episode_details` | Deep analysis of each episode |
45
+ | `analyze_time_blocks` | Patterns by time of day |
46
+ | `check_alerts` | Real-time threshold alerts |
47
+ | `export_data` | Export for external storage |
48
+ | `get_agp_report` | Clinical AGP report |
49
+
50
+ ## Installation
51
+ ```bash
52
+ # Using uvx (recommended)
53
+ uvx mcp-server-dexcom
54
+
55
+ # Using pip
56
+ pip install mcp-server-dexcom
57
+ ```
58
+
59
+ ## Configuration
60
+
61
+ Set environment variables:
62
+
63
+ | Variable | Required | Description |
64
+ |----------|----------|-------------|
65
+ | `DEXCOM_USERNAME` | Yes | Dexcom username, email, or phone (+1234567890) |
66
+ | `DEXCOM_PASSWORD` | Yes | Dexcom password |
67
+ | `DEXCOM_REGION` | No | `us` (default), `ous` (outside US), or `jp` (Japan) |
68
+
69
+ ### Claude Desktop
70
+
71
+ Add to your `claude_desktop_config.json`:
72
+ ```json
73
+ {
74
+ "mcpServers": {
75
+ "dexcom": {
76
+ "command": "uvx",
77
+ "args": ["mcp-server-dexcom"],
78
+ "env": {
79
+ "DEXCOM_USERNAME": "your_username",
80
+ "DEXCOM_PASSWORD": "your_password",
81
+ "DEXCOM_REGION": "us"
82
+ }
83
+ }
84
+ }
85
+ }
86
+ ```
87
+
88
+ ## Usage Examples
89
+
90
+ ### Basic usage with Claude
91
+
92
+ > "What's my current glucose?"
93
+
94
+ > "How was my overnight control?"
95
+
96
+ > "Did I have any lows today?"
97
+
98
+ > "Give me my statistics for the last 12 hours"
99
+
100
+ ### Persistence Layer Integration
101
+
102
+ Tools that analyze data accept an optional `data` parameter for external data sources:
103
+ ```python
104
+ # Pass your own historical data
105
+ result = get_statistics(
106
+ data=[
107
+ {"glucose_mg_dl": 120, "timestamp": "2024-01-15T08:00:00"},
108
+ {"glucose_mg_dl": 135, "timestamp": "2024-01-15T08:05:00"},
109
+ # ... more readings
110
+ ]
111
+ )
112
+ ```
113
+
114
+ This enables building long-term analytics by storing data externally and passing it back for analysis.
115
+
116
+ ## Requirements
117
+
118
+ - Python 3.10+
119
+ - Active Dexcom Share session (requires Dexcom mobile app with Share enabled)
120
+ - At least one follower configured in Dexcom Share
121
+
122
+ ## License
123
+
124
+ MIT
125
+ ```
126
+
127
+ ---
128
+
129
+ ## **3. Create `LICENSE`:**
130
+ ```
131
+ MIT License
132
+
133
+ Copyright (c) 2024
134
+
135
+ Permission is hereby granted, free of charge, to any person obtaining a copy
136
+ of this software and associated documentation files (the "Software"), to deal
137
+ in the Software without restriction, including without limitation the rights
138
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
139
+ copies of the Software, and to permit persons to whom the Software is
140
+ furnished to do so, subject to the following conditions:
141
+
142
+ The above copyright notice and this permission notice shall be included in all
143
+ copies or substantial portions of the Software.
144
+
145
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
146
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
147
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
148
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
149
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
150
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
151
+ SOFTWARE.
152
+ ```
153
+
154
+ ---
155
+
156
+ ## **4. Create `.gitignore`:**
157
+ ```
158
+ __pycache__/
159
+ *.py[cod]
160
+ *$py.class
161
+ .env
162
+ .venv/
163
+ dist/
164
+ build/
165
+ *.egg-info/
166
+ .mypy_cache/
167
+ .ruff_cache/
168
+ ```
169
+
170
+ ---
171
+
172
+ ## **5. Final project structure:**
173
+ ```
174
+ mcp-server-dexcom/
175
+ ├── pyproject.toml
176
+ ├── README.md
177
+ ├── LICENSE
178
+ ├── .gitignore
179
+ ├── .env # (not committed)
180
+ └── src/
181
+ └── mcp_server_dexcom/
182
+ ├── __init__.py
183
+ └── server.py
@@ -0,0 +1,162 @@
1
+ # mcp-server-dexcom
2
+
3
+ MCP server for Dexcom CGM glucose data. Enables AI agents to access and analyze continuous glucose monitor data for health intelligence applications.
4
+
5
+ ## Features
6
+
7
+ - **Real-time glucose monitoring** - Current readings with trend analysis
8
+ - **Historical data access** - Up to 24 hours of glucose history
9
+ - **Clinical analytics** - Time-in-range, GMI, CV%, AGP reports
10
+ - **Episode detection** - Automatic hypo/hyper event identification with detailed context
11
+ - **Time-block analysis** - Identify patterns by time of day
12
+ - **Persistence layer support** - Pass external data for long-term analysis
13
+
14
+ ## Tools
15
+
16
+ | Tool | Description |
17
+ |------|-------------|
18
+ | `get_current_glucose` | Current glucose reading with trend |
19
+ | `get_glucose_readings` | Historical readings (up to 24h) |
20
+ | `get_statistics` | TIR, CV%, GMI, and other metrics |
21
+ | `get_status_summary` | Complete "how am I doing?" summary |
22
+ | `detect_episodes` | Find hypo/hyper episodes |
23
+ | `get_episode_details` | Deep analysis of each episode |
24
+ | `analyze_time_blocks` | Patterns by time of day |
25
+ | `check_alerts` | Real-time threshold alerts |
26
+ | `export_data` | Export for external storage |
27
+ | `get_agp_report` | Clinical AGP report |
28
+
29
+ ## Installation
30
+ ```bash
31
+ # Using uvx (recommended)
32
+ uvx mcp-server-dexcom
33
+
34
+ # Using pip
35
+ pip install mcp-server-dexcom
36
+ ```
37
+
38
+ ## Configuration
39
+
40
+ Set environment variables:
41
+
42
+ | Variable | Required | Description |
43
+ |----------|----------|-------------|
44
+ | `DEXCOM_USERNAME` | Yes | Dexcom username, email, or phone (+1234567890) |
45
+ | `DEXCOM_PASSWORD` | Yes | Dexcom password |
46
+ | `DEXCOM_REGION` | No | `us` (default), `ous` (outside US), or `jp` (Japan) |
47
+
48
+ ### Claude Desktop
49
+
50
+ Add to your `claude_desktop_config.json`:
51
+ ```json
52
+ {
53
+ "mcpServers": {
54
+ "dexcom": {
55
+ "command": "uvx",
56
+ "args": ["mcp-server-dexcom"],
57
+ "env": {
58
+ "DEXCOM_USERNAME": "your_username",
59
+ "DEXCOM_PASSWORD": "your_password",
60
+ "DEXCOM_REGION": "us"
61
+ }
62
+ }
63
+ }
64
+ }
65
+ ```
66
+
67
+ ## Usage Examples
68
+
69
+ ### Basic usage with Claude
70
+
71
+ > "What's my current glucose?"
72
+
73
+ > "How was my overnight control?"
74
+
75
+ > "Did I have any lows today?"
76
+
77
+ > "Give me my statistics for the last 12 hours"
78
+
79
+ ### Persistence Layer Integration
80
+
81
+ Tools that analyze data accept an optional `data` parameter for external data sources:
82
+ ```python
83
+ # Pass your own historical data
84
+ result = get_statistics(
85
+ data=[
86
+ {"glucose_mg_dl": 120, "timestamp": "2024-01-15T08:00:00"},
87
+ {"glucose_mg_dl": 135, "timestamp": "2024-01-15T08:05:00"},
88
+ # ... more readings
89
+ ]
90
+ )
91
+ ```
92
+
93
+ This enables building long-term analytics by storing data externally and passing it back for analysis.
94
+
95
+ ## Requirements
96
+
97
+ - Python 3.10+
98
+ - Active Dexcom Share session (requires Dexcom mobile app with Share enabled)
99
+ - At least one follower configured in Dexcom Share
100
+
101
+ ## License
102
+
103
+ MIT
104
+ ```
105
+
106
+ ---
107
+
108
+ ## **3. Create `LICENSE`:**
109
+ ```
110
+ MIT License
111
+
112
+ Copyright (c) 2024
113
+
114
+ Permission is hereby granted, free of charge, to any person obtaining a copy
115
+ of this software and associated documentation files (the "Software"), to deal
116
+ in the Software without restriction, including without limitation the rights
117
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
118
+ copies of the Software, and to permit persons to whom the Software is
119
+ furnished to do so, subject to the following conditions:
120
+
121
+ The above copyright notice and this permission notice shall be included in all
122
+ copies or substantial portions of the Software.
123
+
124
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
125
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
126
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
127
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
128
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
129
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
130
+ SOFTWARE.
131
+ ```
132
+
133
+ ---
134
+
135
+ ## **4. Create `.gitignore`:**
136
+ ```
137
+ __pycache__/
138
+ *.py[cod]
139
+ *$py.class
140
+ .env
141
+ .venv/
142
+ dist/
143
+ build/
144
+ *.egg-info/
145
+ .mypy_cache/
146
+ .ruff_cache/
147
+ ```
148
+
149
+ ---
150
+
151
+ ## **5. Final project structure:**
152
+ ```
153
+ mcp-server-dexcom/
154
+ ├── pyproject.toml
155
+ ├── README.md
156
+ ├── LICENSE
157
+ ├── .gitignore
158
+ ├── .env # (not committed)
159
+ └── src/
160
+ └── mcp_server_dexcom/
161
+ ├── __init__.py
162
+ └── server.py
@@ -0,0 +1,6 @@
1
+ def main():
2
+ print("Hello from mcp-server-dexcom!")
3
+
4
+
5
+ if __name__ == "__main__":
6
+ main()
@@ -0,0 +1,53 @@
1
+ [project]
2
+ name = "mcp-server-dexcom-health"
3
+ version = "0.1.0"
4
+ description = "MCP server for Dexcom CGM glucose data - continuous health intelligence for AI agents"
5
+ readme = "README.md"
6
+ license = {text = "MIT"}
7
+ authors = [
8
+ {name = "Ishaan Sharma", email = "ishaan02@hotmail.com"}
9
+ ]
10
+ keywords = [
11
+ "dexcom",
12
+ "cgm",
13
+ "glucose",
14
+ "diabetes",
15
+ "mcp",
16
+ "model-context-protocol",
17
+ "health",
18
+ "ai-agents"
19
+ ]
20
+ classifiers = [
21
+ "Development Status :: 4 - Beta",
22
+ "Intended Audience :: Developers",
23
+ "Intended Audience :: Healthcare Industry",
24
+ "License :: OSI Approved :: MIT License",
25
+ "Programming Language :: Python :: 3",
26
+ "Programming Language :: Python :: 3.10",
27
+ "Programming Language :: Python :: 3.11",
28
+ "Programming Language :: Python :: 3.12",
29
+ ]
30
+ requires-python = ">=3.11"
31
+ dependencies = [
32
+ "mcp[cli]>=1.26.0",
33
+ "pydantic>=2.12.5",
34
+ "pydexcom>=0.5.1",
35
+ ]
36
+
37
+ [dependency-groups]
38
+ dev = [
39
+ "mypy>=1.19.1",
40
+ "pytest>=9.0.2",
41
+ "pytest-asyncio>=1.3.0",
42
+ "ruff>=0.14.14",
43
+ ]
44
+
45
+ [project.scripts]
46
+ mcp-server-dexcom-health = "mcp_server_dexcom.server:main"
47
+
48
+ [build-system]
49
+ requires = ["hatchling"]
50
+ build-backend = "hatchling.build"
51
+
52
+ [tool.hatch.build.targets.wheel]
53
+ packages = ["src/mcp_server_dexcom"]