get_sleep_data
Fetch nightly sleep stage data for a configurable number of weeks (default: 4).
How to use it
get_sleep_data is exposed by the Coros MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_sleep_data tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Coros MCP
claude mcp add coros -- /path/to/coros-mcp/.venv/bin/coros-mcp serveOther tools in Coros MCP (39)
Log in with your Coros credentials. The auth token is stored securely in your system keyring (or an encrypted file as fallback).
Authenticate with the Coros mobile API only. This is mainly useful if you need to restore sleep-data access without redoing full web authentication.
Average heart rate during sleep
dayDetail
dayDetail
Check whether valid web and mobile tokens are stored and how long the web token remains valid.
—
Delete a saved workout template from the Coros library.
Fetch full detail for a single activity. Requires the sporttype from listactivities.
Fetch daily metrics for a configurable number of weeks (default: 4).
List activities for a date range.
List planned activities from the Coros training calendar.
List reusable workout templates saved in the Coros library.
analyse (merge)
analyse (merge)
Maximum heart rate during sleep
Minimum heart rate during sleep
Time awake during the night
Deep sleep
Light sleep
Daytime nap time (null if none)
REM sleep
Sleep quality score (null if not computed)
Remove a scheduled workout from the Coros training calendar.
dayDetail
Save a reusable strength workout template to the Coros library. Exercises must come from the Coros exercise catalogue.
Save a reusable cycling/intervals workout template to the Coros library. The template appears in the Coros app and can be synced to the watch. Steps can be plain steps or repeat groups for intervals.
Schedule a one-off strength workout for a specific date. Builds the workout inline and posts straight to the calendar — does not create a library entry.
Schedule a one-off cycling/intervals workout for a specific date. Builds the workout inline and posts straight to the calendar — does not create a library entry. This is the common case.
Schedule an existing library template on a calendar day.
analyse (merge)
analyse (merge)
dayDetail
Total sleep in minutes
dayDetail
dayDetail
analyse (merge)
Prescribed weight in kg (e.g. 80)
Prescribed weight in pounds (e.g. 176.4) — mutually exclusive with weightkg