Skip to main content
Glama
Oura MCP Server

Oura MCP Server

by echocharlie

Oura MCP server

CI

A Model Context Protocol (MCP) server that gives Claude read-only access to your Oura ring biometrics via the Oura API v2.

It's designed to sit alongside a Strava connector: every tool is namespaced oura_* and keyed by ISO date (YYYY-MM-DD), so Claude can join Oura recovery data against Strava training load on date and answer questions like "how did last week's hard sessions affect my sleep, stress, and next-day readiness?" in one reasoning step.

Claude running the Oura connector — daily summary with an overreach day highlighted

Illustrative example using sample data, not real biometrics.

Tools

Tool

What it returns

Default window

oura_get_daily_summary

Start here. One row/day: readiness, sleep & activity scores, total sleep, bedtime, resting HR, HRV, respiratory rate, temp deviation, breathing disturbance, steps, active calories, daytime stress. The cross-source join table.

30 days

oura_get_sleep_time

Oura's bedtime guidance: optimal bedtime window + recommendation (what Oura thinks you should do, vs. daily_summary's actual bedtime).

30 days

oura_get_sleep_detail

Per-night architecture: bedtime, sleep stages (deep/REM/light), efficiency, latency, avg/lowest HR, HRV, respiratory rate.

14 days

oura_get_readiness_detail

Readiness with every contributor (hrv_balance, resting HR, recovery index, body temp, previous-day activity, sleep balance…) — explains why readiness moved.

30 days

oura_get_stress_resilience

Daytime stress vs. recovery minutes, day summary, and long-term resilience level + contributors.

30 days

oura_get_workouts

Workouts as logged by Oura — reconcile against Strava, catch missed sessions, see intensity labels.

30 days

oura_get_baselines

Slow-moving baselines: overnight SpO2, breathing disturbance, pulse wave velocity (arterial stiffness), vascular age, VO2 max.

90 days

oura_get_heart_rate

Fine-grained HR timeseries, tagged by source (awake/rest/sleep/workout). Aggregated stats by default.

24 hours

All output is compact CSV with units stated in the column names.

Related MCP server: Oura Ring MCP Server

Setup

python -m venv .venv && source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -e .

New here? The full setup & configuration guide walks through install, token creation, the Claude Desktop config, common mistakes, and troubleshooting.

Authentication

This server uses an Oura Personal Access Token (PAT):

  1. Go to https://cloud.ouraring.com/personal-access-tokens and create a token.

  2. Copy .env.example to .env and paste the token into OURA_PERSONAL_ACCESS_TOKEN (for local dev), or set it in the Claude Desktop env block below.

Never commit your real token — .env is gitignored.

Run / test

fastmcp dev oura_mcp.py   # opens the MCP Inspector to exercise each tool manually

Run the tests (offline — no token or network needed):

pip install -e ".[dev]"
pytest -q

Install in Claude Desktop

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\) and add:

{
  "mcpServers": {
    "oura": {
      "command": "/ABSOLUTE/PATH/TO/oura-mcp-server/.venv/bin/python",
      "args": ["/ABSOLUTE/PATH/TO/oura-mcp-server/oura_mcp.py"],
      "env": {
        "OURA_PERSONAL_ACCESS_TOKEN": "your-token-here"
      }
    }
  }
}

Use the venv's Python interpreter and an absolute path to oura_mcp.py (older configs pointing at server.py still work — it's kept as a shim). Fully quit and reopen Claude Desktop after editing. The oura_* tools then appear in the tools/connectors menu, ready to use alongside your Strava tools.

Usage & examples

Once the server is connected, just ask Claude in plain language — it picks the right tool(s) and date ranges. A few patterns that work well:

Oura on its own

  • "Pull my Oura daily summary for the last two weeks."

  • "Did my readiness drop after any night this month? Show me why." → oura_get_readiness_detail

  • "Break down last night's sleep stages and compare them to my 14-day average." → oura_get_sleep_detail

  • "Which days this month were most stressful, and how's my resilience trending?" → oura_get_stress_resilience

  • "How's my VO2 max and SpO2 trending over the last 90 days?" → oura_get_baselines

  • "What was my heart rate during yesterday's workout vs. overnight?" → oura_get_heart_rate

The headline use case — Oura + Strava together

Because both connectors are date-keyed, Claude can join them on date in one step:

  • "Compare last month's Strava training load against my Oura readiness and sleep. Flag any days I overreached (readiness or HRV dropped the morning after a hard session)."

  • "After my long runs, how much does my resting heart rate rise the next morning, and how long until it recovers to baseline?"

  • "Do my hardest training days hurt that night's deep sleep? Show the correlation."

  • "Reconcile my Strava activities with Oura's logged workouts for the past month — did Oura catch anything Strava missed?" → oura_get_workouts

  • "Build me a weekly table: Strava distance & suffer score next to Oura sleep score, avg HRV, and next-day readiness, so I can see if my training plan is sustainable."

What the data looks like

Tools return compact CSV with units in the column names — easy for Claude to reason over and join. For example, oura_get_daily_summary returns rows like:

