プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Oura Ring

作者:AntVslバージョン 0.4.2i★ –iパソコンで動く
レジストリ名io.github.AntVsl/oura-mcp

インストール

概要

作者による説明(英語の原文)

Sleep, readiness, HRV, resting heart rate, activity and stress from your Oura Ring

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio, Streamable HTTP
  • カテゴリ: クリニック・健康
  • 入力が必要なもの:OURA_CLIENT_SECRET

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: OURA_CLIENT_ID, OURA_CLIENT_SECRET, OURA_REDIRECT_URI, OURA_API_MODE, OURA_TZ, OURA_TOKEN_STORE, OURA_PUBLIC_URL, OURA_OAUTH_ALLOWED_REDIRECT_ORIGINS

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • PyPIPythonのuvのインストール(uvxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "oura": {
      "command": "uvx",
      "args": [
        "my-oura-mcp"
      ],
      "env": {
        "OURA_CLIENT_ID": "your-value",
        "OURA_CLIENT_SECRET": "your-value",
        "OURA_REDIRECT_URI": "your-value",
        "OURA_API_MODE": "your-value",
        "OURA_TZ": "your-value",
        "OURA_TOKEN_STORE": "your-value",
        "OURA_PUBLIC_URL": "your-value",
        "OURA_OAUTH_ALLOWED_REDIRECT_ORIGINS": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add oura --env OURA_CLIENT_ID=your-value --env OURA_CLIENT_SECRET=your-value --env OURA_REDIRECT_URI=your-value --env OURA_API_MODE=your-value --env OURA_TZ=your-value --env OURA_TOKEN_STORE=your-value --env OURA_PUBLIC_URL=your-value --env OURA_OAUTH_ALLOWED_REDIRECT_ORIGINS=your-value -- uvx my-oura-mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "oura": {
      "command": "uvx",
      "args": [
        "my-oura-mcp"
      ],
      "env": {
        "OURA_CLIENT_ID": "your-value",
        "OURA_CLIENT_SECRET": "your-value",
        "OURA_REDIRECT_URI": "your-value",
        "OURA_API_MODE": "your-value",
        "OURA_TZ": "your-value",
        "OURA_TOKEN_STORE": "your-value",
        "OURA_PUBLIC_URL": "your-value",
        "OURA_OAUTH_ALLOWED_REDIRECT_ORIGINS": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "oura": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "my-oura-mcp"
      ],
      "env": {
        "OURA_CLIENT_ID": "your-value",
        "OURA_CLIENT_SECRET": "your-value",
        "OURA_REDIRECT_URI": "your-value",
        "OURA_API_MODE": "your-value",
        "OURA_TZ": "your-value",
        "OURA_TOKEN_STORE": "your-value",
        "OURA_PUBLIC_URL": "your-value",
        "OURA_OAUTH_ALLOWED_REDIRECT_ORIGINS": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • OURA_CLIENT_ID env
    Client ID of your Oura application from developer.ouraring.com
  • OURA_CLIENT_SECRET 秘密 env
    Client secret of your Oura application
  • OURA_REDIRECT_URI env
    OAuth redirect URI; must match the Oura application byte for byte
  • OURA_API_MODE env
    sandbox for Oura's synthetic data (no auth needed), production for your own
  • OURA_TZ env
    IANA timezone deciding what counts as today. Set it explicitly on servers, whose clocks run in UTC
  • OURA_TOKEN_STORE env
    Where the OAuth flow stores tokens. Written by the server, not set by hand
  • OURA_PUBLIC_URL env
    Public https address, without a trailing slash. Enables OAuth 2.1 for Claude.ai and ChatGPT; leave empty for local or Bearer-token clients
  • OURA_OAUTH_ALLOWED_REDIRECT_ORIGINS env
    Comma-separated trusted OAuth redirect origins; defaults to Claude.ai and ChatGPT

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント AntVsl で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

クリニック・健康のほかのサーバーとの比較i

  • このカテゴリのほかの1022件のうち0%よりスターが多い
  • このカテゴリのほかの1022件のうち34%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1022件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Oura Ringは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:OURA_CLIENT_SECRET

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.4.2)がレジストリに届いたのは2 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv), Dockerも必要です。

代わりに使えるものは?

同じカテゴリには:Mirobody, FHIR MCP Server, Google Health MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Mirobody

作者:thetahealth

Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.

パソコンで動く★ 1,408Apache-2.0今日更新
インストール

FHIR MCP Server

作者:wso2

MCP server providing seamless access to FHIR APIs for AI tools and healthcare applications

パソコンで動く★ 137Apache-2.09 日前更新
インストール

Google Health MCP

作者:davidmosiah

Privacy-first unofficial Google Health API v4 MCP server for health, sleep, activity, HR agents

パソコンで動く★ 79MIT4 か月前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

my-oura-mcp

Gives Claude, ChatGPT, and Codex access to your Oura Ring data: sleep, readiness, HRV, resting heart rate, activity, SpO₂, stress.

Ask "how did I sleep last week" and your MCP client calls the right tool and gets a summary back — not a wall of JSON:

{

"metric": "sleep_detail", "period": { "start": "2026-07-23", "end": "2026-07-29", "days": 7 }, "stats": { "total_h": { "mean": 7.1, "min": 5.9, "max": 8.4 }, "deep_h": { "mean": 1.3, "min": 0.9, "max": 1.8 }, "avg_hrv": { "mean": 42, "min": 31, "max": 55, "trend_per_week": 1.8 }, "efficiency": { "mean": 88, "min": 82, "max": 93 } } }

New to MCP? Model Context Protocol lets AI clients reach external data.

Install this server, connect it once, then ask about your sleep in plain

language. No coding involved.

Works locally in Claude Code and Codex, and remotely in claude.ai and ChatGPT once it is deployed to a server of your own.

*Читать по-русски: README.ru.md*

Why another one

  • Compact by default. Tools return per-day values plus statistics with a trend, not the raw API payload. Raw responses stay one raw=True away. A month of heart-rate data shrinks by more than 10×.
  • One codebase, two transports. stdio for local use, streamable-http for remote. A flag apart, not a rewrite.
  • Timezone-correct. Oura filters some endpoints by an internal UTC timestamp while returning a local day field, and returns heart-rate timestamps in UTC. Both quietly lose or misplace data outside UTC. This server handles it — see Timezone handling.
  • Survives flaky networks. Follows next_token pagination, retries dropped connections with exponential backoff, and turns HTTP status codes into messages that say what to fix.
  • Try before authorizing. Oura's sandbox works with no credentials at all.

Quick start

Requires uv. No Oura token needed for this part.

git clone https://github.com/AntVsl/oura_mcp && cd oura_mcp

cp .env.example .env uv sync

Check that data flows (hits Oura's sandbox, no auth required):

uv run python -m my_oura_mcp.smoke

Connect it locally — the server prints the commands with the absolute path already filled in, and writes nothing itself:

uv run my-oura-mcp install

Then ask your client for an Oura summary. The get_status tool reports which mode the server is in.

Tools

ToolReturnsDefault range
get_daily_summarySleep, readiness and activity scores at once7 days
get_sleepSleep stages, efficiency, HRV, resting HR, breathing, temperature7 days
get_sleep_scoreDaily sleep score only — lighter than get_sleep7 days
get_readinessReadiness score, HRV balance, temperature deviation7 days
get_activityActivity score, steps, calories7 days
get_heartratePer-minute heart rate collapsed to daily stats3 days
get_spo2Blood oxygen during sleep, breathing disturbance index7 days
get_stressTime under load and in recovery7 days
get_heart_healthCardiovascular age, VO₂max30 days
get_tagsTags you entered in the Oura app30 days
get_statusServer mode and authorization state—

Every data tool takes either days_back or an explicit start_date/end_date pair (YYYY-MM-DD), plus raw to get Oura's untouched response.

Using your own data

The sandbox returns synthetic data. For your own you need an Oura application and a one-time authorization — no review to pass, a fresh application works immediately.

What to do
1Register an application at developer.ouraring.com
2Put OURA_CLIENT_ID and OURA_CLIENT_SECRET into .env
3uv run my-oura-mcp auth — opens a browser, stores tokens with mode 600
4Set OURA_API_MODE=production in .env

When registering: Redirect URI is http://localhost:8765/callback, matched byte for byte. Scopes are daily, heartrate, tag, spo2, stress, heart_health. Everything else is arbitrary.

Tokens refresh themselves from there. Check with my-oura-mcp auth --status, forget them with auth --logout.

Personal Access Tokens no longer work: Oura stopped issuing them in December

2025.

Refresh tokens are single-use. Each refresh kills the old one, so two

instances sharing a token store knock each other out. The symptom is a 400

mentioning single use; the cure is re-running auth and keeping one instance.

Configuration

Everything lives in .env (see .env.example). Secrets never reach git.

VariablePurpose
OURA_CLIENT_ID / OURA_CLIENT_SECRETOura application credentials
OURA_REDIRECT_URIMust match the application exactly
OURA_API_MODEsandbox (synthetic data) or production
OURA_TZTimezone deciding what "today" means. Set explicitly on servers
OURA_MCP_TOKENShared secret guarding the HTTP endpoint; also the consent-page password
OURA_PUBLIC_URLPublic https address. When set, enables OAuth for Claude.ai and ChatGPT
OURA_OAUTH_ALLOWED_REDIRECT_ORIGINSComma-separated OAuth client origins; defaults to Claude.ai and ChatGPT
OURA_TOKEN_STOREWhere the OAuth flow writes tokens. Not set by hand
OURA_CACHE_DBSQLite cache file. An empty value disables caching

Running it

One codebase, two transports: stdio next to a client on this machine, HTTP on a server so the web clients and your phone can reach it.

Locally
ClientCommand
Claude Codeclaude mcp add --scope user oura -- uv --directory PATH run my-oura-mcp
Codexcodex mcp add oura -- uv --directory PATH run my-oura-mcp

uv run my-oura-mcp install prints these with the absolute path already filled in. --scope user makes the server visible from any directory; without it, only from where the command ran. Verify with claude mcp list / codex mcp list.

Nothing is exposed and no network is involved. To debug the transport itself: uv run my-oura-mcp --transport http --port 8000 — no secret needed on loopback.

On a server

This is what makes the server reachable from any device, from Claude.ai and from ChatGPT. Step by step in [docs/DEPLOY.md](docs/DEPLOY.md) (Russian): how to let traffic in, how to move Oura authorization across, how to connect web clients.

ClientHow it connects
Claude.ai, ChatGPTOAuth. No client ID or secret to enter — the client registers itself and the consent page asks for OURA_MCP_TOKEN
Claude Codeclaude mcp add --scope user --transport http oura URL --header "Authorization: Bearer TOKEN"
Codexcodex mcp add oura --url URL --bearer-token-env-var OURA_MCP_TOKEN

OURA_PUBLIC_URL turns OAuth on: the server becomes its own authorization server with dynamic client registration, restricted to https://claude.ai and https://chatgpt.com. Another client needs its exact origin in OURA_OAUTH_ALLOWED_REDIRECT_ORIGINS; the consent page names the client and its return origin before asking for the secret.

Two ways to expose it, and the choice is not cosmetic. Caddy is simpler, but its certificate lands in Certificate Transparency — a public log revealing that this address hosts a service. A Cloudflare Tunnel opens no inbound ports at all. If a VPN lives on the same host, only the tunnel will do.

Which one
stdio, localHTTP, on a server
Claude Code and Codex on this machineyesyes
Other devicesnoyes
Claude.ai, ChatGPT, phonenoyes, over OAuth
Needs a domain and a hostnoyes
Data leaves this machinenoyes, to your server

Keep exactly one live instance: Oura's refresh token is single-use, and two servers sharing a token store will knock each other out of authorization.

Timezone handling

Three separate bugs came from Oura's date semantics, all of which lost data silently rather than raising an error. Worth knowing if you build against this API yourself:

  • `sleep` and `daily_activity` are filtered by an internal UTC timestamp, not by the day field Oura itself returns. At UTC+3 a night that starts after midnight lands in the previous UTC day: asking for 28..28 returns nothing while the record with day=28 plainly exists. The server widens the window and trims by day afterwards. Verified by sweeping every endpoint; the other six behave.
  • `heartrate` returns timestamps in UTC. Grouping by the first ten characters of that string splits a local day in two, pushing 00:00–03:00 local into the previous day — exactly the resting heart rate you care about. Grouping uses OURA_TZ.
  • Oura returns several sleep records per day — the night plus naps. Picking an arbitrary one lets a 12-minute nap displace a full night. The record typed long_sleep wins, or the longest one; naps are reported separately as naps_h so their HRV never averages with the night's.

Security

  • .env, the token store and the cache are in .gitignore. Verify before committing: git status --porcelain.
  • The token store and SQLite cache are written with owner-only (600) file permissions.
  • The HTTP endpoint is guarded by OURA_MCP_TOKEN using a constant-time comparison. The access model is deliberately simple: one secret, one owner, no per-user separation.
  • The server refuses to start on a non-loopback address without a secret rather than quietly serving health data to the open internet. Try it: uv run my-oura-mcp --transport http --host 0.0.0.0.
  • /healthz is intentionally open — a reverse proxy needs it, and it returns nothing but ok.
  • Caddy strips the Authorization header from its logs.

Caching

Older days go into SQLite. The two most recent completed days are rechecked on every request because late syncs can update them; older history is served from the cache without a network call.

uv run my-oura-mcp cache --status   # what is cached

uv run my-oura-mcp cache --clear # forget it

Three things worth knowing. Today is never cached — Oura is still writing it. Empty days are not cached either: an empty day means either "did not wear the ring" or "has not synced yet", and the second resolves itself within hours, whereas a cached blank would last forever. The mode is part of the key, so sandbox data cannot surface in production.

Per-minute heart rate bypasses the cache: its rows carry no day field.

MCP resources

Clients that support resources can read oura://today, oura://yesterday, and oura://week. They provide the same sleep/readiness/activity summaries as the tools, without choosing arguments manually.

Skill with recipes

skills/oura ships a Claude-oriented skill — not more tools, but workflows on top of them: whether sleep is actually improving, whether today can take load, what the body was doing on a bad day, whether a change in routine did anything. Each is a sequence of calls plus a way to reason about the answer, which no single tool can express.

Install it by copying into your client's skills directory:

cp -r skills/oura ~/.claude/skills/

The recipes are checked against the code by tests: a field name that no tool returns fails uv run pytest instead of quietly sending the model nowhere.

Codex can also load these repository skills after copying them to its skills directory:

mkdir -p ~/.codex/skills

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く