eight-sleep-mcp

v0.2.5
io.github.davidmosiah/eight-sleep-mcp Checked 5 hours ago Published 6 months ago

Unofficial Eight Sleep MCP server: read sleep trends, temperature, alarms; gated pod control.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

eight_sleep_profile_get Eight Sleep profile get

Returns the shared Delx Wellness profile (~/.delx-wellness/profile.json). Read-only. Surfaces preferred sleep window, age, goals, and devices so eight_sleep_nightly_summary and bedtime experiments can personalize recommendations.

ParameterTypeDescription
response_formatstring

eight_sleep_profile_update Eight Sleep profile update

Persist a partial patch to the shared Delx Wellness profile (~/.delx-wellness/profile.json). Requires explicit_user_intent: true. Rejects any field whose key looks like a credential (oauth/token/secret/password/cookie/refresh/api_key/bearer/credential/session_id) or whose value matches credential-shaped patterns (JWT, Bearer token, sk_live_, sk-proj-, xoxb-, github_pat_).

ParameterTypeDescription
patch *objectPartial WellnessProfileDocument patch. Top-level keys: profile, goals, devices, training, nutrition, preferences, safety, notes.
explicit_user_intentbooleanPass true only after the user explicitly asked to save, log, set, or delete this personal wellness profile data.
response_formatstring

eight_sleep_onboarding Eight Sleep onboarding

Returns the 11-question onboarding flow for the shared Delx Wellness profile (en or pt-BR). The agent should ask these questions next so Eight Sleep (and the rest of the wellness stack) can personalize responses — non-secret data only, stored at ~/.delx-wellness/profile.json.

ParameterTypeDescription
localestring
response_formatstring

eight_sleep_data_inventory Eight Sleep Data Inventory

Inventory supported Eight Sleep domains, mutation tools, and recommended first calls. Does not call Eight Sleep APIs.

ParameterTypeDescription
response_formatstring

eight_sleep_capabilities Eight Sleep MCP Capabilities

Explain supported Eight Sleep data, mutation gate, privacy modes, and project links. Does not call Eight Sleep or expose secrets.

ParameterTypeDescription
response_formatstring

eight_sleep_agent_manifest Eight Sleep Agent Manifest

Machine-readable install, runtime and client guidance for AI agents operating the Eight Sleep MCP.

ParameterTypeDescription
clientstring
response_formatstring

eight_sleep_connection_status Eight Sleep Connection Status

Check env, local config, token file, Node version, privacy mode and mutation gate. Does not call Eight Sleep or expose secrets.

ParameterTypeDescription
clientstring
response_formatstring

eight_sleep_cache_status Eight Sleep Cache Status

Show optional local SQLite cache status. Enable with EIGHT_SLEEP_CACHE=sqlite or EIGHT_SLEEP_CACHE=true.

ParameterTypeDescription
response_formatstring

eight_sleep_privacy_audit Eight Sleep Privacy Audit

Return local privacy, cache, token-path, env-presence, mutation gate and redaction posture without revealing secret values.

ParameterTypeDescription
response_formatstring

eight_sleep_logout Eight Sleep Logout

Delete the local Eight Sleep token file. Use when the user explicitly wants to disconnect.

ParameterTypeDescription
response_formatstring

eight_sleep_get_me Get Eight Sleep Profile (me)

Return the authenticated user's Eight Sleep profile and assigned devices.

ParameterTypeDescription
privacy_modestringOptional per-call payload privacy override. Defaults to EIGHT_SLEEP_PRIVACY_MODE or structured.
response_formatstring

eight_sleep_get_user Get Eight Sleep User

Return Eight Sleep profile data for a specific user_id (defaults to authenticated user).

ParameterTypeDescription
privacy_modestringOptional per-call payload privacy override. Defaults to EIGHT_SLEEP_PRIVACY_MODE or structured.
response_formatstring
user_idstringEight Sleep user id. Defaults to the authenticated user (from stored token).

eight_sleep_get_current_device Get Current Eight Sleep Device

Return the bed side currently assigned to the user (solo/left/right).

ParameterTypeDescription
privacy_modestringOptional per-call payload privacy override. Defaults to EIGHT_SLEEP_PRIVACY_MODE or structured.
response_formatstring
user_idstringEight Sleep user id. Defaults to the authenticated user (from stored token).

eight_sleep_get_temperature Get Eight Sleep Temperature

Return current heating level, smart-schedule levels and side on/off state.

ParameterTypeDescription
privacy_modestringOptional per-call payload privacy override. Defaults to EIGHT_SLEEP_PRIVACY_MODE or structured.
response_formatstring
user_idstringEight Sleep user id. Defaults to the authenticated user (from stored token).

eight_sleep_get_alarms Get Eight Sleep Alarms

