Oura Ring MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Oura Ring MCP Server How did I sleep last night?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NOTE: This project has been updated to use OAuth2 ahead of Oura Ring's deprecation of Personal Access Tokens (PATs). Because of that, this MCP will work for you in 2027 (and beyond) after following the setup steps.
Oura Ring MCP Server
This repository contains a Model Context Protocol (MCP) implementation wrapping calls to the Oura Ring API. It can be used by any LLM that implements the MCP client protocol in order to interface with it. It's currently setup to run locally.
Table of Contents
Related MCP server: oura-mcp-server
Setup
Oura Ring Application Setup
You'll have to jump through a few hooks initially to authorize this server as an "app" with Oura Ring as well as to have access to your account, but it should be smooth sailing after initial setup.
This server doesn't have a front-end by design (as your AI model - using something like Claude Desktop - will be the puppeteer after setup), so a few of the initial steps that would normally be a flow in a web/mobile app will be manual.
First, go to the Oura Ring Developer Applications Dashboard and sign up your new MCP server application. You should "Add New" and fill it out like this:

For the above picture, there's a field for "Redirect URIs" which is a webhook callback URL. Unless you run a webhook service of your own, you can use Webhook.site for a quick test link. Copy the "Your unique URL" from the below screenshot into the "Redirect URIs" in the above screenshot on the Oura Ring new application dashboard:

Don't close the webhook.site url tab down yet.
Next, click "Create Application" for the Oura Ring new application flow. You'll then see the dashboard list your Client id and Client secret. Copy those into your local .env (using the .env.example file I included in this repository) for the OURA_RING_CLIENT_ID and OURA_RING_CLIENT_SECRET values.
Then, copy the Example Authorization Url from the Oura Ring Application Dashboard and open it in a tab in your browser. You'll be doing the OAuth2 flow manually to get your token. Approve all permissions with the "Submit Consent" button:

After you do that, the webhook.site dashboard will update with a callback that just got made to their service. Grab the code from that (below is a non-functional example token) and set it as the OURA_RING_USER_CODE value. Also set OURA_RING_REDIRECT_URI to the exact redirect URI you registered with Oura and used in the authorization URL:

