Sleep, readiness, HRV, resting heart rate, activity and stress from your Oura Ring
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Oura Ring.
get_daily_summary7 days
get_sleep7 days
get_sleep_score7 days
get_readiness7 days
get_activity7 days
get_heartrate3 days
Gives Claude, ChatGPT, and Codex access to your Oura Ring data: sleep, readiness, HRV, resting heart rate, activity, SpO₂, stress.
Ask "how did I sleep last week" and your MCP client calls the right tool and gets a summary back — not a wall of JSON:
New to MCP? Model Context Protocol lets AI clients reach external data. Install this server, connect it once, then ask about your sleep in plain language. No coding involved.
Works locally in Claude Code and Codex, and remotely in claude.ai and ChatGPT once it is deployed to a server of your own.
Читать по-русски: README.ru.md
raw=True away.
A month of heart-rate data shrinks by more than 10×.stdio for local use, streamable-http
for remote. A flag apart, not a rewrite.day field, and returns heart-rate
timestamps in UTC. Both quietly lose or misplace data outside UTC. This
server handles it — see Timezone handling.next_token pagination, retries
dropped connections with exponential backoff, and turns HTTP status codes
into messages that say what to fix.Requires uv. No Oura token needed for this part.
Check that data flows (hits Oura's sandbox, no auth required):
Connect it locally — the server prints the commands with the absolute path already filled in, and writes nothing itself:
Then ask your client for an Oura summary. The get_status tool reports which
mode the server is in.
| Tool | Returns | Default range |
|---|---|---|
get_daily_summary | Sleep, readiness and activity scores at once | 7 days |
get_sleep | Sleep stages, efficiency, HRV, resting HR, breathing, temperature | 7 days |
get_sleep_score | Daily sleep score only — lighter than get_sleep | 7 days |
get_readiness | Readiness score, HRV balance, temperature deviation | 7 days |
get_activity | Activity score, steps, calories | 7 days |
get_heartrate | Per-minute heart rate collapsed to daily stats | 3 days |
get_spo2 | Blood oxygen during sleep, breathing disturbance index | 7 days |
get_stress | Time under load and in recovery | 7 days |
get_heart_health | Cardiovascular age, VO₂max | 30 days |
get_tags | Tags you entered in the Oura app | 30 days |
get_status | Server mode and authorization state | — |
Every data tool takes either days_back or an explicit start_date/end_date
pair (YYYY-MM-DD), plus raw to get Oura's untouched response.
The sandbox returns synthetic data. For your own you need an Oura application and a one-time authorization — no review to pass, a fresh application works immediately.
| What to do | |
|---|---|
| 1 | Register an application at developer.ouraring.com |
| 2 | Put OURA_CLIENT_ID and OURA_CLIENT_SECRET into .env |
| 3 | uv run my-oura-mcp auth — opens a browser, stores tokens with mode 600 |
| 4 | Set OURA_API_MODE=production in .env |
When registering: Redirect URI is http://localhost:8765/callback, matched
byte for byte. Scopes are daily, heartrate, tag, spo2, stress,
heart_health. Everything else is arbitrary.
Tokens refresh themselves from there. Check with my-oura-mcp auth --status,
forget them with auth --logout.
Personal Access Tokens no longer work: Oura stopped issuing them in December 2025.
Refresh tokens are single-use. Each refresh kills the old one, so two instances sharing a token store knock each other out. The symptom is a
400mentioning single use; the cure is re-runningauthand keeping one instance.
Everything lives in .env (see .env.example). Secrets never reach git.
| Variable | Purpose |
|---|---|
OURA_CLIENT_ID / OURA_CLIENT_SECRET | Oura application credentials |
OURA_REDIRECT_URI | Must match the application exactly |
OURA_API_MODE | sandbox (synthetic data) or production |
OURA_TZ | Timezone deciding what "today" means. Set explicitly on servers |
OURA_MCP_TOKEN | Shared secret guarding the HTTP endpoint; also the consent-page password |
OURA_PUBLIC_URL | Public https address. When set, enables OAuth for Claude.ai and ChatGPT |
OURA_OAUTH_ALLOWED_REDIRECT_ORIGINS | Comma-separated OAuth client origins; defaults to Claude.ai and ChatGPT |
OURA_TOKEN_STORE | Where the OAuth flow writes tokens. Not set by hand |
OURA_CACHE_DB | SQLite cache file. An empty value disables caching |
One codebase, two transports: stdio next to a client on this machine, HTTP on
a server so the web clients and your phone can reach it.
| Client | Command |
|---|---|
| Claude Code | claude mcp add --scope user oura -- uv --directory PATH run my-oura-mcp |
| Codex | codex mcp add oura -- uv --directory PATH run my-oura-mcp |
uv run my-oura-mcp install prints these with the absolute path already filled
in. --scope user makes the server visible from any directory; without it, only
from where the command ran. Verify with claude mcp list / codex mcp list.
Nothing is exposed and no network is involved. To debug the transport itself:
uv run my-oura-mcp --transport http --port 8000 — no secret needed on loopback.
This is what makes the server reachable from any device, from Claude.ai and from ChatGPT. Step by step in docs/DEPLOY.md (Russian): how to let traffic in, how to move Oura authorization across, how to connect web clients.
| Client | How it connects |
|---|---|
| Claude.ai, ChatGPT | OAuth. No client ID or secret to enter — the client registers itself and the consent page asks for OURA_MCP_TOKEN |
| Claude Code | claude mcp add --scope user --transport http oura URL --header "Authorization: Bearer TOKEN" |
| Codex | codex mcp add oura --url URL --bearer-token-env-var OURA_MCP_TOKEN |
OURA_PUBLIC_URL turns OAuth on: the server becomes its own authorization
server with dynamic client registration, restricted to https://claude.ai and
https://chatgpt.com. Another client needs its exact origin in
OURA_OAUTH_ALLOWED_REDIRECT_ORIGINS; the consent page names the client and its
return origin before asking for the secret.
Two ways to expose it, and the choice is not cosmetic. Caddy is simpler, but its certificate lands in Certificate Transparency — a public log revealing that this address hosts a service. A Cloudflare Tunnel opens no inbound ports at all. If a VPN lives on the same host, only the tunnel will do.
| stdio, local | HTTP, on a server | |
|---|---|---|
| Claude Code and Codex on this machine | yes | yes |
| Other devices | no | yes |
| Claude.ai, ChatGPT, phone | no | yes, over OAuth |
| Needs a domain and a host | no | yes |
| Data leaves this machine | no | yes, to your server |
Keep exactly one live instance: Oura's refresh token is single-use, and two servers sharing a token store will knock each other out of authorization.
Three separate bugs came from Oura's date semantics, all of which lost data silently rather than raising an error. Worth knowing if you build against this API yourself:
sleep and daily_activity are filtered by an internal UTC timestamp,
not by the day field Oura itself returns. At UTC+3 a night that starts
after midnight lands in the previous UTC day: asking for 28..28 returns
nothing while the record with day=28 plainly exists. The server widens the
window and trims by day afterwards. Verified by sweeping every endpoint;
the other six behave.heartrate returns timestamps in UTC. Grouping by the first ten
characters of that string splits a local day in two, pushing 00:00–03:00
local into the previous day — exactly the resting heart rate you care about.
Grouping uses OURA_TZ.long_sleep wins, or the longest one; naps are reported separately as
naps_h so their HRV never averages with the night's.Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/oura-ring)<a href="https://allmcps.com/mcp/oura-ring"><img src="https://allmcps.com/api/badge/oura-ring?style=directory" alt="Oura Ring on AllMCPs" /></a>