# oura-ring-mcp-server

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/jordanburke/oura-ring-mcp-server  
**GitHub Stars:** 1  
**npm Downloads (last month):** 1508  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/oura-ring-mcp-server

## Description
Oura Ring MCP server for the Oura API v2: sleep, readiness, activity, heart rate, and more.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "oura-ring-mcp-server": {
    "command": "npx",
    "args": ["-y","oura-ring-mcp-server"],
    "env": {
      "OURA_CLIENT_ID": "",
      "OURA_CLIENT_SECRET": "",
      "OURA_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `OURA_CLIENT_ID`, `OURA_CLIENT_SECRET`, `OURA_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What oura-ring-mcp-server does

oura-ring-mcp-server exposes Oura Ring API v2 user data to MCP-compatible AI clients. It covers daily health collections such as activity, sleep, readiness, SpO2, stress, resilience, cardiovascular age, and VO2 max, along with sleep records, workouts, sessions, tags, rest-mode periods, ring configuration, and personal information. Time-series access is available for heart rate and ring battery level.

The design uses one consolidated `oura_data` tool rather than a separate MCP tool for each Oura endpoint. A `collection` argument identifies the requested data set, keeping the exposed tool schema compact while retaining access to Oura user-collection endpoints.

## How it works

For daily collections, provide `start_date` and `end_date` in `YYYY-MM-DD` format. If omitted, the server requests the previous seven days. Heart-rate and battery queries use ISO-8601 `start_datetime` and `end_datetime` values, defaulting to the previous 24 hours. The `latest` option returns only the newest sample for those time-series collections.

The tool also accepts document IDs for collections with detail routes, pagination cursors through `next_token`, and comma-separated sparse field selections through `fields`. It checks whether parameters are valid for the selected collection and returns messages describing invalid input.

The server can run over stdio, which suits local MCP client configurations, or `httpStream`, which serves the MCP endpoint at `/mcp`. In HTTP mode, a `/health` endpoint is also available.

## Setup and configuration

Node.js 24 or newer is required. New installations use an Oura OAuth2 application: register an application with Oura, configure its redirect URI as `http://localhost:8080/callback`, and enable the read scopes needed by the collections you intend to use. The default scope set covers the supported read data, including the `heart_health` scope required for VO2 max and daily cardiovascular age.

Set `OURA_CLIENT_ID` and `OURA_CLIENT_SECRET`, then run `npx -y oura-ring-mcp-server login`. The command opens a browser consent flow, receives the callback locally, and saves tokens under `~/.config/oura-ring-mcp/tokens.json` unless `OURA_TOKEN_STORE` changes the path. Access tokens are refreshed automatically and refresh-token rotation is handled by the stored credentials.

A previously issued Oura personal access token can be supplied with `OURA_API_KEY` instead of OAuth2. If both authentication methods are configured, OAuth2 is selected. `OURA_SANDBOX=true` switches requests to Oura's demo data.

## Tools and capabilities

- Query daily Oura collections over date ranges.
- Retrieve heart-rate and ring-battery time series or their latest sample.
- Fetch individual records by document ID.
- Continue paginated list responses with `next_token`.
- Request selected fields from list collections.
- Run through stdio or `httpStream` with configurable host and port.
- Emit NDJSON telemetry to a file and, for HTTP transport, optionally to the console.

## Limitations and notes

The server requires an Oura OAuth2 application for new setups because Oura stopped issuing new personal access tokens in December 2025. Existing personal access tokens remain an alternative where still valid. OAuth authorization uses a local callback and must match the redirect URI registered with Oura.

The available data depends on the scopes granted to the Oura application. In particular, the `heart_health` scope controls access to VO2 max and daily cardiovascular age. The server retrieves Oura records; calculations such as averages or comparisons depend on the MCP client or model using the returned data.

_Full upstream README: https://allmcps.com/mcp/oura-ring-mcp-server/readme_

