eight sleep mcp for VS Code
io.github.davidmosiah/eight-sleep-mcp
Unofficial Eight Sleep MCP server: read sleep trends, temperature, alarms; gated pod control.
client:VS Code
transport:stdio
runtime:npm
Install eight sleep mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "eight-sleep-email",
"description": "EIGHT_SLEEP_EMAIL",
"password": true
},
{
"type": "promptString",
"id": "eight-sleep-password",
"description": "EIGHT_SLEEP_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "eight-sleep-allow-mutations",
"description": "EIGHT_SLEEP_ALLOW_MUTATIONS",
"password": true
},
{
"type": "promptString",
"id": "eight-sleep-privacy-mode",
"description": "EIGHT_SLEEP_PRIVACY_MODE",
"password": true
},
{
"type": "promptString",
"id": "eight-sleep-cache",
"description": "EIGHT_SLEEP_CACHE",
"password": true
},
{
"type": "promptString",
"id": "eight-sleep-token-path",
"description": "EIGHT_SLEEP_TOKEN_PATH",
"password": true
},
{
"type": "promptString",
"id": "eight-sleep-client-id",
"description": "EIGHT_SLEEP_CLIENT_ID",
"password": true
},
{
"type": "promptString",
"id": "eight-sleep-client-secret",
"description": "EIGHT_SLEEP_CLIENT_SECRET",
"password": true
}
],
"servers": {
"eight-sleep-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"eight-sleep-mcp-unofficial"
],
"env": {
"EIGHT_SLEEP_EMAIL": "${input:eight-sleep-email}",
"EIGHT_SLEEP_PASSWORD": "${input:eight-sleep-password}",
"EIGHT_SLEEP_ALLOW_MUTATIONS": "${input:eight-sleep-allow-mutations}",
"EIGHT_SLEEP_PRIVACY_MODE": "${input:eight-sleep-privacy-mode}",
"EIGHT_SLEEP_CACHE": "${input:eight-sleep-cache}",
"EIGHT_SLEEP_TOKEN_PATH": "${input:eight-sleep-token-path}",
"EIGHT_SLEEP_CLIENT_ID": "${input:eight-sleep-client-id}",
"EIGHT_SLEEP_CLIENT_SECRET": "${input:eight-sleep-client-secret}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs