
elizabethtrykin/oura-mcp 是从 https://github.com/elizabethtrykin/oura-mcp. 导入的 MCP 服务器候选
概览
elizabethtrykin/oura-mcp 是从 https://github.com/elizabethtrykin/oura-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
一个用于访问 Oura Ring 数据的模型上下文协议(MCP)服务器。
布置
先决条件
- Node.js(v16+)
- Oura 账户
安装
- 克隆仓库
- 跑步:
配置
获取证件
- 登录Oura Cloud控制台
- 选择以下任一:
- 个人访问令牌(用于测试)
- OAuth2 证书(用于生产)
环境变量
创建一个 .env 文件:
用途
测试
示例:node test.js get_daily_sleep 2023-05-01
Claude桌面集成
添加到Claude Desktop的配置中(开发者设置→编辑配置→编辑配置):
保存后重启Claude Desktop。详情请参见MCP文档。
可用资源
personal_info- 用户配置文件daily_activity- 活动摘要daily_readiness- 准备度评分daily_sleep- 睡眠摘要sleep- 详细睡眠数据sleep_time- 睡眠时间workout- 锻炼数据session- 会话数据daily_spo2- SpO2测量rest_mode_period- 休息时间ring_configuration- 环形配置daily_stress- 应力指标daily_resilience- 韧性指标daily_cardiovascular_age- 飞行员年龄vO2_max- VO2 max数据
可用工具
本页由 AI 翻译,技术细节请以原文为准。
README
Oura MCP Server
A Model Context Protocol (MCP) server for accessing Oura Ring data.
Setup
Prerequisites
- Node.js (v16+)
- Oura account
Installation
- Clone the repository
- Run:
npm install
npm run build
Configuration
Obtaining Credentials
- Log in to Oura Cloud Console
- Get either:
- Personal Access Token (for testing)
- OAuth2 Credentials (for production)
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
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 profiledaily_activity- Activity summariesdaily_readiness- Readiness scoresdaily_sleep- Sleep summariessleep- Detailed sleep datasleep_time- Sleep timingworkout- Workout datasession- Session datadaily_spo2- SpO2 measurementsrest_mode_period- Rest periodsring_configuration- Ring configdaily_stress- Stress metricsdaily_resilience- Resilience metricsdaily_cardiovascular_age- CV agevO2_max- VO2 max data
Available Tools
For date-based resources, use tools like get_daily_sleep with startDate and endDate parameters (YYYY-MM-DD).
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"oura": {
"command": "node",
"args": ["/absolute/path/to/oura-mcp/build/index.js"],
"env": {"OURA_PERSONAL_ACCESS_TOKEN": "your_token"}
}
}
}