T1D Manager

T1D Manager

Enables Type 1 diabetes patients and caregivers to monitor real-time blood glucose from Dexcom Share, calculate insulin doses, and receive empathetic AI-powered sick day care guidance through natural language interactions.

Category
Visit Server

README

๐Ÿฉธ T1D Manager (1ํ˜• ๋‹น๋‡จ ๊ด€๋ฆฌ MCP)

์นด์นด์˜ค MCP Develop Competition (MCP Player 10) ์ถœํ’ˆ์ž‘

1ํ˜• ๋‹น๋‡จ ํ™˜์ž์™€ ๋ณดํ˜ธ์ž๋ฅผ ์œ„ํ•œ AI ์—์ด์ „ํŠธ ์„œ๋ฒ„์ž…๋‹ˆ๋‹ค. ์–ด๋จธ๋‹ˆ๊ฐ€ **"๋‚ด ๋ฑ์Šค์ฝค ์•„์ด๋””๋Š” ์ด๊ฑฐ์•ผ"**๋ผ๊ณ  ๋ง๋งŒ ํ•˜๋ฉด, ๋ณต์žกํ•œ ์„ค์ • ์—†์ด๋„ ์‹ค์‹œ๊ฐ„ ํ˜ˆ๋‹น ๊ด€๋ฆฌ์™€ ์•„ํ”ˆ ๋‚ (Sick Day) ์ผ€์–ด๋ฅผ ๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.


โœจ ํ•ต์‹ฌ ๊ธฐ๋Šฅ

1. ๋ฑ์Šค์ฝค ๋‹ค์ด๋ ‰ํŠธ ์—ฐ๋™ (Dexcom Share)

  • ๊ธฐ๋Šฅ: ๋ณ„๋„์˜ ์„œ๋ฒ„(Nightscout) ๊ตฌ์ถ• ์—†์ด, Dexcom ๊ณ„์ • ์•„์ด๋””/๋น„๋ฒˆ๋งŒ ์žˆ์œผ๋ฉด ์ฆ‰์‹œ ์‹ค์‹œ๊ฐ„ ํ˜ˆ๋‹น์„ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.
  • ๋ณด์•ˆ: ๊ณ„์ • ์ •๋ณด๋Š” ์„œ๋ฒ„์— ์ €์žฅ๋˜์ง€ ์•Š๊ณ , ์กฐํšŒ ์‹œ์ ์—๋งŒ ํœ˜๋ฐœ์„ฑ์œผ๋กœ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค (Stateless).
  • ์˜ˆ์‹œ: "๋‚ด ์•„์ด๋””๋Š” mom@example.com, ๋น„๋ฒˆ์€ 1234์•ผ. ํ˜ˆ๋‹น ์–ด๋•Œ?"

2. ์•„ํ”ˆ ๋‚  (Sick Day) ์ผ€์–ด

  • ๊ธฐ๋Šฅ: "๋‚˜ ๊ฐ๊ธฐ ๊ธฐ์šด ์žˆ์–ด"๋ผ๊ณ  ๋งํ•˜๋ฉด, ์ฆ‰์‹œ ์œ„๊ธฐ ๊ด€๋ฆฌ ๋ชจ๋“œ๋กœ ์ „ํ™˜๋ฉ๋‹ˆ๋‹ค.
  • ์ผ€์–ด ๋‚ด์šฉ: ์ˆ˜๋ถ„ ์„ญ์ทจ ์•Œ๋ฆผ, ๊ธฐ์ € ์ธ์А๋ฆฐ ์œ ์ง€ ๊ฐ•์กฐ, ์ผ€ํ†ค ์ธก์ • ๊ถŒ๊ณ  ๋“ฑ ์ž„์ƒ ๊ฐ€์ด๋“œ๋ผ์ธ ๊ธฐ๋ฐ˜ ์กฐ์–ธ ์ œ๊ณต.

3. ๊ณต๊ฐํ˜• AI (Empathy Persona)

  • ๊ธฐ๋Šฅ: ๋”ฑ๋”ฑํ•œ ๊ธฐ๊ณ„์Œ ๋Œ€์‹ , "์–ด๋จธ๋‹ˆ, ์ˆ˜์น˜๊ฐ€ ์•ˆ์ •์ ์ด๋„ค์š”. ํŽธ์•ˆํ•˜๊ฒŒ ์‰ฌ์„ธ์š”." ์ฒ˜๋Ÿผ ๋”ฐ๋œปํ•œ ์œ„๋กœ์™€ ๊ฒฉ๋ ค๋ฅผ ๊ฑด๋„ธ์Šต๋‹ˆ๋‹ค.

