This MCP server provides access to the Oura API through the Model Context Protocol, allowing language models to query your sleep, readiness, and resilience data from your Oura ring.
To use the Oura MCP server, you'll need to:
Install the Oura MCP server package using pip:
pip install oura-mcp-server
Before using the server, you'll need to obtain an Oura API token:
To use the Oura MCP server with Claude for Desktop, update your configuration file:
For macOS:
Edit ~/Library/Application\ Support/Claude/claude_desktop_config.json
For Windows:
Edit %APPDATA%/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"oura": {
"command": "uvx",
"args": [
"oura-mcp-server"
],
"env": {
"OURA_API_TOKEN": "YOUR_OURA_API_TOKEN"
}
}
}
}
Replace YOUR_OURA_API_TOKEN
with the token you obtained from the Oura Developer Portal.
The server provides several tools to query your Oura data.
For retrieving data over a specific time period:
get_sleep_data(start_date: str, end_date: str)
: Get sleep dataget_readiness_data(start_date: str, end_date: str)
: Get readiness dataget_resilience_data(start_date: str, end_date: str)
: Get resilience dataDates must be in ISO format (YYYY-MM-DD
).
For quickly accessing today's data:
get_today_sleep_data()
: Get today's sleep dataget_today_readiness_data()
: Get today's readiness dataget_today_resilience_data()
: Get today's resilience dataOnce your MCP server is properly configured, you can ask Claude questions like:
The server will automatically fetch the relevant data from your Oura account and provide it to Claude for analysis.
The server provides human-readable error messages for common issues:
YYYY-MM-DD
formatIf you encounter persistent issues, verify:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "oura" '{"command":"uvx","args":["oura-mcp-server"],"env":{"OURA_API_TOKEN":"YOUR_OURA_API_TOKEN"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"oura": {
"command": "uvx",
"args": [
"oura-mcp-server"
],
"env": {
"OURA_API_TOKEN": "YOUR_OURA_API_TOKEN"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"oura": {
"command": "uvx",
"args": [
"oura-mcp-server"
],
"env": {
"OURA_API_TOKEN": "YOUR_OURA_API_TOKEN"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect