# rajanshxrma/cadence [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/rajanshxrma/cadence  
**GitHub Stars:** 1  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rajanshxrma-cadence

## Description
Local-first health context from WHOOP and Apple Health — sleep, recovery, workouts, and personal baselines in a local SQLite store.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "cadence": {
    "command": "uvx",
    "args": ["cadence"],
    "env": {
      "CADENCE_WHOOP_CLIENT_ID": "",
      "CADENCE_WHOOP_CLIENT_SECRET": ""
    }
  }
}
```

**Requires environment variables:** `CADENCE_WHOOP_CLIENT_ID`, `CADENCE_WHOOP_CLIENT_SECRET` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What rajanshxrma/cadence MCP server does

rajanshxrma/cadence brings WHOOP and Apple Health data into one local health-context store. It is intended for developers who want an AI assistant to work with current physiological information, including sleep, recovery, strain, workouts, and personal baselines.

Apple Health data enters through an exported ZIP file from the iPhone Health app. WHOOP data is retrieved through the WHOOP API after a one-time OAuth authorization. The resulting records are stored in a SQLite database at `~/.cadence/cadence.db`.

The project also relates health data to local engineering activity. Configured repositories can be examined alongside git commit timing and Claude usage logs through the mirror commands. The resulting comparisons are observational rather than causal and require enough overlapping history before deeper correlations are reported.

## How it works

Run `cadence mcp` to start the MCP server over stdio. A client such as Claude can then query the local store instead of relying only on a generated brief.

`cadence sync` pulls the last 30 days of WHOOP recovery, sleep, and workout data. Refresh tokens are rotated and saved after refresh. `cadence import-apple-health` imports an Apple Health export without making a network request.

Personal baselines use a 30-day rolling mean and standard deviation for metrics such as recovery score, HRV, resting heart rate, respiratory rate, sleep duration, and sleep efficiency. A metric is excluded until at least 14 days of history are available. Deviations use personal values rather than population reference ranges; the documented anomaly threshold is an absolute z-score of at least 1.5, with a serious tier at 2.5.

## Setup and configuration

Install the package with `pip install -e .`. Apple Health requires an export from the Health app, followed by an import command. WHOOP requires a personal developer app with the documented read scopes, a matching redirect URL, and these environment variables:

- `CADENCE_WHOOP_CLIENT_ID`
- `CADENCE_WHOOP_CLIENT_SECRET`

Run `cadence auth` to complete browser-based authorization. The returned URL is copied into the terminal, and tokens are stored in the macOS Keychain rather than plaintext files. `cadence auth --store-client` can save client credentials in Keychain for unattended synchronization.

## Tools and capabilities

The rajanshxrma/cadence MCP server exposes at least `get_developer_rhythm()` and `get_body_code_correlations()`. Its CLI also provides commands for authentication, synchronization, health import, briefs, hooks, baselines, digests, repository configuration, and mirror analysis.

`cadence digest` writes a dated summary to a configurable directory and can optionally commit it to a notes or journal repository. `cadence sync --quiet` supports scheduled operation and can trigger a macOS notification when reauthorization is required.

## Limitations and notes

WHOOP data necessarily passes through WHOOP's cloud API during retrieval. After import, the health data remains in the local SQLite file, which is permissioned for owner-only access; Apple Health data is imported locally. OAuth tokens are held in macOS Keychain, and the project does not re-upload or share stored data with another third party.

The server is pull-based and does not use WHOOP webhooks. Correlation output is deliberately limited: deeper comparisons need at least 14 days of real overlapping data per group and are labeled observational, not causal. Email delivery for digests is not included. The SessionStart hook avoids network calls and chooses silence when it cannot produce a result, so a health-data failure does not block session startup.

_Full upstream README: https://allmcps.com/mcp/rajanshxrma-cadence/readme_

