
Oura Ring Mcp Server
io.github.jordanburke由 GitHub 帳號 jordanburke 發布v0.2.0更新於 Oct 24, 2026
Oura Ring MCP server for the Oura API v2: sleep, readiness, activity, heart rate, and more.
概覽
讓助理透過單一整合工具讀取 Oura Ring 的睡眠、準備度、活動、心率與運動資料。
- 可以做什麼
- 提供一個整合的 oura_data 工具,以 collection 參數涵蓋 Oura API v2 的 usercollection 端點:每日活動、睡眠、準備度、血氧、壓力、恢復力、心血管年齡、最大攝氧量、工作階段、運動、標籤、休息模式期間、心率、戒指電量、戒指設定與個人資訊。參數包含日期或時間範圍、最新樣本、紀錄 id、分頁游標與稀疏欄位集。它會依集合驗證參數並回傳可據以修正的錯誤訊息。
- 適用情境
- 適合讓助理回答關於自己 Oura 資料的問題,例如上週平均準備度、某晚的睡眠階段、最近一次心率讀數,或本月運動次數與時長。
- 執行需求
- 透過 npm 套件在本機以 stdio 執行,需要 Node.js 24 或更新版本。需要 Oura OAuth2 應用程式:OURA_CLIENT_ID 與 OURA_CLIENT_SECRET,並執行一次 login 指令開啟瀏覽器授權,權杖會寫入本機權杖存放區。也可改用舊版 OURA_API_KEY 個人存取權杖。選用的 httpStream 傳輸使用 PORT 與 HOST。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Oura Ring Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
oura-ring-mcp-server
[Node.js CI] [npm version] [License: MIT]
A Model Context Protocol server for the Oura Ring API v2. Point Claude (or any MCP client) at your Oura data and ask about your sleep, readiness, activity, heart rate, workouts, and more.
Built with somamcp (telemetry + introspection),
functype (typed error handling), and zod.
Design
Rather than one tool per endpoint, the server exposes a single consolidated oura_data tool
with a collection parameter. This keeps the tool schema small (low token cost) while covering
every Oura usercollection endpoint. The tool validates that the parameters you pass are legal
for the chosen collection and returns actionable messages when they are not.
Requirements
-
Node.js 24+ (pinned in
.nvmrc) -
An Oura OAuth2 application — register one at cloud.ouraring.com/oauth/applications to get a client ID and secret. Set the redirect URI to
http://localhost:8080/callbackand enable the read scopes you want. The default requests the full set —email personal daily heartrate tag workout session spo2 ring_configuration stress heart_health— so every collection works (heart_healthin particular gatesvO2_maxanddaily_cardiovascular_age).Oura stopped issuing new personal access tokens in December 2025, so OAuth2 is the path for new setups. A previously-issued PAT still works — see Authentication.
Authentication
The server authenticates to Oura with an OAuth2 access token that it refreshes automatically. You
authorize once with the built-in login command:
This opens your browser for consent, captures the redirect on http://localhost:8080/callback, and
writes the tokens to ~/.config/oura-ring-mcp/tokens.json (override with OURA_TOKEN_STORE). Oura
refresh tokens are single-use, so the server owns and rotates them in that store from then on — you
never put a refresh token in your environment. The MCP server reads the store on startup; re-run
login only if the refresh token is ever revoked.
Legacy PAT: if you still have a valid personal access token, set OURA_API_KEY instead and skip
the OAuth setup. When both are configured, OAuth takes precedence.
Usage
Claude Desktop / Claude Code
Add to your MCP client config (e.g. claude_desktop_config.json):
That runs the server over stdio, which is what most MCP clients expect. Run login once first (see
Authentication) so the token store exists.
Configuration
HTTP transport
For a long-running / networked deployment:
The MCP endpoint is served at /mcp; somamcp also exposes a public GET /health probe.
The oura_data tool
Collections
Daily (start_date/end_date): daily_activity, daily_sleep, daily_readiness,
daily_spo2, daily_stress, daily_resilience, daily_cardiovascular_age, vO2_max,
sleep, sleep_time, session, workout, tag, enhanced_tag, rest_mode_period
Time-series (start_datetime/end_datetime): heartrate, ring_battery_level
List / singleton: ring_configuration, personal_info
Example prompts
- "What was my average readiness score last week?"
- "Show my sleep stages for the night of 2026-06-20."
- "Get my most recent heart rate reading."
- "How many workouts did I log this month and how long were they?"
Development
Try it without a ring by setting OURA_SANDBOX=true to hit Oura's demo dataset.
License
MIT
來源:README.md,提交 8e5e956
工具
0版本歷史
1- v0.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分