4. ์Šค๋งˆํŠธ ์ธ์А๋ฆฐ ๊ณ„์‚ฐ & ์‹œ๊ฐํ™”

  • ๊ธฐ๋Šฅ: ํ˜„์žฌ ํ˜ˆ๋‹น๊ณผ ํƒ„์ˆ˜ํ™”๋ฌผ ์–‘์„ ์ž…๋ ฅํ•˜๋ฉด ์ธ์А๋ฆฐ ์šฉ๋Ÿ‰์„ ๊ณ„์‚ฐํ•˜๊ณ , ์ดํ•ดํ•˜๊ธฐ ์‰ฌ์šด Mermaid ๋„ํ‘œ๋กœ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.

5. ํ•˜์ด๋ธŒ๋ฆฌ๋“œ ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ฒ€์ƒ‰

  • ๊ธฐ๋Šฅ: ๋„ค์ด๋ฒ„ ๋ธ”๋กœ๊ทธ(ํ™˜์ž ๊ฒฝํ—˜๋‹ด)์™€ ์นด์นด์˜ค ์›น(์ •๋ณด)์„ ๋™์‹œ์— ๊ฒ€์ƒ‰ํ•˜์—ฌ ์‹ค์งˆ์ ์ธ ๊ฟ€ํŒ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ› ๏ธ ๊ธฐ์ˆ  ์Šคํƒ & ๊ตฌ์กฐ

  • Core: Python 3.12, mcp, FastMCP
  • Dexcom: pydexcom (Direct Share API)
  • Web: Starlette (SSE Server), Uvicorn
  • Infra: Docker, Fly.io (Always-on configured)
t1d-mcp/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ cgm/             # ํ˜ˆ๋‹น ๋ฐ์ดํ„ฐ (Dexcom, Nightscout)
โ”‚   โ”œโ”€โ”€ treatment/       # ์ธ์А๋ฆฐ ๊ณ„์‚ฐ & ์‹œ๊ฐํ™”
โ”‚   โ”œโ”€โ”€ community/       # ํ•˜์ด๋ธŒ๋ฆฌ๋“œ ๊ฒ€์ƒ‰
โ”‚   โ”œโ”€โ”€ nutrition/       # ์˜์–‘ ์ •๋ณด DB
โ”‚   โ”œโ”€โ”€ sse.py           # ์›น ์„œ๋ฒ„ ์—”ํŠธ๋ฆฌํฌ์ธํŠธ
โ”‚   โ””โ”€โ”€ main.py          # MCP ๋„๊ตฌ ์ •์˜
โ””โ”€โ”€ tests/               # ๋‹จ์œ„ ํ…Œ์ŠคํŠธ (100% Coverage)

๐Ÿš€ ์„ค์น˜ ๋ฐ ์‹คํ–‰

๋กœ์ปฌ ๊ฐœ๋ฐœ

uv sync
uv run uvicorn src.sse:app --host 0.0.0.0 --port 8080 --reload

์„œ๋ฒ„ ๋ฐฐํฌ

์ƒ์„ธํ•œ ๋ฐฐํฌ ๋ฐฉ๋ฒ•์€ DEPLOYMENT.md ๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.


โš ๏ธ ๋ฉด์ฑ… ์กฐํ•ญ (Medical Disclaimer)

๋ณธ ์„œ๋น„์Šค๋Š” ์˜๋ฃŒ ๊ธฐ๊ธฐ๊ฐ€ ์•„๋‹ˆ๋ฉฐ, ์ œ๊ณต๋˜๋Š” ์ •๋ณด๋Š” ์ฐธ๊ณ ์šฉ์ž…๋‹ˆ๋‹ค. ํˆฌ์•ฝ ๋ฐ ์ฒ˜์น˜ ๊ฒฐ์ •์€ ๋ฐ˜๋“œ์‹œ ์ „๋ฌธ์˜์˜ ์ƒ๋‹ด๊ณผ ์ž๊ฐ€ํ˜ˆ๋‹น์ธก์ • ๊ฒฐ๊ณผ์— ๋”ฐ๋ผ์•ผ ํ•ฉ๋‹ˆ๋‹ค.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured