oura-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
oura-mcp
An MCP server for the Oura Ring API v2. It gives Claude (or any MCP client) your daily HRV, resting heart rate, sleep and readiness, plus longer-term trends against your own baseline.
Written in TypeScript on the official MCP SDK, so it runs anywhere Node 20.12+ runs, including npx from Claude Desktop and Claude Code.
Tools
Tool | What it returns |
| One day (default: today, which is last night's sleep): HRV, resting HR, sleep score, readiness, total sleep, efficiency, latency, deep/REM/light/awake minutes, bed times, temperature deviation, contributors, and how each headline number compares with your previous 30 days. If today hasn't synced yet, it falls back to the latest day with data and says so. |
| A range ( |
| Raw |
| Raw |
| Raw |
How the numbers are picked:
HRV is
average_hrvfrom the night's main sleep period, and resting heart rate is that period'slowest_heart_rate, which is what the Oura app shows.The main period is the longest
long_sleep, falling back to the longestsleep. Naps, rest periods and deleted periods are left out.Oura files a night under the day you woke up.
"Improving" respects direction: higher is better for HRV and scores, lower is better for resting HR. Changes inside a small band (2 ms HRV, 1 bpm, 2 score points, 15 min of sleep, 1% efficiency) count as stable.
It also handles pagination (next_token), missing days, 429 rate limits (honours Retry-After, then exponential backoff) and 5xx retries. The detailed sleep endpoint has been seen treating end_date as exclusive, so queries are widened by a day on each side and filtered back to the range you asked for.
Related MCP server: oura-mcp-cloudflare-workers
Setup
1. Create an Oura API application
Oura retired personal access tokens at the end of 2025, so the API now needs OAuth2. You need an active Oura membership for data to come back.
Sign in at https://cloud.ouraring.com/oauth/applications and create a new application.
Add the redirect URI
http://localhost:8787/callback.Copy the Client ID and Client Secret.
2. Install and sign in
git clone https://github.com/scottolsen/oura-mcp.git
cd oura-mcp
npm install # also builds dist/
cp .env.example .env # fill in OURA_CLIENT_ID and OURA_CLIENT_SECRET
npm run authnpm run auth prints an Oura sign-in link, catches the redirect on localhost:8787, and saves the tokens to ~/.config/oura-mcp/tokens.json (mode 600). Access tokens last about 30 days; the server refreshes them on its own and saves each new refresh token, because Oura's refresh tokens are single use. If the refresh token is ever lost, run npm run auth again.
3. Add it to Claude
Claude Code
claude mcp add oura --scope user \
-e OURA_CLIENT_ID=your-client-id \
-e OURA_CLIENT_SECRET=your-client-secret \
-e OURA_TIMEZONE=America/Chicago \
-- node /absolute/path/to/oura-mcp/dist/index.jsClaude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS)
{
"mcpServers": {
"oura": {
"command": "node",
"args": ["/absolute/path/to/oura-mcp/dist/index.js"],
"env": {
"OURA_CLIENT_ID": "your-client-id",
"OURA_CLIENT_SECRET": "your-client-secret",
"OURA_TIMEZONE": "America/Chicago"
}
}
}
}The client ID and secret are only used to refresh tokens. Then ask things like "How did I sleep last night?", "Is my HRV trending up over the last 90 days?" or "Compare my resting heart rate this month with last month."
Configuration
Variable | Default | Purpose |
| OAuth app client ID (sign-in and refresh) | |
| OAuth app client secret | |
|
| Must match the app's redirect URI |
|
| Where tokens are kept |
| system zone | Decides what "today" is |
| Use this token directly instead of the token file (not refreshed) |
Daily updates
An MCP server only answers when a client calls it. For a morning update, have something call oura_daily_summary on a schedule, for example a scheduled task in Claude Desktop or Claude Code ("Every morning at 8, summarize my Oura data with oura_daily_summary and oura_trends for 7 days"), or a cron job running claude -p with this server configured.
Development
npm install
npm test # vitest, all Oura responses mocked
npx tsc --noEmit # typecheck src and tests
npm run buildTokens and .env are git-ignored. Never commit them.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Read sleep, readiness, activity, stress, heart rate and workouts from the Oura Ring.
Multi-tenant hosted MCP server for Oura Ring — 21 read-only tools, OAuth per user.
Read wearables and lab health data — sleep, activity, workouts, timeseries, lab tests and orders.
Connect your Oura Ring account securely in minutes. Enable authorized access to your sleep, activi…
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides read-only access to Oura ring biometrics via the Oura API, enabling Claude to query daily summaries, sleep, readiness, stress, workouts, baselines, and heart rate data. Designed to complement a Strava connector for joint analysis of training and recovery.8MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to query Oura Ring health data, including sleep, readiness, HRV, activity, and SpO2, through OAuth2-authenticated tools running on Cloudflare Workers.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to access Oura Ring health data such as sleep, readiness, activity, workouts, HRV, and event-centered recovery timelines using OAuth2 authentication.MIT
- AlicenseAqualityCmaintenanceProvides read-only access to Oura Ring data, including sleep, readiness, activity, heart rate, stress, workouts, and more, through MCP clients like Claude Desktop and Claude Code.22MIT