Skip to content
MCP server
Registry

Oura Ring MCP Server

Read-only Oura Ring sleep, readiness, activity, stress and heart rate data (OAuth2)

Oura Ring scores 61 (Good), licensed MIT and written in Python. It installs as a local process. It declares 11 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 19 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by osjayaprakashMITPython0 stars
Trust score
61Good
Trust score 61 of 100, Good

Good trust

61 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 61 comes from

22 + 15 + 0 + 10 + 4 + 10 = 61. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance15 / 20

How recently the repository saw a commit or release.

Maintenance: 15 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "osjayaprakash-oura-ring-python-mcp": {      "command": "uvx",      "args": [        "oura-ring-python-mcp"      ],      "env": {        "OURA_CLIENT_ID": "",        "OURA_CLIENT_SECRET": "YOUR_OURA_CLIENT_SECRET",        "OURA_TOKEN_FILE": "~/.config/oura-ring-mcp/tokens.json",        "OURA_TIMEZONE": ""      }    }  }}

Environment variables

NameRequiredNotes
OURA_CLIENT_IDRequiredClient ID of your Oura API application
OURA_CLIENT_SECRETSecretRequiredClient secret of your Oura API application
OURA_TOKEN_FILEOptionalWhere `oura-ring-python-mcp auth` saved the OAuth tokens
OURA_TIMEZONEOptionalYour IANA time zone (e.g. Europe/London), so "today" is your day; defaults to the machine's
OURA_CLIENT_IDRequiredClient ID of your Oura API application
OURA_CLIENT_SECRETSecretRequiredClient secret of your Oura API application
OURA_TIMEZONEOptionalYour IANA time zone (e.g. Europe/London), so "today" is your day; defaults to the machine's

Tools11Tool docs quality grade D

All capabilities

About

oura-ring-python-mcp

CI PyPI Python Docker License: MIT

An MCP server that gives Claude (or any MCP client) read-only access to your Oura Ring data: sleep, readiness, activity, stress, SpO2, resilience, workouts, sessions and heart rate. It talks to the Oura API v2 with its own small async client (oura_ring_mcp.core).

Tools

ToolReturns
get_personal_infoAge, weight, height, biological sex, email
get_daily_sleepDaily sleep score and contributors
get_sleep_periodsEach night's sleep and naps: stages, efficiency, heart rate, HRV
get_daily_readinessDaily readiness score, contributors, temperature deviation
get_daily_activityDaily activity score, steps, calories, time per activity level
get_daily_stressDaily time in high stress and in recovery
get_daily_spo2Nightly average SpO2 and breathing disturbance index
get_daily_resilienceDaily resilience level and contributors
get_workoutsWorkouts with type, intensity, calories, distance
get_sessionsMeditation, breathing and rest sessions
get_heart_rateHeart rate samples with min, max and average bpm

Daily tools take optional start_date and end_date (YYYY-MM-DD, both inclusive). Without them they cover the 7 days ending today; ranges are limited to 90 days. Each result echoes the range it covers, so the model always knows what "today" meant.

get_heart_rate takes optional start_datetime and end_datetime (ISO 8601). Without them it covers the last 24 hours; windows are limited to 7 days.

Per-interval series (5-minute activity classes, MET, sleep phases, in-sleep heart rate and HRV curves) are left out of results to keep them small; the scores, totals and averages are kept.

Setup

For a step-by-step guide, including creating the Oura application and troubleshooting, see the installation guide. Full documentation is at https://oura-ring-python-mcp.readthedocs.io.

The server signs in with OAuth2, since Oura has deprecated personal access tokens. You need an Oura API application (a client ID and secret) whose redirect URIs include http://localhost:47651/callback, with the scopes email, personal, daily, heartrate, workout, session, spo2 and stress allowed (resilience needs stress). Gen3 and Oura Ring 4 users need an active Oura membership for the API to return data.

git clone https://github.com/osjayaprakash/oura-ring-python-mcp.git && cd oura-ring-python-mcp
uv sync

Sign in once. This opens the browser, catches Oura's redirect on localhost, and saves the tokens to ~/.config/oura-ring-mcp/tokens.json (readable only by you):

OURA_CLIENT_ID=... OURA_CLIENT_SECRET=... uv run oura-ring-python-mcp auth

From then on the server refreshes the access token by itself (Oura issues them for 30 days) and saves each new single-use refresh token. Run auth again only if you revoke access or the saved refresh token is lost.

VariableRequiredDefaultMeaning
OURA_CLIENT_IDyesClient ID of your Oura API application
OURA_CLIENT_SECRETyesClient secret of your Oura API application
OURA_TOKEN_FILEno~/.config/oura-ring-mcp/tokens.json (under $XDG_CONFIG_HOME if set)Where auth saves the tokens and the server reads them
OURA_TIMEZONEnothe machine's time zoneYour IANA time zone, e.g. Europe/London, so "today" matches Oura's days. Set it when running in Docker, where the default is UTC
OURA_REDIRECT_URInohttp://localhost:47651/callbackMust match a redirect URI of the application exactly
OURA_SCOPESnoemail personal daily heartrate workout session spo2 stressScopes to request

If the redirect URI isn't http://localhost:<port>/... (or you're signing in over SSH or in Docker), auth asks you to paste the URL the browser ended up on instead; force that with auth --paste.

Run from PyPI

No clone needed; uv fetches and runs the published package:

OURA_CLIENT_ID=... OURA_CLIENT_SECRET=... uvx oura-ring-python-mcp auth   # once
uvx oura-ring-python-mcp

In a client config, use "command": "uvx", "args": ["oura-ring-python-mcp"].

Run with Docker

Sign in on the host first (above), then mount the token folder so the container can read the tokens and save refreshed ones. The server speaks MCP over stdio, so keep -i:

docker run -i --rm --user "$(id -u):$(id -g)" \
  -e OURA_CLIENT_ID -e OURA_CLIENT_SECRET -e OURA_TIMEZONE=Europe/London \
  -v ~/.config/oura-ring-mcp:/tokens \
  ghcr.io/osjayaprakash/oura-ring-python-mcp:latest

The image reads the tokens from /tokens/tokens.json. --user lets the container read and update your token file on Linux; Docker Desktop on macOS and Windows doesn't need it. To sign in from the container instead, run it with -it and the command auth --paste.

In a client config, use "command": "docker" with those arguments, and pass the variables through the client's env block.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "oura": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/oura-ring-python-mcp", "run", "oura-ring-python-mcp"],
      "env": {
        "OURA_CLIENT_ID": "your-client-id",
        "OURA_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Claude Code

claude mcp add oura \
  -e OURA_CLIENT_ID=your-client-id \
  -e OURA_CLIENT_SECRET=your-client-secret \
  -- uv --directory /absolute/path/to/oura-ring-python-mcp run oura-ring-python-mcp

Langfuse tracing (optional)

Each tool call becomes a Langfuse trace, with a child span for each Oura API call. Install the extra and set the keys:

uv sync --extra langfuse

In the server command, use run --extra langfuse oura-ring-python-mcp instead of run oura-ring-python-mcp.

VariableMeaning
LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEYTracing is on only when both are set
LANGFUSE_BASE_URLLangfuse URL for self-hosted or regional instances (default: Langfuse Cloud)
LANGFUSE_CAPTURE_DATAtrue to include tool inputs, outputs and error messages. Default false

Privacy: sleep, heart rate and activity data are health data. By default, traces hold only tool names, timings and error class names. Setting LANGFUSE_CAPTURE_DATA=true sends your data to your Langfuse instance; only do that with an instance you trust, such as a self-hosted one.

Development

uv sync
uv run pytest            # offline suite
uv run pytest -m live    # hits the real API; needs `auth` first
uv run ruff check src tests && uv run ruff format --check src tests

Releasing

Bump version in pyproject.toml and both versions in server.json (a test checks they match), commit, then push a tag:

git tag v0.1.0 && git push origin v0.1.0

The tag publishes to PyPI (pypi.yml, needs the PYPI_API_TOKEN secret), to ghcr.io/osjayaprakash/oura-ring-python-mcp (docker.yml), and then to the MCP Registry (mcp-registry.yml).

License

MIT

Frequently asked questions

What is Oura Ring MCP Server?

Read-only Oura Ring sleep, readiness, activity, stress and heart rate data (OAuth2)

How do I install Oura Ring MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Oura Ring MCP Server runs locally from the PyPI package oura-ring-python-mcp with the command uvx oura-ring-python-mcp.

Is Oura Ring MCP Server free and open source?

Yes. Oura Ring MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Oura Ring MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Oura Ring MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Oura Ring MCP Server provide?

Oura Ring MCP Server provides 11 tools, including get_daily_activity, get_daily_readiness, get_daily_resilience, and get_daily_sleep. See the full tool list for descriptions and parameters.

How is Oura Ring MCP Server's trust score calculated?

Oura Ring MCP Server scores 61 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server