Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

oura-mcp-server

MCP.Pizza Chef: tomekkorbak

The oura-mcp-server is an MCP server that integrates with the Oura API, allowing language models to query detailed health metrics such as sleep, readiness, and resilience data. It supports date range queries to fetch personalized wellness data, enabling real-time, structured access to Oura's health insights within AI workflows. This server facilitates seamless interaction between LLMs and Oura's health tracking ecosystem, enhancing context-aware applications.

Use This MCP server To

Query Oura sleep data for specific date ranges Retrieve readiness scores from Oura API Access resilience metrics via Oura API Integrate Oura health data into AI-driven wellness apps Enable LLMs to analyze personal health trends Automate health report generation from Oura data Combine Oura data with other health APIs for insights

README

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.

oura-mcp-server FAQ

How do I authenticate the oura-mcp-server with the Oura API?
You need to provide your Oura API credentials or OAuth tokens as configured in the server setup to enable secure access.
Can the oura-mcp-server fetch data for custom date ranges?
Yes, it supports querying sleep, readiness, and resilience data for any specified start and end dates.
Is the oura-mcp-server compatible with multiple LLM providers?
Yes, it is provider-agnostic and works with OpenAI, Anthropic Claude, and Google Gemini models.
What programming language is the oura-mcp-server implemented in?
It is implemented in Python 3.12, ensuring compatibility with modern Python environments.
How does the server handle rate limits from the Oura API?
The server includes mechanisms to respect Oura API rate limits, queuing or throttling requests as needed to maintain compliance.
Can I extend the oura-mcp-server with additional Oura API endpoints?
Yes, the server is designed to be extensible, allowing developers to add more tools for other Oura API features.
Is the oura-mcp-server open source?
Yes, it is licensed under the MIT License and available on GitHub for community contributions and transparency.