Oura Ring Mcp

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

Connect your Oura Ring to Claude AI assistants. Health metrics with smart analysis tools.

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

概覽

AI 產生的概覽

將 Oura Ring 帳號接入 AI 助理,讀取睡眠、準備度、活動與健康資料並進行趨勢分析。

可以做什麼
  • 取得睡眠、每日睡眠分數、準備度、活動、運動、冥想工作階段、心率、壓力、血氧與標籤資料
  • 執行智慧分析:異常偵測、睡眠品質與睡眠債、指標相關性、期間與標籤條件比較、最佳睡眠預測因素、HRV 趨勢
  • 讀取今日、近一週、30 天基準、每月洞察與標籤使用情況的摘要資源
  • 使用內建提示詞進行每週回顧、睡眠最佳化、恢復檢查、週間比較與標籤分析
適用情境
適合希望助理以淺顯語言解讀自身 Oura 資料的情境:每日狀態檢查、恢復與訓練決策、睡眠與 HRV 趨勢,以及跨週或依標籤條件的比較。
執行需求
以 npm 套件形式透過 stdio 在本機執行(需 Node 18 以上),也可自行遠端部署。需要 Oura 帳號,並在 OURA_ACCESS_TOKEN 提供個人存取權杖,或使用 OURA_CLIENT_ID 與 OURA_CLIENT_SECRET 進行 OAuth;OAuth 憑證會存放在本機憑證檔案中。
安裝前請注意
需要存取敏感健康資料與 OAuth 密鑰(OURA_ACCESS_TOKEN、OURA_CLIENT_SECRET),OAuth 憑證會寫入本機憑證檔案。遠端部署方案還會加入靜態 bearer 權杖(MCP_SECRET),並透過託管端點暴露你的資料。工具為唯讀,但助理可查看並摘要你的個人健康紀錄。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Oura Ring Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

其他 MCP 客戶端

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

README

Oura MCP Server

[npm version] [MCP Registry] [CI]

An MCP server that connects your Oura Ring to Claude and other AI assistants. Get human-readable insights about your sleep, readiness, and activity—not just raw JSON.

Features

[Demo]
  • Smart formatting - Durations in hours/minutes, scores with context ("85 - Optimal")
  • Sleep analysis - Sleep stages, efficiency, HRV, and biometrics
  • Readiness tracking - Recovery scores and contributor breakdown
  • Activity data - Steps, calories, and intensity breakdown
  • Health metrics - Heart rate, SpO2, stress, cardiovascular age
  • Smart analysis - Anomaly detection, correlations, trend analysis
  • Tags support - Compare metrics with/without conditions

See example outputs — what Claude returns for sleep, readiness, weekly summaries, and smart analysis

Quick Start

1. Install

bash
npm install -g oura-ring-mcp

Or use directly with npx (no install needed):

bash
npx oura-ring-mcp

2. Authenticate with Oura

Option A: Personal Access Token (simpler)

  1. Go to cloud.ouraring.com/personal-access-tokens
  2. Create a new token
  3. Set OURA_ACCESS_TOKEN in your Claude Desktop config (see below)

Option B: OAuth CLI Flow

  1. Create an OAuth app at developer.ouraring.com
    • Set Redirect URI to http://localhost:3000/callback
  2. Run the auth flow:
    bash
    export OURA_CLIENT_ID=your_client_idexport OURA_CLIENT_SECRET=your_client_secretnpx oura-ring-mcp auth
  3. Credentials are saved to ~/.oura-mcp/credentials.json

3. Configure Claude Desktop

Add to claude_desktop_config.json:

With Personal Access Token:

json
{  "mcpServers": {    "oura": {      "command": "npx",      "args": ["oura-ring-mcp"],      "env": {        "OURA_ACCESS_TOKEN": "your_token_here"      }    }  }}

With OAuth (after running npx oura-ring-mcp auth):

json
{  "mcpServers": {    "oura": {      "command": "npx",      "args": ["oura-ring-mcp"]    }  }}

The server reads credentials from ~/.oura-mcp/credentials.json. To enable automatic token refresh, add your OAuth credentials:

json
{  "mcpServers": {    "oura": {      "command": "npx",      "args": ["oura-ring-mcp"],      "env": {        "OURA_CLIENT_ID": "your_client_id",        "OURA_CLIENT_SECRET": "your_client_secret"      }    }  }}

Restart Claude Desktop. Requires Node >=18.

What Can I Ask?

Daily check-ins:

  • "How did I sleep last night?"
  • "Am I recovered enough to work out today?"
  • "What's my body telling me right now?"

Patterns & trends:

  • "Do I sleep better on weekends?"
  • "What time should I go to bed for optimal sleep?"
  • "Is my HRV improving or declining?"

