Cadence logo

Cadence

by rajanshxrma

Local MCP access to WHOOP and Apple Health data, with SQLite storage, baselines, anomaly detection, and developer-health correlations.

Install Cadence

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "rajanshxrma-cadence": {
      "command": "uvx",
      "args": [
        "cadence"
      ],
      "env": {
        "CADENCE_WHOOP_CLIENT_ID": "YOUR_VALUE_HERE",
        "CADENCE_WHOOP_CLIENT_SECRET": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env CADENCE_WHOOP_CLIENT_ID=YOUR_VALUE_HERE --env CADENCE_WHOOP_CLIENT_SECRET=YOUR_VALUE_HERE --transport stdio rajanshxrma-cadence -- uvx cadence

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx cadence

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

rajanshxrma/cadence MCP server combines WHOOP and Apple Health data in a local SQLite database for health-aware AI sessions. It exposes live health context through a stdio MCP command, while CLI commands handle imports, OAuth, synchronization, briefs, baselines, digests, and developer-health analysis. WHOOP data is fetched through OAuth, while Apple Health uses a local export file and does not require network access. Reach for it when an agent needs current sleep, recovery, strain, workouts, or personal health trends without sending the stored data to a third party.

Use cases

  • Import Apple Health exports into a local health database
  • Sync WHOOP recovery, sleep, and workout records
  • Give Claude current health context at session start
  • Inspect personal baselines and physiological deviations
  • Compare developer activity with recovery and sleep trends

Key features

  • WHOOP OAuth synchronization
  • Local Apple Health ZIP import
  • SQLite-based local health storage
  • Personal baselines and anomaly detection
  • Claude Code session-start hook
  • Developer rhythm and body-code correlations

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

27/30 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · cadence (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Cadence works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Cadence

rajanshxrma/cadence is an MCP server that connects Claude-compatible clients to locally stored WHOOP and Apple Health data. Its main tools include get_developer_rhythm() and get_body_code_correlations(), while CLI commands manage imports, synchronization, briefs, baselines, hooks, and digests. WHOOP uses OAuth; Apple Health uses a local export.

Install it with `pip install -e .`, then run `cadence mcp` as the stdio server. Configure your MCP client with an equivalent stdio entry, such as `claude mcp add cadence -- cadence mcp`. Apple Health and WHOOP require separate import or authorization steps.

Create a personal WHOOP developer app, configure the documented redirect URL and read scopes, then export `CADENCE_WHOOP_CLIENT_ID` and `CADENCE_WHOOP_CLIENT_SECRET`. Run `cadence auth`, approve access in the browser, paste the redirected URL into the terminal, and run `cadence sync`.

Yes, it can be configured in a client that supports stdio MCP servers, including Cursor. Start it with `cadence mcp` and use the equivalent stdio-server configuration for the client. The README specifically demonstrates the command for Claude and says other clients can use the equivalent configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCadence AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/rajanshxrma-cadence?style=directory)](https://allmcps.com/mcp/rajanshxrma-cadence)
HTML Embed
<a href="https://allmcps.com/mcp/rajanshxrma-cadence"><img src="https://allmcps.com/api/badge/rajanshxrma-cadence?style=directory" alt="Cadence on AllMCPs" /></a>