date,readiness_score,sleep_score,activity_score,total_sleep_h,bedtime,resting_hr_bpm,avg_hrv_ms,resp_rate_brpm,temp_deviation_c,breathing_disturbance_idx,steps,active_cal,stress_high_min,day_summary
2026-06-05,78,84,95,8.31,23:36,52,79,13.375,-0.16,0,8122,1211,360,stressful
2026-06-06,63,60,97,5.14,05:49,74,12,18.25,-0.19,6,7667,941,240,stressful
2026-06-07,85,87,96,7.95,01:01,60,37,17.125,0.13,1,7768,919,30,normal

Here the high-load, high-stress day (Jun 5: 1,211 active cal, 360 stressful min) is followed by a readiness crash (84→63), a resting-HR spike (52→74 bpm), and an HRV collapse (79→12 ms) — exactly the training-to-recovery signal this server is built to surface. Note the leading indicators moving with it: respiratory rate jumps 13.4→18.3 brpm and breathing disturbance 0→6 on the same night.

Tip: start broad with oura_get_daily_summary, then drill into a specific day or signal with the detail tools (oura_get_readiness_detail, oura_get_sleep_detail). Keep date ranges modest to stay fast and within Oura's rate limit.

Notes & limits

  • Read-only. No tool writes to your Oura account.

  • Dates are ISO YYYY-MM-DD and the range is inclusive. Heart rate uses ISO 8601 datetimes.

  • Some metrics are sparse or ring/firmware-dependent (VO2 max, cardiovascular age, resilience need enough history); rows show blanks where a metric wasn't measured.

  • VO2 max is a measurement event, not a daily value — often only a few readings per quarter, so most rows are blank by design. oura_get_baselines appends a footer with the latest reading in the window so blanks aren't misread as "no data."

  • Overnight SpO2 must be enabled in the Oura app (Settings → your ring) and needs sleep sessions longer than ~3 hours to register; it also increases battery drain.

  • pulse_wave_velocity_m_s (meters/second) is the raw arterial-stiffness measure (lower = more elastic); vascular_age_years is a derived presentation of the same signal. Prefer PWV for tracking real change over time.

  • Oura's rate limit is ~5000 requests/day; tools default to modest windows and paginate automatically.

Available Tools

8 tools
oura_get_baselinesA
Read-only

Slow-moving health baselines: SpO2, breathing, arterial stiffness, VO2 max.

These trend over weeks/months, so the default window is 90 days. Use to track long-term vascular and aerobic health alongside training history.

CSV columns: date, spo2_avg_pct (overnight blood-oxygen %), breathing_disturbance_index, pulse_wave_velocity_m_s, vascular_age_years, vo2_max_ml_kg_min

pulse_wave_velocity_m_s (meters/second) is the RAW arterial-stiffness measurement and the most clinically meaningful vascular metric here — lower is better/more elastic; it is the same class of measure (PWV) used in hypertension research. vascular_age_years is a derived presentation of it, so prefer PWV when tracking real change.

IMPORTANT — sparsity: vo2_max is a measurement EVENT, not a daily value (often only a handful of readings per quarter), so most rows will be blank for it. Blank does NOT mean "no VO2 data" — read the footer, which reports the most recent reading in the window. cardiovascular_age/VO2 also require a compatible ring/firmware.

Inputs: end_date, start_date. Returns: result

oura_get_daily_summaryA
Read-only

One row per day joining readiness, sleep, activity, and recovery signals.

THIS IS THE CROSS-SOURCE JOIN TABLE. Use it first for almost any question about how training/activity relates to recovery — it lets you join Oura against a Strava connector on date in one step. Reach for the detail tools only to drill into a specific signal.

CSV columns (units in the name): date, readiness_score(0-100), sleep_score(0-100), activity_score(0-100), total_sleep_h, bedtime (HH:MM local, when sleep started), resting_hr_bpm (lowest nightly HR, a resting-HR proxy), avg_hrv_ms, resp_rate_brpm (overnight respiratory rate), temp_deviation_c (body temp vs baseline), breathing_disturbance_idx, steps, active_cal, stress_high_min (stressful daytime minutes), day_summary

Defaults to the last 30 days. Higher readiness/sleep/activity scores are better; a rising resting_hr or positive temp_deviation often signals incomplete recovery. resp_rate_brpm and breathing_disturbance_idx are leading illness/strain flags — a sustained rise in either often precedes a subjective sense of getting sick. bedtime is included because sleep timing (not just duration) drives next-day recovery, and it anchors any analysis of late meals/alcohol relative to sleep.

Inputs: end_date, start_date. Returns: result

oura_get_heart_rateA
Read-only

Fine-grained heart-rate timeseries (one sample every few minutes).

This is high-volume data, so default to a SHORT window (<= ~2 days) and the 'summary' format. Oura tags each sample with a source: awake, rest, sleep, workout, etc. — useful for isolating workout HR or overnight resting HR around hard training days.

summary -> CSV with one row per source: source, samples, min_bpm, avg_bpm, max_bpm, plus a final 'all' row. raw -> CSV: timestamp, bpm, source (capped at limit; narrow the window for more).

