
MCP for Oura
link.smirnov由 smirnov.link 發布官方發布者v0.1.1更新於 Nov 4, 2026
Multi-tenant hosted MCP server for Oura Ring — 21 read-only tools, OAuth per user.
概覽
託管的 Oura Ring 連接器,經 OAuth 授權後讓助理透過 21 個唯讀工具讀取你的睡眠、準備度、活動與生理資料。
- 可以做什麼
- 讀取每日快照與單一指標的區間資料:每日摘要、昨晚睡眠、日期區間序列、晨間簡報與每週回顧。
- 檢視活動與標籤資料:訓練紀錄、正念工作階段、日內心率序列、自訂標籤,以及與個人基線的比較。
- 查詢每日健康指標:壓力、血氧、恢復力、心血管年齡、最大攝氧量、建議睡眠時間與休息模式期間。
- 執行分析:標記異常日期,並將記錄的標籤與指定指標做相關性比較。
- 執行診斷,確認連接器已通過驗證且 Oura API 可回應。
- 適用情境
- 適合配戴 Oura Ring 的使用者,想用自然語言向助理詢問睡眠、恢復、壓力與長期趨勢,或需要標籤與指標的相關性分析和異常標記,而不必打開 Oura 應用程式。
- 執行需求
- 遠端 MCP 端點,無需本機安裝。需要 Oura 帳號,並透過伺服器同意頁與 Oura 本身的授權完成 OAuth。需要支援自訂連接器與 OAuth 的 MCP 用戶端。目前受 Oura 開發模式限制,最多 10 名授權使用者。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MCP for Oura,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/link.smirnov%2Fmcp-oura/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"for-oura": {
"type": "http",
"url": "https://mcp-oura.smirnov.link/mcp"
}
}
}README
mcpforoura
[smithery badge] [mcp registry]
Ask your AI assistant about your Oura Ring data in plain language. mcpforoura is a hosted, multi-tenant Model Context Protocol server for Oura Ring, live at https://mcp-oura.smirnov.link/mcp. Connect it to Claude (or any MCP-compatible client), authorize once with Oura, and query your sleep, readiness, activity, biometrics, and long-term trends across 21 read-only tools. Multi-tenant OAuth: each user authenticates to their own Oura account. Read-only. Built on Cloudflare Workers.
Listed on Smithery and the official MCP Registry.
Small-scale connector — currently in Oura's development-mode 10-user cap; production application is pending. Not affiliated with Oura Health Oy.
Status: deployed and serving. 21 tools live — core sleep/readiness/activity data plus biometrics, composite snapshots, and analytics. Phase 5 cycle tools removed pending Oura API support (see "Not available" below). Full build history is in the milestone table.
What you can ask
Once connected, your assistant can answer questions like:
- "How did I sleep last night?" — stages, timing, HR and HRV
- "Is my HRV normal for me this week?" — compared against your personal baseline
- "How am I today?" — a morning briefing of readiness, recommended sleep, and yesterday's stats
- "Does alcohol hurt my recovery?" — correlate a logged tag against any metric
- "Flag any days this month that were unusual for me." — statistical anomaly detection
Those map onto 21 tools across 4 phases (Phase 5 cycle tools removed — see "Not available" below):
Core (M6 originals)
Phase 1 — Activity & tagging
Phase 2 — Tier A daily metrics
Phase 3 — Composite tools
Phase 4 — Analytics
Not available
Cycle analytics (get_cycle_phase, get_cycle_history, compare_metric_across_cycle_phases) were initially planned for Phase 5 but Oura's public v2 API does not expose menstrual cycle endpoints — the Cycle Insights feature lives in the Oura app only. The tools were removed after a beta user hit 404s; see git history (feat/phase-5-cycle and feat/remove-cycle-tools branches) for the reasoning trail. Tag-based logging via get_tags can serve as a partial workaround if users tag period start days manually.
Adding the connector in Claude
- Click Add to Claude. It opens the Add custom connector dialog on claude.ai with the name (
Oura) and URL filled in. Check both values, then click Add. - Approve on this server's consent page → redirected to Oura → consent there → returned to Claude.
To add it by hand, go to Customize → Connectors → Add custom connector and enter https://mcp-oura.smirnov.link/mcp as the URL.
On a Team or Enterprise plan, an Owner adds custom connectors for the whole organization. Owners can use the organization version of the link. Members then connect from Customize → Connectors with their own Oura account.
The connector currently caps at 10 authorized users (Oura's default development-mode limit). To lift the cap, the Oura developer application must be approved for production by Oura.
Architecture
Two-stage OAuth on Cloudflare Workers:
- Flow A (MCP client ↔ this server). Handled by
@cloudflare/workers-oauth-provider. Standard OAuth2 + PKCE + dynamic client registration. Consent page is rendered server-side and includes a CSRF token. - Flow B (this server ↔ Oura). Hand-rolled. Triggered inside Flow A: redirect to
cloud.ouraring.com, exchange the returned code for tokens, fetch/personal_infoto derive a stable user id, store the token AES-GCM encrypted in Cloudflare KV, then complete Flow A with that user id attached asprops.
The /mcp endpoint is stateless: for each request, createMcpHandler from Cloudflare's agents SDK builds an MCP server for the signed-in user, and that server routes the call to a typed tool handler. Each tool builds an OuraClient per call that handles token refresh, 401 disambiguation (re-auth vs. endpoint gated vs. account membership inactive), and 429 exponential backoff.
See CLAUDE.md for the full file-by-file walkthrough.
Setup (operator)
One-time:
-
Oura developer app — cloud.ouraring.com → API Applications → New.
- Redirect URI:
https://<your-host>/oura/callback - Privacy Policy URL:
https://<your-host>/privacy - Terms of Service URL:
https://<your-host>/tos
- Redirect URI:
-
Cloudflare KV namespaces (paste IDs into
wrangler.jsonc):The
mcpforoura-prefix onOAUTH_KVavoids colliding with other workers in the same CF account that also use a binding calledOAUTH_KV. -
First deploy (registers the worker so secrets can attach to it):
-
Secrets:
Keep a copy of
ENCRYPTION_SECRETsomewhere safe — if it's lost, stored tokens cannot be decrypted and all users have to re-authorize. -
Custom domain — if the apex zone is in the same Cloudflare account, the
routesblock inwrangler.jsonc(withcustom_domain: true) attaches the subdomain automatically on next deploy. Otherwise, configure it manually in the Cloudflare dashboard.
Discoverability
The server publishes the following metadata for MCP registry aggregators:
Submitting the server to the official MCP Registry (which PulseMCP, mcp.so, and other aggregators consume from):
Submitting to Smithery: paste https://mcp-oura.smirnov.link/mcp at smithery.ai/new and walk through OAuth during their scan.
Submitting to Glama: use "Add Server" on glama.ai/mcp/servers (they pick up maintainer info from /.well-known/glama.json automatically).
Development
Local development hits the same Oura redirect URI as production, so it's usually easier to test via wrangler dev --remote so the consent flow completes against deployed infrastructure.
Privacy & data handling
- Oura OAuth tokens are encrypted at rest (AES-GCM, per-user HKDF-derived key) in Cloudflare Workers KV.
- Oura ring data is fetched on demand and (when the cache layer ships) may be briefly cached in KV with TTLs ranging from 5 minutes (today's data) to 24 hours (historical).
- Ring data is not logged.
- Disconnecting the connector revokes the OAuth grant; tokens become unreachable.
- See
/privacyon the deployed site for the full policy.
Status
Deployed at https://mcp-oura.smirnov.link on the Smirnov Labs Cloudflare account. Custom domain mapped via the routes block in wrangler.jsonc. Three KV namespaces provisioned (mcpforoura-OAUTH_KV, OURA_TOKENS, OURA_CACHE). Three secrets set (OURA_CLIENT_ID, OURA_CLIENT_SECRET, ENCRYPTION_SECRET).
Build progress
License
MIT. See LICENSE.
來源:README.md,提交 6669c83
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分