Return the list of configured alarms and the recommended next alarm.

ParameterTypeDescription
privacy_modestringOptional per-call payload privacy override. Defaults to EIGHT_SLEEP_PRIVACY_MODE or structured.
response_formatstring
user_idstringEight Sleep user id. Defaults to the authenticated user (from stored token).

eight_sleep_get_base Get Eight Sleep Adjustable Base

Return adjustable-base state: leg angle, torso angle and preset.

ParameterTypeDescription
privacy_modestringOptional per-call payload privacy override. Defaults to EIGHT_SLEEP_PRIVACY_MODE or structured.
response_formatstring
user_idstringEight Sleep user id. Defaults to the authenticated user (from stored token).

eight_sleep_wellness_context Eight Sleep Wellness Context

Build a normalized `delx-wellness-context/v1` payload from recent Eight Sleep trends so other Delx Wellness tools (nourish, exercise catalog, Telegram coaches) can read sleep context without knowing the Eight Sleep API.

ParameterTypeDescription
daysintegerLookback window in days for Eight Sleep trends.
injury_flagsarray
notesstring
response_formatstring
sorenessarray
timezonestringIANA timezone used by the Eight Sleep API.

eight_sleep_nightly_summary Eight Sleep Nightly Summary

Compute a multi-night sleep summary (best night, worst night, mean score, nights under 70 / over 85) from Eight Sleep trend data. One call replaces post-processing raw `get_trends`.

ParameterTypeDescription
daysinteger
response_formatstring
timezonestring

eight_sleep_temperature_trend Eight Sleep Temperature Trend

Workflow tool: returns the current smart-temperature schedule (bedtime/initial/final level), per-night sleep scores for the last N nights, mean/median/range/most-common for bedtime AND wake temperature settings when the trends payload exposes them, and a correlation note (e.g. 'colder bedtime → higher sleep score') ONLY when 3+ paired nights support |r| >= 0.5. Reuses get_temperature + get_trends data — no extra API calls.

ParameterTypeDescription
daysintegerNumber of recent nights to summarize. Default 7.
response_formatstring
timezonestringIANA timezone for grouping nightly records. Default UTC.

eight_sleep_efficiency Eight Sleep Sleep Efficiency

v0.2.2 — Sleep efficiency calculator. For each of the last N nights (default 7), computes time_in_bed_minutes (from presenceDuration), time_asleep_minutes (from sleepDuration), efficiency_pct = (asleep / in_bed) * 100, and efficiency_band (excellent ≥85, good 75-84, fair 65-74, poor <65). Returns nights_analyzed, mean / median / min-night / max-night efficiency, a nights_by_band breakdown, per_night array, and natural-language observations (mid-week drop, all-nights-same-band, single-night dip > 15 points below mean) ONLY when supported by the data. Reuses the existing /v1/users/{id}/trend…

ParameterTypeDescription
nightsintegerNumber of recent nights to analyze. Default 7.
response_formatstring
timezonestringIANA timezone for grouping nightly records. Default UTC.

eight_sleep_set_temperature Set Eight Sleep Temperature Level

Set the heating level (-100 .. 100). Optionally set a duration in seconds. Requires EIGHT_SLEEP_ALLOW_MUTATIONS=true.

ParameterTypeDescription
level *integerHeating level. -100 = coldest, 0 = neutral, 100 = hottest. Eight Sleep clamps client-side.
duration_secondsintegerOptional duration in seconds. Omit for persistent override.
response_formatstring
user_idstring

eight_sleep_set_side Set Eight Sleep Side On/Off

Turn the user's bed side on or off. Requires EIGHT_SLEEP_ALLOW_MUTATIONS=true.

ParameterTypeDescription
is_on *booleanTurn the side on (true) or off (false).
response_formatstring
user_idstring

eight_sleep_set_away_mode Set Eight Sleep Away Mode

Toggle away mode. Requires EIGHT_SLEEP_ALLOW_MUTATIONS=true.

ParameterTypeDescription
is_away *boolean
response_formatstring
user_idstring

eight_sleep_snooze_alarm Snooze Eight Sleep Alarm

Snooze an actively ringing alarm. Requires EIGHT_SLEEP_ALLOW_MUTATIONS=true.

ParameterTypeDescription
alarm_id *stringEight Sleep alarm id from eight_sleep_get_alarms.
response_formatstring
user_idstring

eight_sleep_dismiss_alarm Dismiss Eight Sleep Alarm

Dismiss an actively ringing alarm. Requires EIGHT_SLEEP_ALLOW_MUTATIONS=true.

ParameterTypeDescription
alarm_id *stringEight Sleep alarm id from eight_sleep_get_alarms.
response_formatstring
user_idstring