# Oura Ring MCP server

> Provides read-only access to Oura Ring health data including sleep, readiness, activity, stress, and heart rate for AI clients.

- Repository: https://github.com/osjayaprakash/oura-ring-python-mcp
- Page: https://hostedmcp.org/servers/osjayaprakash/oura-ring-python-mcp
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add --env 'OURA_CLIENT_SECRET=<YOUR_OURA_CLIENT_SECRET>' --env 'OURA_CLIENT_ID=<OURA_CLIENT_ID>' oura-ring-python-mcp -- uvx oura-ring-python-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "oura-ring-python-mcp": {
      "command": "uvx",
      "args": [
        "oura-ring-python-mcp"
      ],
      "env": {
        "OURA_CLIENT_SECRET": "<YOUR_OURA_CLIENT_SECRET>",
        "OURA_CLIENT_ID": "<OURA_CLIENT_ID>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "oura-ring-python-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "oura-ring-python-mcp"
      ],
      "env": {
        "OURA_CLIENT_SECRET": "<YOUR_OURA_CLIENT_SECRET>",
        "OURA_CLIENT_ID": "<OURA_CLIENT_ID>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"oura-ring-python-mcp","type":"stdio","command":"uvx","args":["oura-ring-python-mcp"],"env":{"OURA_CLIENT_SECRET":"<YOUR_OURA_CLIENT_SECRET>","OURA_CLIENT_ID":"<OURA_CLIENT_ID>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "oura-ring-python-mcp": {
      "command": "uvx",
      "args": [
        "oura-ring-python-mcp"
      ],
      "env": {
        "OURA_CLIENT_SECRET": "<YOUR_OURA_CLIENT_SECRET>",
        "OURA_CLIENT_ID": "<OURA_CLIENT_ID>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add oura-ring-python-mcp --env 'OURA_CLIENT_SECRET=<YOUR_OURA_CLIENT_SECRET>' --env 'OURA_CLIENT_SECRET=<YOUR_OURA_CLIENT_SECRET>' --env 'OURA_CLIENT_ID=<OURA_CLIENT_ID>' --env 'OURA_CLIENT_ID=<OURA_CLIENT_ID>' -- uvx oura-ring-python-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.oura-ring-python-mcp]
command = "uvx"
args = ["oura-ring-python-mcp"]

[mcp_servers.oura-ring-python-mcp.env]
OURA_CLIENT_SECRET = "<YOUR_OURA_CLIENT_SECRET>"
OURA_CLIENT_ID = "<OURA_CLIENT_ID>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'OURA_CLIENT_SECRET=<YOUR_OURA_CLIENT_SECRET>' -e 'OURA_CLIENT_SECRET=<YOUR_OURA_CLIENT_SECRET>' -e 'OURA_CLIENT_ID=<OURA_CLIENT_ID>' -e 'OURA_CLIENT_ID=<OURA_CLIENT_ID>' oura-ring-python-mcp uvx -- oura-ring-python-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "oura-ring-python-mcp": {
      "command": "uvx",
      "args": [
        "oura-ring-python-mcp"
      ],
      "env": {
        "OURA_CLIENT_SECRET": "<YOUR_OURA_CLIENT_SECRET>",
        "OURA_CLIENT_ID": "<OURA_CLIENT_ID>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `OURA_CLIENT_SECRET` | yes | yes | Client secret of your Oura API application |
| `OURA_CLIENT_SECRET` | yes | yes | Client secret of your Oura API application |
| `OURA_CLIENT_ID` | yes | no | Client ID of your Oura API application |
| `OURA_CLIENT_ID` | yes | no | Client ID of your Oura API application |
| `OURA_TIMEZONE` | no | no | Your IANA time zone (e.g. Europe/London), so "today" is your day; defaults to the machine's |
| `OURA_TIMEZONE` | no | no | Your IANA time zone (e.g. Europe/London), so "today" is your day; defaults to the machine's |
| `OURA_TOKEN_FILE` | no | no | Where `oura-ring-python-mcp auth` saved the OAuth tokens |

## Tools (11)

- `get_personal_info`
- `get_daily_sleep`
- `get_sleep_periods`
- `get_daily_readiness`
- `get_daily_activity`
- `get_daily_stress`
- `get_daily_spo2`
- `get_daily_resilience`
- `get_workouts`
- `get_sessions`
- `get_heart_rate`

## FAQ

### What kind of data can I access?

You can access sleep, readiness, activity, stress, SpO2, resilience, workouts, sessions, and heart rate data.

### How does the server handle authentication?

The server uses OAuth2 and requires an Oura API application with a client ID and secret.