Correlations & insights:

  • "Does alcohol affect my sleep quality?"
  • "What predicts my best sleep nights?"
  • "How does exercise timing affect my recovery?"

Comparisons:

  • "Compare my sleep this week vs last week"
  • "How do I sleep after meditation vs without?"
  • "What changed when I started taking magnesium?"

Anomalies:

  • "Are there any unusual readings in my data?"
  • "Why was my readiness so low yesterday?"
  • "Find days where my metrics were off"

Available Tools

Data Retrieval

ToolDescription
get_sleepSleep data with stages, efficiency, HR, HRV
get_daily_sleepDaily sleep scores with contributors
get_readinessReadiness scores and recovery metrics
get_activitySteps, calories, intensity breakdown
get_workoutsWorkout sessions with type and intensity
get_sessionsMeditation and relaxation sessions
get_heart_rateHR readings throughout the day
get_stressStress levels and recovery time
get_spo2Blood oxygen and breathing disturbance
get_tagsUser-created tags and notes

Smart Analysis

ToolDescription
detect_anomaliesFind unusual readings using outlier detection
analyze_sleep_qualitySleep analysis with trends, patterns, debt
correlate_metricsFind correlations between health metrics
compare_periodsCompare this week vs last week
compare_conditionsCompare metrics with/without a tag
best_sleep_conditionsWhat predicts your good vs poor sleep
analyze_hrv_trendHRV trend with rolling averages

Resources

ResourceDescription
oura://todayToday's health summary
oura://weekly-summaryLast 7 days with averages
oura://baselineYour 30-day averages and normal ranges
oura://monthly-insights30-day analysis with trends and anomalies
oura://tag-summaryYour tags and usage frequency

Prompts

PromptDescription
weekly-reviewComprehensive weekly health review
sleep-optimizationIdentify what leads to your best sleep
recovery-checkShould you train hard or rest today?
compare-weeksThis week vs last week comparison
tag-analysisHow a specific tag affects your health

Remote Deployment (Railway)

Deploy the MCP server for remote access. The server proxies OAuth through Oura, so users authenticate directly with their Oura account — no PAT needed.

1. Create an Oura OAuth App

  1. Go to Oura OAuth Applications
  2. Create a new application
  3. Set the Redirect URI to: https://your-app.railway.app/oauth/callback
  4. Note the Client ID and Client Secret

2. Deploy

bash
# Install Railway CLInpm install -g @railway/cli
# Login, init, and deployrailway loginrailway initrailway up

3. Set Environment Variables

In the Railway dashboard, add:

VariableDescription
OURA_CLIENT_IDFrom your Oura OAuth app
OURA_CLIENT_SECRETFrom your Oura OAuth app
NODE_ENVproduction
MCP_SECRET(Optional) Static bearer token for Claude Desktop (openssl rand -base64 32)
OURA_ACCESS_TOKEN(Optional) PAT fallback if not using OAuth (MCP_SECRET required)

Railway automatically sets PORT and RAILWAY_PUBLIC_DOMAIN.

4. Connect from Claude.ai

Use the connector in Claude.ai:

  1. Go to Settings > MCP Connectors > Add
  2. Enter your server URL: https://your-app.railway.app (without /mcp)
  3. Leave OAuth Client ID and Secret empty (dynamic registration handles it)
  4. You'll be redirected to Oura to authorize access to your data

5. Connect from Claude Desktop

For Claude Desktop, use MCP_SECRET + OURA_ACCESS_TOKEN:

json
{  "mcpServers": {    "oura-remote": {      "url": "https://your-app.railway.app/mcp",      "headers": {        "Authorization": "Bearer your_mcp_secret_here"      }    }  }}

Local Testing

bash
# With Oura OAuth (full flow)OURA_CLIENT_ID=your_id OURA_CLIENT_SECRET=your_secret pnpm start:http
# With static secret only (requires OURA_ACCESS_TOKEN)OURA_ACCESS_TOKEN=your_pat MCP_SECRET=test-secret pnpm start:http
# Verify health endpointcurl http://localhost:3000/health
# Check OAuth metadata (only available when OURA_CLIENT_ID is set)curl http://localhost:3000/.well-known/oauth-authorization-server
# Test authenticated request (with static secret)curl -X POST http://localhost:3000/mcp \  -H "Authorization: Bearer test-secret" \  -H "Content-Type: application/json" \  -d '{"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{}},"id":1}'

Contributing

See CLAUDE.md for architecture details and development guidelines.

License

MIT

來源:README.md,提交 347624e

工具

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

版本歷史

1
  1. v0.1.4最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

    請在儲存庫或註冊中心條目中宣告授權條款。