Oura

•
51
•

Enables access to Oura Ring data through a Model Context Protocol (MCP) server.

This tool provides a Model Context Protocol (MCP) server designed to interface with Oura Ring data. It allows users to access a variety of data points, including sleep summaries, activity levels, readiness scores, and detailed workout information. The server is configured using either a personal access token or OAuth2 credentials obtained from the Oura Cloud Console, and it can be integrated with applications like Claude Desktop for enhanced functionality. This allows for seamless data retrieval and utilization within compliant applications.

主な機能

01Supports Personal Access Token and OAuth2 authentication
023 GitHub stars
03Integrates with Claude Desktop
04Provides access to Oura Ring data via MCP
05Includes testing utilities
06Offers a wide range of Oura data resources like sleep, activity, and readiness

ユースケース

01Integrating Oura Ring data into custom applications.
02Analyzing personal health metrics using the Oura API through an MCP server.
03Connecting Oura Ring data to Claude Desktop for contextual awareness.

Oura MCP Server

A Model Context Protocol (MCP) server for accessing Oura Ring data.

Setup

Prerequisites

  • Node.js (v16+)
  • Oura account

Installation

  1. Clone the repository
  2. Run:
npm install
npm run build

Configuration

Obtaining Credentials

  1. Log in to Oura Cloud Console
  2. Get either:

Environment Variables

Create a .env file:

# Option 1: Personal Access Token
OURA_PERSONAL_ACCESS_TOKEN=your_token

# Option 2: OAuth2 credentials
OURA_CLIENT_ID=your_client_id
OURA_CLIENT_SECRET=your_client_secret
OURA_REDIRECT_URI=http://localhost:3000/callback

Usage

Testing

node test.js <tool_name> <date>

Example: node test.js get_daily_sleep 2023-05-01

Claude Desktop Integration

Add to Claude Desktop's config (Settings → Developer → Edit Config):

{
    "mcpServers": {
        "oura": {
            "command": "node",
            "args": ["/absolute/path/to/oura-mcp/build/index.js"],
            "env": {"OURA_PERSONAL_ACCESS_TOKEN": "your_token"}
        }
    }
}

Restart Claude Desktop after saving. See MCP docs for details.

Available Resources

  • personal_info - User profile
  • daily_activity - Activity summaries
  • daily_readiness - Readiness scores
  • daily_sleep - Sleep summaries
  • sleep - Detailed sleep data
  • sleep_time - Sleep timing
  • workout - Workout data
  • session - Session data
  • daily_spo2 - SpO2 measurements
  • rest_mode_period - Rest periods
  • ring_configuration - Ring config
  • daily_stress - Stress metrics
  • daily_resilience - Resilience metrics
  • daily_cardiovascular_age - CV age
  • vO2_max - VO2 max data

Available Tools

For date-based resources, use tools like get_daily_sleep with startDate and endDate parameters (YYYY-MM-DD).