Skip to main content
Glama
tomekkorbak

Oura MCP Server

by tomekkorbak

Oura MCP 服务器

Python 包 PyPI 版本 许可证:MIT Python 3.12

提供对 Oura API 访问权限的模型上下文协议(MCP) 服务器。它允许语言模型从 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() :获取今天的弹性数据

Related MCP server: Sleep MCP Server

用法

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

  1. 前往Oura 开发者门户

  2. 创建个人访问令牌

克劳德桌面版

更新您的claude_desktop_config.json (在 macOS 上位于~/Library/Application\ Support/Claude/claude_desktop_config.json ,在 Windows 上位于%APPDATA%/Claude/claude_desktop_config.json )以包含以下内容:

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

示例查询

连接后,您可以向 Claude 询问以下问题:

  • “我今天的睡眠分数是多少?”

  • “显示我过去一周的准备情况数据”

  • “我从 1 月 1 日到 1 月 7 日睡眠怎么样?”

  • “我今天的韧性得分是多少?”

错误处理

服务器针对常见问题提供可读的错误消息:

  • 无效的日期格式

  • API 身份验证错误

  • 网络连接问题

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tomekkorbak/oura-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server