The Oura v2 API as an MCP server. Paginates, fixes the date range, warns when data is missing.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add oura-proscar87 --env OURA_CLIENT_SECRET='<OURA_CLIENT_SECRET>' --env OURA_PAT='<OURA_PAT>' -- uvx mcp-oura~/.codex/config.toml
[mcp_servers.oura-proscar87]
command = "uvx"
args = ["mcp-oura"]
env = { OURA_CLIENT_SECRET = "<OURA_CLIENT_SECRET>", OURA_PAT = "<OURA_PAT>" }
# codex mcp add oura-proscar87 --env OURA_CLIENT_SECRET='<OURA_CLIENT_SECRET>' --env OURA_PAT='<OURA_PAT>' -- uvx mcp-oura~/.cursor/mcp.json
{
"mcpServers": {
"oura-proscar87": {
"command": "uvx",
"args": [
"mcp-oura"
],
"env": {
"OURA_CLIENT_SECRET": "<OURA_CLIENT_SECRET>",
"OURA_PAT": "<OURA_PAT>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"oura-proscar87": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-oura"
],
"env": {
"OURA_CLIENT_SECRET": "<OURA_CLIENT_SECRET>",
"OURA_PAT": "<OURA_PAT>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"oura-proscar87": {
"command": "uvx",
"args": [
"mcp-oura"
],
"env": {
"OURA_CLIENT_SECRET": "<OURA_CLIENT_SECRET>",
"OURA_PAT": "<OURA_PAT>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"oura-proscar87": {
"command": "uvx",
"args": [
"mcp-oura"
],
"env": {
"OURA_CLIENT_SECRET": "<OURA_CLIENT_SECRET>",
"OURA_PAT": "<OURA_PAT>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"oura-proscar87": {
"command": "uvx",
"args": [
"mcp-oura"
],
"env": {
"OURA_CLIENT_SECRET": "<OURA_CLIENT_SECRET>",
"OURA_PAT": "<OURA_PAT>"
}
}
}
}需要的环境变量
OURA_CLIENT_SECRETOURA_PAT
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。