MCP Server Studio

Oura MCP MCP server

The Oura v2 API as an MCP server. Paginates, fixes the date range, warns when data is missing.

Registry name: io.github.proscar87/oura-mcp

Publisher
proscar87
Runs
Runs locally
Package
PyPI
Version
0.4.0
Category
Developer tools
Updated
2026-09-27

Source code on GitHub

Set up Oura MCP (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "oura-mcp": {
      "command": "uvx",
      "args": [
        "mcp-oura==0.4.0"
      ],
      "env": {
        "OURA_SANDBOX": "<OURA_SANDBOX>",
        "OURA_CLIENT_ID": "<OURA_CLIENT_ID>",
        "OURA_CLIENT_SECRET": "<OURA_CLIENT_SECRET>",
        "OURA_CREDENTIALS": "<OURA_CREDENTIALS>",
        "OURA_PAT": "<OURA_PAT>",
        "OURA_PAT_FILE": "<OURA_PAT_FILE>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add oura-mcp -e OURA_SANDBOX='<OURA_SANDBOX>' -e OURA_CLIENT_ID='<OURA_CLIENT_ID>' -e OURA_CLIENT_SECRET='<OURA_CLIENT_SECRET>' -e OURA_CREDENTIALS='<OURA_CREDENTIALS>' -e OURA_PAT='<OURA_PAT>' -e OURA_PAT_FILE='<OURA_PAT_FILE>' -- uvx mcp-oura==0.4.0

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "oura-mcp": {
      "command": "uvx",
      "args": [
        "mcp-oura==0.4.0"
      ],
      "env": {
        "OURA_SANDBOX": "<OURA_SANDBOX>",
        "OURA_CLIENT_ID": "<OURA_CLIENT_ID>",
        "OURA_CLIENT_SECRET": "<OURA_CLIENT_SECRET>",
        "OURA_CREDENTIALS": "<OURA_CREDENTIALS>",
        "OURA_PAT": "<OURA_PAT>",
        "OURA_PAT_FILE": "<OURA_PAT_FILE>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "oura-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-oura==0.4.0"
      ],
      "env": {
        "OURA_SANDBOX": "<OURA_SANDBOX>",
        "OURA_CLIENT_ID": "<OURA_CLIENT_ID>",
        "OURA_CLIENT_SECRET": "<OURA_CLIENT_SECRET>",
        "OURA_CREDENTIALS": "<OURA_CREDENTIALS>",
        "OURA_PAT": "<OURA_PAT>",
        "OURA_PAT_FILE": "<OURA_PAT_FILE>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "oura-mcp": {
      "command": "uvx",
      "args": [
        "mcp-oura==0.4.0"
      ],
      "env": {
        "OURA_SANDBOX": "<OURA_SANDBOX>",
        "OURA_CLIENT_ID": "<OURA_CLIENT_ID>",
        "OURA_CLIENT_SECRET": "<OURA_CLIENT_SECRET>",
        "OURA_CREDENTIALS": "<OURA_CREDENTIALS>",
        "OURA_PAT": "<OURA_PAT>",
        "OURA_PAT_FILE": "<OURA_PAT_FILE>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
OURA_SANDBOXNoSet to 1 to use Oura's official synthetic data with no credentials. The recommended way to try the server before authenticating.
OURA_CLIENT_IDNoclient_id of your Oura application, for OAuth2. Register one at https://cloud.ouraring.com/oauth/applications with the redirect http://localhost:9876/callback/ (the trailing slash is required).
OURA_CLIENT_SECRETNoclient_secret of your Oura application. Only needed when running `oura-mcp --authorize` and when refreshing the token.
OURA_CREDENTIALSNoWhere the OAuth2 credentials file lives. Defaults to ~/.config/oura-mcp/credentials.json, mode 600.
OURA_PATNoOura Personal Access Token. Only if you already had one: Oura stopped issuing them in December 2025.
OURA_PAT_FILENoPath to a file holding the personal token. Preferable to OURA_PAT: an MCP server is registered in a JSON that gets backed up and shared when asking for help; a separate file rotates without touching…

More developer tools MCP servers