Oura MCP Server

Oura MCP Server

By tomekkorbak GitHub

MCP server for Oura API integration

mcp oura-ring
Overview

What is Oura MCP Server?

Oura MCP Server is a Model Context Protocol (MCP) server that provides access to the Oura API, allowing users to query sleep, readiness, and resilience data.

How to use Oura MCP Server?

To use the Oura MCP Server, you need to obtain an Oura API token from the Oura Developer Portal and configure your application to connect to the server.

Key features of Oura MCP Server?

  • Access to sleep, readiness, and resilience data from the Oura API.
  • Supports date range queries and today's data queries.
  • Provides human-readable error messages for common issues.

Use cases of Oura MCP Server?

  1. Querying sleep scores for specific date ranges.
  2. Retrieving readiness data for today or the past week.
  3. Analyzing resilience scores over time.

FAQ from Oura MCP Server?

  • How do I obtain an Oura API token?

You can obtain an Oura API token by visiting the Oura Developer Portal and creating a Personal Access Token.

  • What kind of data can I access?

You can access sleep, readiness, and resilience data through the Oura API.

  • What formats are supported for date queries?

Dates should be provided in ISO format (YYYY-MM-DD).

Content

Oura MCP Server

Python Package PyPI version License: MIT Python 3.12

A Model Context Protocol (MCP) server that provides access to the Oura API. It allows language models to query sleep, readiness, and resilience data from Oura API.

Available Tools

The server exposes the following tools:

Date Range Queries

  • get_sleep_data(start_date: str, end_date: str): Get sleep data for a specific date range
  • get_readiness_data(start_date: str, end_date: str): Get readiness data for a specific date range
  • get_resilience_data(start_date: str, end_date: str): Get resilience data for a specific date range

Dates should be provided in ISO format (YYYY-MM-DD).

Today's Data Queries

  • get_today_sleep_data(): Get sleep data for today
  • get_today_readiness_data(): Get readiness data for today
  • get_today_resilience_data(): Get resilience data for today

Usage

You'll need an Oura API token to use this server. You can obtain one by:

  1. Going to the Oura Developer Portal
  2. Creating a Personal Access Token

Claude for Desktop

Update your claude_desktop_config.json (located in ~/Library/Application\ Support/Claude/claude_desktop_config.json on macOS and %APPDATA%/Claude/claude_desktop_config.json on Windows) to include the following:

{
    "mcpServers": {
        "oura": {
            "command": "uvx",
            "args": [
                "oura-mcp-server"
            ],
            "env": {
                "OURA_API_TOKEN": "YOUR_OURA_API_TOKEN"
            }
        }
    }
}

Example Queries

Once connected, you can ask Claude questions like:

  • "What's my sleep score for today?"
  • "Show me my readiness data for the past week"
  • "How was my sleep from January 1st to January 7th?"
  • "What's my resilience score today?"

Error Handling

The server provides human-readable error messages for common issues:

  • Invalid date formats
  • API authentication errors
  • Network connectivity problems

License

This project is licensed under the MIT License - see the LICENSE file for details.

No tools information available.

This is a basic MCP Server-Client Impl using SSE

mcp server-client
View Details

-

mcp model-context-protocol
View Details

Buttplug.io Model Context Protocol (MCP) Server

mcp buttplug
View Details

MCP web search using perplexity without any API KEYS

mcp puppeteer
View Details

free MCP server hosting using vercel

mcp mantle-network
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details