# Oura Ring [Health: Active]

**Category:** 🏃 Sports  
**Repository:** https://github.com/YasuakiOmokawa/oura-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 546  
**Views:** 11  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/oura-ring-2

## Description
MCP server for Oura Ring API v2 (sleep, activity, readiness, heart rate, workouts).

## Tools
Capabilities this server exposes over MCP:

- **oura_authenticate** — Start OAuth authorization flow. Returns a URL to open in browser. Used for re-authentication after refresh_token expires.
- **oura_auth_status** — Check current authentication state and token expiry.
- **oura_clear_auth** — Delete stored tokens. Re-authenticate via `oura_authenticate` after this.
- **oura_api_list_paths** — List all available Oura API v2 GET endpoints with summaries.
- **oura_api_get** — Generic GET to Oura Ring API v2. Use oura_api_list_paths to see endpoints. Pagination via max_pages or pass next_token in params.

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

```json
"mcpServers": {
  "oura-ring": {
    "command": "npx",
    "args": ["-y","@yasuakiomokawa/oura-mcp"],
    "env": {
      "OURA_CLIENT_ID": "",
      "OURA_CLIENT_SECRET": "",
      "OURA_CALLBACK_PORT": "",
      "OURA_LOG_LEVEL": ""
    }
  }
}
```

**Requires environment variables:** `OURA_CLIENT_ID`, `OURA_CLIENT_SECRET`, `OURA_CALLBACK_PORT`, `OURA_LOG_LEVEL` — 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

The Oura Ring MCP server exposes read access to Oura Ring API v2 through the Model Context Protocol. It is intended for MCP clients such as Claude Desktop, Claude Code, and Cursor. The available API coverage includes sleep, activity, readiness, heart rate, workouts, and other GET endpoints supported by the Oura API.

Authentication uses Oura's OAuth flow. The server can start authorization in a browser, report whether the current token is valid, and remove stored credentials. After authorization, an agent can inspect the available API paths and request data from a selected `/v2/...` endpoint.

## How it works

The server runs as an npm package and communicates with the MCP client over the client's configured server command. The main data operation is a generic GET request rather than a separate tool for every Oura resource. `oura_api_list_paths` helps identify valid paths and provides endpoint summaries before a request is made.

`oura_api_get` accepts endpoint parameters and can follow pagination automatically. Set `max_pages` from 1 through 20 to control how many pages it fetches, or provide a `next_token` in `params` to continue from a previous response. Results include the HTTP status, returned data, pagination token, number of fetched pages, and whether more results remain.

The Oura Ring MCP server stores OAuth configuration and tokens under `~/.config/oura-mcp/` when configured through the wizard. The files are created with restrictive `0600` permissions and checked again when loaded.

## Setup and configuration

Create an Oura developer application at the Oura OAuth applications page, enable the read scopes needed by the intended queries, and note its client ID and secret. Run:

```bash
npx @yasuakiomokawa/oura-mcp configure
```

The wizard collects credentials, completes browser authorization, saves the local configuration, and can add an `mcpServers.oura` entry to detected Claude Desktop, Claude Code, or Cursor configuration files. It backs up detected client configuration before changing it. Use `--force` to discard saved state and start again.

The default callback is `http://localhost:54321/callback`. If `OURA_CALLBACK_PORT` changes the port, the Oura developer application's redirect URI must use the matching `/callback` address.

For CI, Docker, or other ephemeral environments, set `OURA_CLIENT_ID` and `OURA_CLIENT_SECRET` together. The README advises against routine environment-based secret storage because process environments may be exposed to other processes, child processes, crash reports, or shell history. Do not put secrets in MCP command arguments.

## Tools and capabilities

- `oura_authenticate`: Starts the OAuth flow and returns its URL.
- `oura_auth_status`: Reports token validity and expiration information.
- `oura_clear_auth`: Deletes stored OAuth tokens.
- `oura_api_list_paths`: Lists supported GET paths with summaries.
- `oura_api_get`: Sends a GET request to an Oura API v2 path and supports pagination.

If a refresh token expires, run authentication again through the tool or rerun the configuration command. Set `OURA_LOG_LEVEL=debug` when detailed stderr logging is needed.

## Limitations and notes

It requires an Oura developer application, appropriate read scopes, and local browser authorization for normal setup. A callback port conflict requires changing both the server setting and the registered redirect URI. Invalid paths should be checked against `oura_api_list_paths`, including the required `/v2/` prefix.

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