Congratulations, you now have all the secrets setup you need locally to proceed with using the MCP server. The actual access/refresh token fetch is automatic when you're using the MCP server.
By default, token exchange and refresh use Oura's documented token endpoint: https://api.ouraring.com/oauth/token. If Oura changes the token endpoint for your application, you can override that with OURA_RING_OAUTH_TOKEN_URL.
OURA_RING_REDIRECT_URI is used for the initial authorization-code exchange only. Refresh requests do not send redirect_uri.
NOTE: If the
tokens.jsonfile - which stores your tokens locally and is not checked into Git - gets deleted, you'll need to do this setup again. Oura Ring made it so that you can only get arefresh_tokenandaccess_tokenset from a user's code token once. Thereafter, you can fetch new token pairs with therefresh_token. Oura refresh tokens rotate, so every successful refresh returns a replacementrefresh_tokenand invalidates the previous one. If you lose the latestrefresh_token, you'll have to do this setup again.
Server Setup
First, you'll need to ensure that you have uv and the right Python versions.
Run these commands (assuming you don't already have them installed):
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
uv --version
# First, install pyenv
brew update
brew install pyenv
curl https://pyenv.run | bash
# Then, add these to your shell
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# Restart your shell using one of these commands
source ~/.zshrc
source ~/.bashrc
# Install Python 3.14.0 in Pyenv and set it as global
pyenv install 3.14.0
pyenv global 3.14.0
# Finally, verify via these commands
python --version
pyenv versionNext, you'll need to setup the environment for this repository and install dependencies. You can do that with this command (assuming you already completed the above Python version and uv install process) as uv automatically manages the virtual environment:
# Synchronize dependencies inside an automatic virtual environment
make syncFinally, you can run the project with the following command:
make runClaude Desktop Setup
This MCP server is currently setup to be run/accessed by a model locally (on your local computer with something like Claude Desktop). You can follow the Anthropic local MCP server setup options to run it locally. It will integrate with any LLM that has MCP client wrappers setup.
In order to use this MCP server, you will need to register with the Oura Ring developer portal and get your own keys to plug into a .env file (copied over from the .env.example). See earlier steps in this README file for that.
If you're using Claude Desktop, you can easily set up the connection to this repo (after adding the appropriate environment variables to your .env file) by following this guide. For brevity, here's a snippet you can add to your claude_desktop_config.json file that will work for this repository:
{
"mcpServers": {
"oura-ring": {
"command": "/Users/<your username here>/.local/bin/uv",
"args": [
"--directory",
"/Users/<your username here>/<path to repository here>/oura-ring-mcp-server",
"run",
"main.py"
]
}
}
}This MCP server will work with other agents, but you will need to figure out the connections. Any setup following the MCP client protocol should be able to utilize it.
Oura Ring API Overview
Different data has different sync policies for different types of data they collect:
Sleep data only syncs when users open the app
Daily activity and stress sync in the background without using the app
This can explain any descrepencies you see when your LLM tries to fetch most recent data. You might not have the most recent sleep data available until you (as a human) open up your Oura Ring app next.\
More information can be found in the Oura Ring API Documentation, particularly the section on core concepts).
Built With
Resources
Available Tools
15 toolsget_daily_cardiovascular_ageC
Get the daily cardiovascular age for a given date range.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The daily cardiovascular age for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_multiple_daily_activityC
Get the multiple daily activity for a given date range.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The multiple daily activity for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_multiple_daily_enhanced_tagsC
Get the multiple daily enhanced tags for a given date range.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The multiple daily enhanced tags for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_multiple_daily_heart_rateC
Get the multiple daily heart rate values for a given date range.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The multiple daily heart rate values for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_multiple_daily_readinessC
Get the multiple daily readiness for a given date range.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The multiple daily readiness for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_multiple_daily_resilienceC
Get the multiple daily resilience scores for a given date range.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The multiple daily resilience scores for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_multiple_daily_sleepB
Get the multiple daily sleep values for a given date range.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The multiple daily sleep values for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_multiple_daily_spo2B
Get the multiple daily spO2 values for a given date range. SpO2 is the oxygen saturation in the blood.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The multiple daily spo2 values for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_multiple_daily_stressC
Get the multiple daily stress values for a given date range.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The multiple daily stress values for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_personal_informationB
Get the personal information about a user (e.g. age, email, weight, and height).
Inputs: no named parameters. Returns: object
get_session_routesA
Get the session data for a given date range. A user can have multiple sessions per day.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The session routes for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_sleep_routesB
Get the sleep data for a given date range. A user can have multiple sleep periods per day.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The sleep routes for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_sleep_timeB
Get the sleep times for a given date range. This includes recommendations for the optimal bedtime window that is calculated based on sleep data.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The sleep time for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_vo2_maxB
Get the vo2 max for a given date range.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The vo2 max for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
get_workoutC
Get the workout for a given date range.
Args: start_date: The start date of the date range. Must be in YYYY-MM-DD format. end_date: The end date of the date range. Must be in YYYY-MM-DD format.
Returns: The workout for each day in a given date range.
Inputs: end_date (required), start_date (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools map cleanly to a distinct Oura data type (activity, readiness, SpO2, stress, stress, vo2_max, etc.), so an agent can usually pick the right one. The main risk cluster is sleep/period tools—get_multiple_daily_sleep, get_sleep_routes, and get_sleep_time—plus get_session_routes vs get_workout, where the boundary between 'daily values', 'routes/periods', and 'recommendations' is subtle, though descriptions do help.
All tools use a get_ prefix and snake_case, giving a readable noun-based pattern. The pattern is slightly uneven: most use get_multiple_daily_X but get_daily_cardiovascular_age breaks it, and get_session_routes / get_sleep_routes use an idiosyncratic 'routes' term that doesn't match the data-value naming.
15 tools is reasonable for a data-rich fitness/health API covering many metric types, and each maps to a distinct endpoint. It is on the upper end but justified by the breadth of Oura metrics rather than redundant tooling.
The surface covers most read-side Oura data (activity, sleep, readiness, SpO2, stress, resilience, cardiovascular age, vo2_max, workouts, personal info). Notable gaps: no HRV, body temperature deviation, or non-enhanced tags endpoints, but these are minor for a read-only API and agents can work around them.
Maintenance
Related MCP Connectors
Multi-tenant hosted MCP server for Oura Ring — 21 read-only tools, OAuth per user.
Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
Connect your Oura Ring account securely in minutes. Enable authorized access to your sleep, activi…
Connect your Oura Ring account and enable access to your wellness data in apps and automations. In…
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for the Oura Ring API v2, providing access to sleep, activity, readiness, heart rate, and workout data via OAuth.5152 npm1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to query Oura Ring health data (sleep, readiness, activity, heart rate, SpO2, stress) via a remote MCP server.-
- AlicenseAqualityDmaintenanceComprehensive MCP server for the Oura Ring API v2, exposing 17 tools to access sleep, activity, heart rate, stress, SpO2, workouts, and user data.171MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access Oura Ring health data including sleep, readiness, activity, heart rate, and workouts through MCP tools with OAuth2 authentication.1MIT