Eight Sleep MCP
This server provides a local-first MCP interface to Eight Sleep sleep data and control, keeping credentials local.
Read / Monitor
Profile & devices: get authenticated user, user profile, assigned device/bed side (
eight_sleep_get_me,eight_sleep_get_user,eight_sleep_get_current_device)Sleep trends: fetch nightly sessions and scores for a date range (
eight_sleep_get_trends)Temperature program: view heating level, smart schedule, side on/off state (
eight_sleep_get_temperature)Alarms: list configured alarms and recommended next alarm (
eight_sleep_get_alarms)Adjustable base: view leg/torso angles and preset (
eight_sleep_get_base)
Analysis & Workflow
Nightly summary: best/worst night, mean score, nights under 70/over 85 across up to 30 nights (
eight_sleep_nightly_summary)Sleep efficiency: per-night percentage, classification, mean/median, observations (
eight_sleep_efficiency)Temperature trend: correlate temperature settings with sleep scores (
eight_sleep_temperature_trend)Wellness context: normalized delx-wellness-context/v1 payload for cross-tool handoff (
eight_sleep_wellness_context)
Write / Control (requires explicit opt-in via EIGHT_SLEEP_ALLOW_MUTATIONS=true or --allow-mutations)
Set temperature (-100 to 100, optionally duration) (
eight_sleep_set_temperature)Turn side on/off (
eight_sleep_set_side)Toggle away mode (
eight_sleep_set_away_mode)Snooze/dismiss active alarms (
eight_sleep_snooze_alarm,eight_sleep_dismiss_alarm)
Configuration, Privacy & Discovery
Connection status, privacy audit, cache status (
eight_sleep_connection_status,eight_sleep_privacy_audit,eight_sleep_cache_status)Manage shared Delx Wellness profile and onboarding (
eight_sleep_profile_get,eight_sleep_profile_update,eight_sleep_onboarding)Logout to delete local tokens (
eight_sleep_logout)Discovery: data inventory, capabilities, agent manifest for client integration (
eight_sleep_data_inventory,eight_sleep_capabilities,eight_sleep_agent_manifest)
Allows AI agents to read and optionally control Eight Sleep pod data such as sleep trends, temperature program, alarms, and adjustable base.
⚡ One-command install with Delx Wellness for Hermes:
npx -y delx-wellness-hermes setup— preconfigures this connector alongside the rest of the wellness catalog.Or wire it standalone into Claude Desktop / Cursor / OpenClaw / any MCP client — see the install section below.
HTTP (v2 stateless)
Default is stdio. Optional Streamable HTTP — no session id, JSON responses, loopback only:
npx -y eight-sleep-mcp-unofficial --http
# GET http://127.0.0.1:3000/health
# POST http://127.0.0.1:3000/mcp (sessionless)Env: EIGHT_SLEEP_MCP_HOST, EIGHT_SLEEP_MCP_PORT, EIGHT_SLEEP_MCP_TRANSPORT=http.
Local-first MCP server that connects AI agents to your Eight Sleep pod — sleep sessions, temperature program, alarms, adjustable base — with an explicit mutation gate for write actions.
Unofficial project. Not affiliated with, endorsed by, or supported by Eight Sleep, Inc. Eight Sleep is a trademark of its respective owner. Use this only with your own Eight Sleep account.
Eight Sleep does not publish a stable public API. This package talks to the same private endpoints (auth-api.8slp.net, client-api.8slp.net, app-api.8slp.net) the mobile app uses, following the path well documented by upstream community projects (lukas-clarke/eight_sleep, mezz64/pyEight, steipete/eightctl).
Part of Delx Wellness — a registry of local-first wellness MCP connectors.
If this connector helps your agent workflow, please star the repo. Stars make the project easier for other AI builders to discover and help Delx keep shipping local-first wellness infrastructure.
Related MCP server: Polar MCP
Why this exists
Eight Sleep ships great sleep telemetry — nightly score, presence intervals, tnt, smart-temperature schedule — but it lives inside a closed iOS/Android app with no public API. Bringing it into your agent today means reverse-engineering OAuth, juggling token refresh, normalizing endpoint shapes, and handling timezone quirks.
This package does all of that locally, exposes Eight Sleep through the Model Context Protocol, and lets any MCP-compatible agent read your sleep context (and write pod commands, if you opt in) with one config snippet. Credentials and tokens stay on your machine.
Setup in 60 seconds
npx -y eight-sleep-mcp-unofficial setup # interactive: email + password
npx -y eight-sleep-mcp-unofficial login # persists the auth token
npx -y eight-sleep-mcp-unofficial doctor # verifies you're readyThen add this to your MCP client config:
{
"mcpServers": {
"eight_sleep": {
"command": "npx",
"args": ["-y", "eight-sleep-mcp-unofficial"]
}
}
}For Claude Desktop, run setup --client claude and the snippet is written for you.
Try it with your agent
Three things to ask first:
Use eight_sleep_connection_status to check setup, then run eight_sleep_get_me.
Tell me what device you find.Call eight_sleep_get_trends for the last 7 days, response_format=json.
What's my best night and worst night, and why?Call eight_sleep_get_temperature. Summarize the current smart schedule
(bedtime, initial sleep, final sleep) and tell me if I should tune it.Data availability
This package talks to the Eight Sleep mobile-app API. It does not access continuous biometric sensor streams or BLE.
Data | Tool | Source |
User & device |
|
|
Temperature program |
|
|
Sleep trends |
|
|
Alarms |
|
|
Adjustable base |
|
|
Workflow tools
Tool | What it does |
| Multi-night summary: best night, worst night, mean score, nights under 70 / over 85 — one call instead of post-processing raw |
| Returns a normalized |
Mutation tools (write gate)
Off by default. To enable, re-run setup with --allow-mutations or set EIGHT_SLEEP_ALLOW_MUTATIONS=true.
Action | Tool |
Set heating level |
|
Turn side on/off |
|
Toggle away mode |
|
Snooze alarm |
|
Dismiss alarm |
|
When the gate is off, mutation tools return an explicit mutations disabled error so agents can detect it and ask the user to opt in.
Privacy
Credentials stored in
~/.eight-sleep-mcp/config.jsonwithchmod 600.Auth tokens stored in
~/.eight-sleep-mcp/tokens.jsonwithchmod 600.Sensitive fields (email, device serial, shipping address, payment last-four) are redacted from tool responses by default.
EIGHT_SLEEP_PRIVACY_MODE:summary— minimal fields only.structured(default) — preserves complete nested sleep fields and future upstream additions while redacting identifiers.raw— full upstream payload (debugging only).
Trend requests validate real YYYY-MM-DD dates, range order and IANA timezone names before any network call.
Call eight_sleep_privacy_audit at any time to inspect the current posture without exposing secrets.
Environment variables
Var | Purpose |
| Account email. |
| Account password. |
|
|
|
|
|
|
| Override token storage path. |
| Override Android-app credential defaults (advanced). |
Stability
Eight Sleep changes mobile-app endpoints without notice. This connector tracks upstream community projects (lukas-clarke/eight_sleep, steipete/eightctl, mezz64/pyEight) for breakage signals. If a tool starts returning 4xx unexpectedly, check those repos and the project issues for the latest known-good shape.
Credits
lukas-clarke/eight_sleep— Home Assistant integration, most current reference for V2 endpoints.mezz64/pyEight— original Python library; auth + endpoint discovery.steipete/eightctl— CLI variant with extracted client credentials.LiamSnow/opensleep— full open-source firmware (deeper than this MCP goes).
📧 Contact & Support
📨 support@delx.ai — general questions, integration help, partnerships
🐛 Bug reports / feature requests — GitHub Issues
🐦 Updates — @delx369 on X
🌐 Site — wellness.delx.ai
License
MIT — see LICENSE.
Maintenance
Tools
Related MCP Servers
- AlicenseAqualityAmaintenanceLocal-first MCP server that connects AI agents to your Withings body, sleep, activity and heart data.233513MIT
- AlicenseBqualityAmaintenanceLocal-first MCP server that connects AI agents to your Polar training, sleep, Nightly Recharge and continuous-sample data.373305MIT
- Alicense-qualityDmaintenanceUnofficial MCP server for Eight Sleep, reverse-engineered from observed mobile app traffic and validated against live device behavior.MIT
- AlicenseAqualityAmaintenancePrivacy-first, unofficial WHOOP MCP server for AI health, sleep, recovery, and performance agents.304088MIT
Related MCP Connectors
MCP server for Withings health data — sleep, activity, heart, and body metrics.
MCP server wrapping the Tesla Fleet API and TeslaMate API
The hockey data API. Stats, odds, and everything between. REST API and MCP server.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidmosiah/eight-sleep-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server