TO

tomekkorbak/oura-mcp-server

部署与 DevOps

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

39 stars 11 forks 质量 57 趋势 0MIT

tomekkorbak/oura-mcp-server 是从 https://github.com/tomekkorbak/oura-mcp-server. 导入的 MCP 服务器候选

概览

tomekkorbak/oura-mcp-server 是从 https://github.com/tomekkorbak/oura-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,提供对 Oura API 的访问。它允许语言模型查询 Oura API 中的睡眠、准备状态和弹性数据。

可用工具

服务器会提供以下工具:

日期范围查询

  • get_sleep_data(start_date: str, end_date: str):获取特定日期范围的睡眠数据
  • get_readiness_data(start_date: str, end_date: str):获取特定日期范围的准备情况数据
  • get_resilience_data(start_date: str, end_date: str):获取特定日期范围的弹性数据

日期应以ISO格式(YYYY-MM-DD)提供。

今日数据查询

  • get_today_sleep_data():获取今天的睡眠数据
  • get_today_readiness_data():获取今天的准备数据
  • get_today_resilience_data():获取今天的韧性数据

用途

你需要一个 Oura API 令牌才能使用该服务器。你可以通过以下方式获得一个令牌:

  1. 前往Oura开发者门户
  2. 创建个人访问令牌

桌面版 Claude

更新你的 claude_desktop_config.json(在 macOS 上的 ~/Library/Application\ Support/Claude/claude_desktop_config.json] 和 '%APPDATA%/Claude/claude_desktop_config。

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

README

Oura MCP Server

A Model Context Protocol (MCP) server that provides access to the Oura API. It allows language models to query sleep, readiness, and resilience data from Oura API.

Available Tools

The server exposes the following tools:

Date Range Queries

  • get_sleep_data(start_date: str, end_date: str): Get sleep data for a specific date range
  • get_readiness_data(start_date: str, end_date: str): Get readiness data for a specific date range
  • get_resilience_data(start_date: str, end_date: str): Get resilience data for a specific date range

Dates should be provided in ISO format (YYYY-MM-DD).

Today’s Data Queries

  • get_today_sleep_data(): Get sleep data for today
  • get_today_readiness_data(): Get readiness data for today
  • get_today_resilience_data(): Get resilience data for today

Usage

You’ll need an Oura API token to use this server. You can obtain one by:

  1. Going to the Oura Developer Portal
  2. Creating a Personal Access Token

Claude for Desktop

Update your claude_desktop_config.json (located in ~/Library/Application\ Support/Claude/claude_desktop_config.json on macOS and %APPDATA%/Claude/claude_desktop_config.json on Windows) to include the following:

{
    "mcpServers": {
        "oura": {
            "command": "uvx",
            "args": [
                "oura-mcp-server"
            ],
            "env": {
                "OURA_API_TOKEN": "YOUR_OURA_API_TOKEN"
            }
        }
    }
}

Example Queries

Once connected, you can ask Claude questions like:

  • “What’s my sleep score for today?”
  • “Show me my readiness data for the past week”
  • “How was my sleep from January 1st to January 7th?”
  • “What’s my resilience score today?”

Error Handling

The server provides human-readable error messages for common issues:

  • Invalid date formats
  • API authentication errors
  • Network connectivity problems

License

This project is licensed under the MIT License - see the LICENSE file for details.

在 GitHub 查看完整 README

安装

uvx oura-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "oura": { "command": "uvx", "args": [ "oura-mcp-server" ], "env": { "OURA_API_TOKEN": "YOUR_OURA_API_TOKEN" } } } }