MO

mitchhankins01/oura-ring-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

31 stars 38 forks 质量 61 趋势 11

Oura Ring 数据的 MCP 服务器,配备智能分析工具

概览

一个连接您的Oura Ring与Claude及其他AI助手的MCP服务器。获取关于睡眠、准备和活动的人类可读洞察——而不仅仅是原始的JSON。 - - 持续时间(小时/分钟),带有上下文的评分(“85 - 最佳”)- - 睡眠阶段、效率、心率变异性(HRV)和生物识别 - - 恢复评分及贡献者分解 - - 步数、卡路里和强度的分解 - - 心率、血氧、压力、心血管年龄 - - 异常检测、相关性、趋势分析 - - 比较有无条件的指标 参见示例输出——Claude对睡眠、准备度、每周总结和智能分析的回报 或者直接用NPX(无需安装): 1. 进入 cloud.ouraring.com/personal-access-tokens 2.创建新令牌 3.在你的 Claude Desktop 配置中设置OURA_ACCESS_TOKEN(见下文) 1. 在 developer.ouraring.com 创建一个 OAuth 应用 - 将重定向 URI 设置为 http://localhost:3000/callback 2.运行认证流程:3. 凭据保存到 ~/.oura-mcp/credentials。

概述(AI 翻译)

一个连接您的Oura Ring与Claude及其他AI助手的MCP服务器。获取关于睡眠、准备和活动的人类可读洞察——而不仅仅是原始的JSON。

特色

  • 智能格式 - 时长(小时/分钟),带上下文的评分(“85 - 最优”)
  • 睡眠分析 - 睡眠阶段、效率、心率变异性(HRV)和生物识别
  • 准备度追踪 - 恢复得分和贡献者分布
  • 活动数据 - 步数、卡路里和强度的分解
  • 健康指标 - 心率、血氧、压力、心血管年龄
  • 智能分析 - 异常检测、相关性、趋势分析
  • 标签支持 - 比较有无条件的指标

参见示例输出——Claude对睡眠、准备度、每周总结和智能分析的回报

快速启动

1.安装

或者直接用NPX(无需安装):

2.用Oura认证

选项A:个人访问令牌(更简单)

  1. 前往 cloud.ouraring.com/personal-access-tokens
  2. 创建一个新的代币
  3. 在你的 Claude Desktop 配置中设置 OURA_ACCESS_TOKEN(见下文)

选项B:OAuth CLI 流程

  1. 创建一个OAuth应用,developer.ouraring.com

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Oura MCP Server

An MCP server that connects your Oura Ring to Claude and other AI assistants. Get human-readable insights about your sleep, readiness, and activity—not just raw JSON.

Features

  • Smart formatting - Durations in hours/minutes, scores with context (“85 - Optimal”)
  • Sleep analysis - Sleep stages, efficiency, HRV, and biometrics
  • Readiness tracking - Recovery scores and contributor breakdown
  • Activity data - Steps, calories, and intensity breakdown
  • Health metrics - Heart rate, SpO2, stress, cardiovascular age
  • Smart analysis - Anomaly detection, correlations, trend analysis
  • Tags support - Compare metrics with/without conditions

See example outputs — what Claude returns for sleep, readiness, weekly summaries, and smart analysis

Quick Start

1. Install

npm install -g oura-ring-mcp

Or use directly with npx (no install needed):

npx oura-ring-mcp

2. Authenticate with Oura

Option A: Personal Access Token (simpler)

  1. Go to cloud.ouraring.com/personal-access-tokens
  2. Create a new token
  3. Set OURA_ACCESS_TOKEN in your Claude Desktop config (see below)

Option B: OAuth CLI Flow

  1. Create an OAuth app at developer.ouraring.com
    • Set Redirect URI to http://localhost:3000/callback
  2. Run the auth flow:
    export OURA_CLIENT_ID=your_client_id
    export OURA_CLIENT_SECRET=your_client_secret
    npx oura-ring-mcp auth
    
  3. Credentials are saved to ~/.oura-mcp/credentials.json

3. Configure Claude Desktop

Add to claude_desktop_config.json:

With Personal Access Token:

{
  "mcpServers": {
    "oura": {
      "command": "npx",
      "args": ["oura-ring-mcp"],
      "env": {
        "OURA_ACCESS_TOKEN": "your_token_here"
      }
    }
  }
}

With OAuth (after running npx oura-ring-mcp auth):

{
  "mcpServers": {
    "oura": {
      "command": "npx",
      "args": ["oura-ring-mcp"]
    }
  }
}

The server reads credentials from ~/.oura-mcp/credentials.json. To enable automatic token refresh, add your OAuth credentials:

{
  "mcpServers": {
    "oura": {
      "command": "npx",
      "args": ["oura-ring-mcp"],
      "env": {
        "OURA_CLIENT_ID": "your_client_id",
        "OURA_CLIENT_SECRET": "your_client_secret"
      }
    }
  }
}

Restart Claude Desktop. Requires Node >=18.

What Can I Ask?

Daily check-ins:

在 GitHub 查看完整 README

安装

npx oura-ring-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "oura": { "command": "npx", "args": ["oura-ring-mcp"], "env": { "OURA_ACCESS_TOKEN": "your_token_here" } } } }