Inputs: limit, end_datetime, start_datetime, response_format. Returns: result

oura_get_readiness_detailA
Read-only

Daily readiness with every contributor broken out — explains WHY readiness moved.

Use when oura_get_daily_summary shows a readiness change and you want the driver. Each contributor is a 0-100 sub-score (higher = better). A low hrv_balance or resting_heart_rate contributor the morning after a hard session points to load.

CSV columns: date, score, temp_deviation_c, activity_balance, body_temperature, hrv_balance, previous_day_activity, previous_night, recovery_index, resting_heart_rate, sleep_balance

Defaults to the last 30 days.

Inputs: end_date, start_date. Returns: result

oura_get_sleep_detailA
Read-only

Per-night sleep architecture for drilling into specific nights.

Use after oura_get_daily_summary when you need stage breakdown or sleep timing. One row per sleep period (a day may have a nap plus the main sleep).

Concise CSV columns: date, type, bedtime_start, bedtime_end, total_sleep_h, time_in_bed_h, deep_h, rem_h, light_h, awake_h, efficiency_pct, latency_min, avg_hr_bpm, lowest_hr_bpm, avg_hrv_ms, resp_rate_brpm

Defaults to the last 14 days. Use 'detailed' for raw fields and 5-min hypnogram.

Inputs: end_date, start_date, response_format. Returns: result

oura_get_sleep_timeA
Read-only

Oura's own bedtime guidance: the optimal bedtime window and what it recommends.

Use to answer "am I going to bed at the right time?" — distinct from oura_get_daily_summary's bedtime, which reports when you ACTUALLY slept. This is what Oura thinks you SHOULD do, derived from your circadian/temperature data.

CSV columns: date, optimal_bedtime_start, optimal_bedtime_end (local HH:MM; blank when Oura couldn't compute a window), recommendation, status

recommendation is one of: follow_optimal_bedtime — you're aligned; keep the current window earlier_bedtime — go to bed earlier later_bedtime — go to bed later earlier_wake_up_time / later_wake_up_time — adjust the wake side instead

status is one of: optimal_found — a concrete window was computed (times populated) only_recommended_found — Oura has a direction but NOT enough data for a window, so the time columns are blank. This is normal, not an error. not_enough_nights / no_data — insufficient history in the range.

Note: Oura returns these times as raw second-offsets from local midnight; this tool decodes them to HH:MM. A run of identical earlier_bedtime rows means Oura has been persistently flagging late sleep timing — worth reading as a trend, not a single day.

Inputs: end_date, start_date. Returns: result

oura_get_stress_resilienceA
Read-only

Daytime stress load plus long-term resilience — the daytime side of recovery.

Combines the daily_stress and daily_resilience collections into one table so you can see whether high-load days accumulate physiological stress and erode resilience.

CSV columns: date, stress_high_min (stressful daytime minutes), recovery_high_min (restorative minutes), day_summary (restored|normal|stressful), resilience_level (limited|adequate|solid|strong|exceptional), sleep_recovery, daytime_recovery, stress (the last three are 0-100 resilience contributors).

Defaults to the last 30 days. Resilience needs ~weeks of data to populate.

Inputs: end_date, start_date. Returns: result

oura_get_workoutsA
Read-only

Workouts as logged by Oura — cross-check or supplement Strava activities.

Oura auto-detects and lets you tag workouts. Use this to reconcile against a Strava connector (match on date/time), catch sessions Strava missed, or see Oura's intensity label. source shows how the workout was recorded (e.g. auto_detected, manual, confirmed).

CSV columns: date, activity, intensity (easy|moderate|hard), start_time, end_time, duration_min, distance_km, calories, source, label

Defaults to the last 30 days.

Inputs: end_date, start_date. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct data domain (stress, sleep detail, bedtime guidance, readiness breakdown, workouts, baselines, HR timeseries) with no overlap. The descriptions explicitly clarify differences, like separating actual bedtime from recommended bedtime.

    Naming Consistency5/5

    All tools follow the consistent pattern 'oura_get_<noun_phrase>' in snake_case. The verb 'get' is used uniformly, and the noun phrases clearly indicate the data type (e.g., 'stress_resilience', 'daily_summary', 'sleep_detail').

    Tool Count5/5

    With 8 tools, the server covers the major categories of Oura health data without being overly granular or sparse. Each tool earns its place, offering focused access to key metrics while avoiding unnecessary fragmentation.

    Completeness4/5

    The tool set covers most primary Oura data types (sleep, readiness, activity, HR, stress, baselines, workouts). Minor gaps exist, such as missing dedicated tools for user tags or activity detail beyond the summary, but the daily summary serves as a central join table that mitigates this.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides LLMs with access to Oura Ring health data including sleep metrics, activity tracking, heart rate, readiness scores, and other wellness insights through the Oura API v2.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables users to access and query Oura ring health data, including sleep periods, readiness, activity, workouts, heart rate, stress, SpO2, resilience, and more, through Claude.ai or Claude Code using the Oura API v2 with OAuth 2.1 login.
      19
      MIT