项目介绍
Oura MCP 服务器
简体中文 | English

一个提供访问Oura API的模型上下文协议 (MCP)服务器。它允许语言模型查询Oura API中的睡眠、准备度和恢复力数据。
<a href="https://glama.ai/mcp/servers/@YuzeHao2023/MCP-oura">
<img width="380" height="200" src="https://gips3.baidu.com/it/u=3342444672,2457048835&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Oura Server MCP 服务器" />
</a>
所有文档
招募翻译人员!我们正在寻找翻译人员,帮助将此规范翻译成多种语言!
阅读我们的文档:
可用工具
该服务器暴露了以下工具:
日期范围查询
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令牌来使用此服务器。你可以通过以下方式获取:
- 前往 Oura 开发者门户
- 创建一个个人访问令牌
Claude for Desktop
更新你的 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日我的睡眠情况如何?"
- "我今天的恢复力评分是多少?"
错误处理
服务器提供了常见问题的人类可读错误消息:
许可证
本项目采用MIT许可证 - 查看LICENSE文件了解详情。
维护者
<div align="center">
<h4 align="center">
维护者负责项目的维护、决策和长期发展。
</h4>
<!-- 替换以下占位符为实际维护者信息 -->
<a href="https://github.com/YuzeHao2023" target="_blank">
<img src="https://gips2.baidu.com/it/u=624092300,1254888204&fm=3081&app=3081&f=PNG?w=420&h=420" width="100" height="100" style="border-radius: 50%; margin: 0 10px; object-fit: cover;" alt="YuzeHao2023" />
</a>
<a href="https://github.com/dvlan26" target="_blank">
<img src="https://gips3.baidu.com/it/u=2175792727,3682992080&fm=3081&app=3081&f=PNG?w=420&h=420" width="100" height="100" style="border-radius: 50%; margin: 0 10px; object-fit: cover;" alt="dvlan26" />
</a>
<!-- 如需添加更多维护者,复制上方a标签块并修改信息即可 -->
</div>
核心贡献者
<div align="center">
<h4 align="center">
核心贡献者是项目的基础。
</h4>
<a href="https://github.com/YuzeHao2023" target="_blank">
<img src="https://gips2.baidu.com/it/u=624092300,1254888204&fm=3081&app=3081&f=PNG?w=420&h=420" width="100" height="100" style="border-radius: 50%; margin: 0 10px; object-fit: cover;" alt="YuzeHao2023" />
</a>
<a href="https://github.com/dvlan26" target="_blank">
<img src="https://gips3.baidu.com/it/u=2175792727,3682992080&fm=3081&app=3081&f=PNG?w=420&h=420" width="100" height="100" style="border-radius: 50%; margin: 0 10px; object-fit: cover;" alt="dvlan26" />
</a>
<a href="https://github.com/halamji" target="_blank">
<img src="https://gips3.baidu.com/it/u=2371040097,293612400&fm=3081&app=3081&f=PNG?w=420&h=420" width="100" height="100" style="border-radius: 50%; margin: 0 10px; object-fit: cover;" alt="halamji" />
</a>
<a href="https://github.com/yzhao112" target="_blank">
<img src="https://gips1.baidu.com/it/u=3726276070,2775777698&fm=3081&app=3081&f=PNG?w=420&h=420" width="100" height="100" style="border-radius: 50%; margin: 0 10px; object-fit: cover;" alt="yzhao112" />
</a>
<a href="https://github.com/punkpeye" target="_blank">
<img src="https://github.com/punkpeye.png" width="100" height="100" style="border-radius: 50%; margin: 0 10px; object-fit: cover;" alt="punkpeye" />
</a>
<a href="https://github.com/iMilesHo" target="_blank">
<img src="https://gips1.baidu.com/it/u=326483764,669966998&fm=3081&app=3081&f=JPEG?w=460&h=460" width="100" height="100" style="border-radius: 50%; margin: 0 10px; object-fit: cover;" alt="iMilesHo" />
</a>
</div>