
Oura Ring
io.github.osjayaprakash由 GitHub 帳號 osjayaprakash 發布v0.1.0更新於 Oct 27, 2026
Read-only Oura Ring sleep, readiness, activity, stress and heart rate data (OAuth2)
概覽
唯讀 MCP 伺服器,讓助理透過 Oura API v2 查詢你的 Oura Ring 睡眠、準備度、活動、壓力、血氧、運動與心率資料。
- 可以做什麼
- 讀取個人資料,例如年齡、體重、身高與生理性別
- 取得睡眠、準備度、活動、壓力、血氧與復原力的每日分數及組成因素
- 取得每晚睡眠與小睡的階段、效率、心率與 HRV
- 列出運動以及冥想、呼吸與休息工作階段
- 依時間範圍取得心率樣本的最小、最大與平均 bpm
- 每日查詢預設最近 7 天(上限 90 天),心率預設最近 24 小時(上限 7 天)
- 適用情境
- 適合讓助理檢視你的 Oura 指標、找出睡眠或準備度的趨勢,或依日期範圍彙整活動與壓力,而不必手動匯出資料。
- 執行需求
- 以 stdio 在本機執行,可透過 uvx、Docker 或複製儲存庫搭配 uv 啟動。需要一個 Oura API 應用程式,提供 OURA_CLIENT_ID 與 OURA_CLIENT_SECRET,重新導向 URI 為 OAuth 登入會把權杖存到本機檔案;OURA_TIMEZONE 與 OURA_TOKEN_FILE 為選用。Gen3 與 Ring 4 使用者需有有效的 Oura 會員。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Oura Ring,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
oura-ring-python-mcp
[CI] [PyPI] [Python] [Docker] [License: MIT]
An MCP server that gives Claude (or any MCP client) read-only access to your Oura Ring
data: sleep, readiness, activity, stress, SpO2, resilience, workouts, sessions and heart
rate. It talks to the Oura API v2 with its own small
async client (oura_ring_mcp.core).
Tools
Daily tools take optional start_date and end_date (YYYY-MM-DD, both inclusive).
Without them they cover the 7 days ending today; ranges are limited to 90 days. Each
result echoes the range it covers, so the model always knows what "today" meant.
get_heart_rate takes optional start_datetime and end_datetime (ISO 8601). Without
them it covers the last 24 hours; windows are limited to 7 days.
Per-interval series (5-minute activity classes, MET, sleep phases, in-sleep heart rate and HRV curves) are left out of results to keep them small; the scores, totals and averages are kept.
Setup
For a step-by-step guide, including creating the Oura application and troubleshooting, see the installation guide. Full documentation is at https://oura-ring-python-mcp.readthedocs.io.
The server signs in with OAuth2, since Oura has deprecated personal access tokens. You
need an Oura API application (a client ID and secret) whose redirect URIs include
http://localhost:47651/callback, with the scopes email, personal, daily,
heartrate, workout, session, spo2 and stress allowed (resilience needs
stress). Gen3 and Oura Ring 4 users need an active Oura
membership for the API to return data.
Sign in once. This opens the browser, catches Oura's redirect on localhost, and saves
the tokens to ~/.config/oura-ring-mcp/tokens.json (readable only by you):
From then on the server refreshes the access token by itself (Oura issues them for 30 days)
and saves each new single-use refresh token. Run auth again only if you revoke access
or the saved refresh token is lost.
If the redirect URI isn't http://localhost:<port>/... (or you're signing in over SSH
or in Docker), auth asks you to paste the URL the browser ended up on instead; force
that with auth --paste.
Run from PyPI
No clone needed; uv fetches and runs the published package:
In a client config, use "command": "uvx", "args": ["oura-ring-python-mcp"].
Run with Docker
Sign in on the host first (above), then mount the token folder so the container can
read the tokens and save refreshed ones. The server speaks MCP over stdio, so keep -i:
The image reads the tokens from /tokens/tokens.json. --user lets the container read
and update your token file on Linux; Docker Desktop on macOS and Windows doesn't need it.
To sign in from the container instead, run it with -it and the command auth --paste.
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:
Claude Code
Langfuse tracing (optional)
Each tool call becomes a Langfuse trace, with a child span for each Oura API call. Install the extra and set the keys:
In the server command, use run --extra langfuse oura-ring-python-mcp instead of
run oura-ring-python-mcp.
Privacy: sleep, heart rate and activity data are health data. By default, traces hold
only tool names, timings and error class names. Setting LANGFUSE_CAPTURE_DATA=true
sends your data to your Langfuse instance; only do that with an instance you trust, such
as a self-hosted one.
Development
Releasing
Bump version in pyproject.toml and both versions in server.json (a test checks they
match), commit, then push a tag:
The tag publishes to PyPI (pypi.yml, needs the PYPI_API_TOKEN secret), to
ghcr.io/osjayaprakash/oura-ring-python-mcp (docker.yml), and then to the
MCP Registry (mcp-registry.yml).
License
來源:README.md,提交 b9c92a3
工具
0版本歷史
1- v0.1.0最新Sep 27, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分