FreeStyle Libre (LibreLinkUp)

io.github.osjayaprakash由 GitHub 帳號 osjayaprakash 發布v0.1.1更新於 Oct 24, 2026

Read-only FreeStyle Libre CGM glucose readings, graphs and logbook via LibreLinkUp

已驗證STDIO僅桌面位置與生活資料與分析

概覽

AI 產生的概覽

唯讀 MCP 伺服器,讓助理透過 LibreLinkUp 追蹤者帳號取得 FreeStyle Libre 連續血糖監測的讀值、圖表與日誌資料。

可以做什麼
  • 列出 LibreLinkUp 帳號所追蹤的人員
  • 取得最新血糖讀值,含趨勢箭頭與讀值距今時間
  • 取得約最近 12 小時的讀值序列(圖表)
  • 取得約最近兩週的記錄事件(日誌)
  • 讀值包含帳號單位下的數值、mg/dL 數值、單位、本地與 UTC 時間戳,以及偏高/偏低標記
適用情境
適合想讓助理查詢自己或所追蹤對象的連續血糖監測資料,並整理近期趨勢、目前讀值或記錄事件,而不必開啟 LibreLinkUp 應用程式的情境。
執行需求
以 stdio 方式在本機執行,可用 uvx、複製後以 uv 或 Docker 啟動。需要一個 LibreLinkUp 追蹤者帳號(在 LibreLink 應用程式邀請並在 LibreLinkUp 接受),以及環境變數 LIBRELINKUP_EMAIL 與 LIBRELINKUP_PASSWORD;LIBRELINKUP_REGION 為選用,預設 US。需要可連線至 LibreLinkUp API 的網路。
安裝前請注意
帳號密碼透過環境變數 LIBRELINKUP_PASSWORD 傳入,請勿寫入共用設定。血糖讀值與病患姓名屬於健康資料;選用的 Langfuse 追蹤預設只記錄工具名稱、耗時、病患 UUID 與錯誤類型,但設定 LANGFUSE_CAPTURE_DATA=true 會把讀值與姓名送到所設定的 Langfuse 執行個體。存取為唯讀。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 FreeStyle Libre (LibreLinkUp),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

freestyle-libre-mcp

[CI] [PyPI] [Python] [Docker] [License: MIT]

An MCP server that gives Claude (or any MCP client) read-only access to FreeStyle Libre CGM glucose readings shared through LibreLinkUp. It talks to the LibreLinkUp API with its own small async client (librelinkup_mcp.core); the API behaviour it relies on follows pylibrelinkup.

Tools

ToolReturns
list_patientsPeople the LibreLinkUp account follows
get_current_glucoseLatest reading with trend arrow
get_glucose_graphReadings from about the last 12 hours, oldest first
get_glucose_logbookLogged events from about the last 2 weeks, oldest first

Every reading tool takes an optional patient: a name ("Ann Lee", "ann") or a patient_id from list_patients. It can be omitted when the account follows one person.

Readings include value in the account's unit, value_mg_dl, unit, timestamp (the sensor's local time), timestamp_utc, and is_high/is_low flags. The current reading also has age_minutes, since LibreLinkUp returns the last known value when the sensor or phone is out of range.

Setup

For a step-by-step guide, including account setup and troubleshooting, see the installation guide. Full documentation is at https://freestyle-libre-mcp.readthedocs.io.

You need a LibreLinkUp follower account: invite it from the LibreLink app, accept the invite in the LibreLinkUp app, and accept any terms there before using this server.

bash
git clone https://github.com/osjayaprakash/freestyle-libre-mcp.git && cd freestyle-libre-mcpuv sync
VariableRequiredDefaultMeaning
LIBRELINKUP_EMAILyesFollower account email
LIBRELINKUP_PASSWORDyesFollower account password
LIBRELINKUP_REGIONnoUSOne of US, EU, EU2, AE, AP, AU, CA, DE, FR, JP, LA, RU

If the region is wrong, the first tool call tells you which one to set.

Run from PyPI

No clone needed; uv fetches and runs the published package:

bash
uvx freestyle-libre-mcp

In a client config, use "command": "uvx", "args": ["freestyle-libre-mcp"].

Run with Docker

The server speaks MCP over stdio, so keep -i:

bash
docker run -i --rm \  -e LIBRELINKUP_EMAIL -e LIBRELINKUP_PASSWORD -e LIBRELINKUP_REGION \  ghcr.io/osjayaprakash/freestyle-libre-mcp:latest

In a client config, use "command": "docker" with those arguments, and pass the variables through the client's env block.

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "librelinkup": {      "command": "uv",      "args": ["--directory", "/absolute/path/to/freestyle-libre-mcp", "run", "freestyle-libre-mcp"],      "env": {        "LIBRELINKUP_EMAIL": "[email protected]",        "LIBRELINKUP_PASSWORD": "your-password",        "LIBRELINKUP_REGION": "US"      }    }  }}

Claude Code

bash
claude mcp add librelinkup \  -e [email protected] \  -e LIBRELINKUP_PASSWORD=your-password \  -e LIBRELINKUP_REGION=US \  -- uv --directory /absolute/path/to/freestyle-libre-mcp run freestyle-libre-mcp

Langfuse tracing (optional)

Each tool call becomes a Langfuse trace, with a child span for the LibreLinkUp API call. Install the extra and set the keys:

bash
uv sync --extra langfuse

In the server command, use run --extra langfuse freestyle-libre-mcp instead of run freestyle-libre-mcp.

VariableMeaning
LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEYTracing is on only when both are set
LANGFUSE_BASE_URLLangfuse URL for self-hosted or regional instances (default: Langfuse Cloud)
LANGFUSE_CAPTURE_DATAtrue to include tool inputs, outputs and error messages. Default false

Privacy: glucose readings and patient names are health data. By default, traces hold only tool names, timings, patient UUIDs, and error class names. Setting LANGFUSE_CAPTURE_DATA=true sends readings and names to your Langfuse instance; only do that with an instance you trust, such as a self-hosted one.

Development

bash
uv syncuv run pytest            # offline suiteuv run pytest -m live    # hits the real API; needs LIBRELINKUP_EMAIL/PASSWORDuv run ruff check src tests && uv run ruff format --check src tests

License

MIT

來源:README.md,提交 2cd1f5e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 27, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分