Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
The Oura v2 API as an MCP server. Paginates, fixes the date range, warns when data is missing.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
OURA_SANDBOX, OURA_CLIENT_ID, OURA_CLIENT_SECRET, OURA_CREDENTIALS, OURA_PAT, OURA_PAT_FILE标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"oura": {
"command": "uvx",
"args": [
"mcp-oura"
],
"env": {
"OURA_SANDBOX": "your-value",
"OURA_CLIENT_ID": "your-value",
"OURA_CLIENT_SECRET": "your-value",
"OURA_CREDENTIALS": "your-value",
"OURA_PAT": "your-value",
"OURA_PAT_FILE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add oura --env OURA_SANDBOX=your-value --env OURA_CLIENT_ID=your-value --env OURA_CLIENT_SECRET=your-value --env OURA_CREDENTIALS=your-value --env OURA_PAT=your-value --env OURA_PAT_FILE=your-value -- uvx mcp-oura运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"oura": {
"command": "uvx",
"args": [
"mcp-oura"
],
"env": {
"OURA_SANDBOX": "your-value",
"OURA_CLIENT_ID": "your-value",
"OURA_CLIENT_SECRET": "your-value",
"OURA_CREDENTIALS": "your-value",
"OURA_PAT": "your-value",
"OURA_PAT_FILE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"oura": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-oura"
],
"env": {
"OURA_SANDBOX": "your-value",
"OURA_CLIENT_ID": "your-value",
"OURA_CLIENT_SECRET": "your-value",
"OURA_CREDENTIALS": "your-value",
"OURA_PAT": "your-value",
"OURA_PAT_FILE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
OURA_SANDBOX envOURA_CLIENT_ID envOURA_CREDENTIALS envOURA_PAT_FILE env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 proscar87 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:OURA_CLIENT_SECRET, OURA_PAT
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.4.0)于42天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Readfirst
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
What to read and check before changing a file: project rules, risks, checks and tests per file.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
English | 简体中文 | 한국어 | Español
The Oura v2 API as an MCP server. All 19 collections, six tools, no dependencies beyond the MCP SDK.
A client that doesn't follow Oura's next_token returns 1,000 of them — 81%, looking complete, with nothing saying otherwise. Measured against the real API on 9 August 2026, one person, one ring, 24 hours.
The test to apply to any Oura MCP server, including this one: does it take next_token — or a cursor, or a limit — as a tool parameter? If it does, pagination is the model's job, and a model that forgets to ask again produces a confident answer off partial data. This server paginates to exhaustion before it returns, and tells you how many pages it took.
That's one of four ways Oura under-delivers without saying so. All four are measured below, and all four are corrected here.
Download `oura-mcp.mcpb` from the latest release and double-click it. Claude Desktop does the rest — no terminal, no Python, no Node. It runs on Oura's official sample data out of the box, and every sample response says so, so nothing can pass for your own sleep.
Prefer the command line? uvx --from mcp-oura oura-mcp.
Prefer no Python on your machine at all?
docker run -i --rm -e OURA_SANDBOX=1 ghcr.io/proscar87/oura-mcp
-i is not optional: an MCP server speaks over stdin and stdout, not over a port. Without it the container has no stdin, the handshake never arrives, and the client reports a server that doesn't show up.
In claude.ai or ChatGPT, in a browser? Those connect by URL, so the server has to live somewhere public: deploy it as a Worker on your own Cloudflare account — free, about ten minutes, yours alone. See Remote: claude.ai and ChatGPT.
Oura does not return errors when it can't give you what you asked for. It returns something different, shaped like a correct response. These are the four we found by measuring against the real API on 9 August 2026:
{ "data": [ ... ], "next_token": "eyJ0eXAiOi..." }
If next_token comes back and you don't follow it, you receive the first page and nothing warns you. One local day of heartrate — one person, one ring, 24 hours — is 1,231 samples across 2 pages. A client that doesn't paginate gets 1,000 of 1,231: 81%, looking complete. A month is ~37,000.
end_date does not behave the same across collections:
| Exclude the last day requested | Include it |
|---|---|
daily_activity, sleep, workout | daily_sleep, daily_readiness, daily_stress, daily_spo2, daily_resilience, daily_cardiovascular_age, sleep_time |
And on top of that, `workout` filters by UTC date while reporting `day` in local time: at -06:00, asking for July 16–18 returned records from the 15th and 16th — *before* the requested start.
Here the range is inclusive on both ends, always. Two extra days are requested on each side and then trimmed, which is correct whichever way a given collection behaves — and stays correct when Oura changes it.
latest=true is ignored where it doesn't applyOnly heartrate and ring_battery_level honor it. In the other seventeen Oura doesn't error: it returns the entire collection. You ask for the latest record, you get ten, and you believe it's one. Here it's rejected before the request goes out.
fields=does_not_exist returns the complete record — the projection never happens — and fields=score,does_not_exist applies the good one and drops the bad one without a word. Here, fields that never appeared are reported under ignored_fields.
The pattern is always the same: you ask for one thing, you get another, and nothing warns you. That's why this package would rather shout than quietly under-deliver.
pip install mcp-oura
OURA_SANDBOX=1 oura-mcp --check
The sandbox is official — it's in Oura's OpenAPI spec, with 34 mirror routes — and serves synthetic data without authentication. 18 of the 19 collections work there: personal_info doesn't, which makes sense, since it's the one returning email, age, weight and height.
This is the right order: first you watch the server work and learn the shape of the data, then you go get credentials.
Oura stopped issuing Personal Access Tokens in December 2025. Existing ones still work; new ones can't be created. So there are two paths:
a) OAuth2 — the one that works today. Register an application at cloud.ouraring.com/oauth/applications with the redirect http://localhost:9876/callback/ — the trailing slash is required, the portal rejects the other form with invalid_redirect_uri.
If you registered on `developer.ouraring.com` instead, your app belongs to
Oura's newer portal, whose token endpoint is a different one. The legacy
endpoint rejects those apps on every refresh — so the registration works
exactly once, until the first access token expires, and then fails forever
with nothing explaining why. This server tries the legacy endpoint and falls
back to the new one automatically; nothing to configure either way.
export OURA_CLIENT_ID="…"
export OURA_CLIENT_SECRET="…" oura-mcp --authorize # opens the browser, waits for the callback oura-mcp --authorize --manual # headless machines: you paste the URL back
The token is stored in ~/.config/oura-mcp/credenciales.json with mode 600 — or in the system keychain if you happen to have keyring installed, which is not a dependency of this package — and refreshes itself. oura-mcp --forget erases it.
b) A personal token, if you already had one.
export OURA_PAT="your-token"
oura-mcp --check
--check is the self-check: it reports which credential you're using, which scopes were granted and how long the access has left, without returning the token or a single health value. It reports the token's length, never the token. Error messages get copied and pasted into chats and issues; they have no business carrying anything else.
With the package installed (pip install mcp-oura):
claude mcp add -s user oura --env OURA_SANDBOX=1 -- oura-mcp
Drop OURA_SANDBOX once you've run oura-mcp --authorize.
If you use [uv](https://docs.astral.sh/uv/), nothing needs to be installed permanently:
claude mcp add -s user oura --env OURA_SANDBOX=1 -- uvx --from mcp-oura oura-mcp
The --from is required because the distribution is named mcp-oura and the executable oura-mcp. *(This needs uv; without it the command above fails with "command not found", and pip install is the path to take.)*
As a Claude Code plugin:
claude plugin marketplace add proscar87/oura-mcp
claude plugin install oura@oura-mcp
One click: download oura-mcp.mcpb from the releases page and double-click it. Claude Desktop installs it — no terminal, no JSON, no Python. It ships with sample data turned on, so it works before you have any credential at all.
When you want your own data, just ask it for something: it opens Oura's authorization page through Claude, waits for the callback, and retries what you asked. No terminal. That works because MCP has a mode for precisely this — URL elicitation — and the client does the opening.
The one thing Oura still requires is that every application be registered, so you need a client ID and secret from cloud.ouraring.com/oauth/applications once. That's Oura's rule, not this server's. oura-mcp --authorize remains for terminal users and for clients that can't show a URL.
Or by hand, in ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": { "oura": { "command": "/full/path/to/oura-mcp", "env": { "OURA_SANDBOX": "1" } } } }
which oura-mcp gives you the full path. Claude Desktop does not inherit your terminal's PATH, so a bare name there fails silently — one of the most common mistakes when configuring an MCP server.
Experimental. Tested end to end on Cloudflare's real runtime with Oura's
sample data, and its Oura login against a fake of Oura — but not yet against
a real deployment, a real Oura account, or claude.ai and ChatGPT completing
the connection. If you try it, an issue saying how it went helps.
claude.ai reaches a connector from Anthropic's cloud and ChatGPT from OpenAI's, not from your computer — so a server on your machine is invisible to both. ts/worker is the same server as a Cloudflare Worker that you deploy on your own account, for your own Oura account only. Nobody runs a shared instance, so your tokens and your data pass through no one else.
It adds three things the local server does not need: its own consent page, which shows which app is asking and where the result will go; a check, after Oura's login, that the account is the one you configured — anyone else is turned away, and with no owner configured nobody gets in; and a single place where Oura's single-use refresh token is renewed, one request at a time.
Deployment, step by step, and exactly what has and has not been verified: ts/worker/README.md.
oura_collections | All 19, what each one carries and which parameters it takes |
oura_query | One collection in full over a range, paginating to the end |
oura_today | Last night's sleep and today's readiness, with the days before them |
oura_compare | Whether two periods differ by more than the metric's own noise |
oura_relate | Whether two metrics' day-to-day changes move together beyond chance |
oura_check | Self-check that exposes nothing |
Six, not nineteen. A server with one tool per collection forces the model to pick among 19 similar names before knowing what any of them contain. Here the collection is a parameter and the catalog is consulted when needed.
All six declare themselves read-only, and that isn't a promise: there is no POST, PUT or DELETE anywhere in the package, and a test reads the source to keep it that way.
oura_today is the only one that exists for convenience rather than for correctness: "how did I sleep?" needs today's two records plus enough history to know whether they are unusual, which was four round trips and four chances to stop early. It computes nothing — no average, no delta, no "your HRV is up 12%". The days come back raw and the comparison happens where the method can be cited. Across nine years of real data, three out of four changes between consecutive measurement
只显示了开头部分;其余内容请在仓库中阅读