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.

Values you need

VariableWhat it is
EIGHT_SLEEP_EMAILoptional Eight Sleep account email. Optional when configured with eight-sleep-mcp-server setup.
EIGHT_SLEEP_PASSWORDoptional secret Eight Sleep account password. Prefer the setup command so this secret is stored in ~/.eight-sleep-mcp/config.json (chmod 600) instead of MCP client config.
EIGHT_SLEEP_ALLOW_MUTATIONSoptional Set to true to enable write tools (set_temperature, set_side, set_away_mode, snooze/dismiss alarm). Default false (read-only).
EIGHT_SLEEP_PRIVACY_MODEoptional Optional payload mode: summary, structured, or raw. Defaults to structured.
EIGHT_SLEEP_CACHEoptional Optional SQLite cache toggle. Set to true or sqlite to enable.
EIGHT_SLEEP_TOKEN_PATHoptional Optional local token path. Defaults to ~/.eight-sleep-mcp/tokens.json.
EIGHT_SLEEP_CLIENT_IDoptional Optional override for the Android-app client_id default.
EIGHT_SLEEP_CLIENT_SECREToptional secret Optional override for the Android-app client_secret default.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add eight-sleep-mcp -- npx -y eight-sleep-mcp-unofficial@0.2.5
Add to claude_desktop_config.json
{
  "mcpServers": {
    "eight-sleep-mcp": {
      "args": [
        "-y",
        "eight-sleep-mcp-unofficial@0.2.5"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "eight-sleep-mcp": {
      "args": [
        "-y",
        "eight-sleep-mcp-unofficial@0.2.5"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "eight-sleep-mcp": {
      "args": [
        "-y",
        "eight-sleep-mcp-unofficial@0.2.5"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.eight-sleep-mcp]
command = "npx"
args = ["-y", "eight-sleep-mcp-unofficial@0.2.5"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: eight_sleep_profile_get, eight_sleep_profile_update, eight_sleep_onboarding, eight_sleep_data_inventory, eight_sleep_capabilities, eight_sleep_agent_manifest, eight_sleep_connection_status, eight_sleep_cache_status, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json