Quantified Self MCP logo

Quantified Self MCP

by Thecimal

Query, record, analyze, compare, and export personal health data stored in local SQLite through MCP tools.

Install Quantified Self MCP

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": {
    "thecimal-quantified-self-mcp": {
      "command": "uvx",
      "args": [
        "quantified-self-mcp"
      ],
      "env": {
        "HEALTH_PRIVATE_FIELDS": "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.

Automated check passed— started and listed 20 tools correctly ().

Overview

Thecimal/quantified-self-mcp connects MCP clients to a local SQLite health database for reading, recording, importing, and analyzing personal metrics. Its tools cover daily summaries, raw measurements, workout sessions, data freshness, source provenance, statistical baselines, trends, anomalies, comparisons, and correlations. Use it when health data should remain on the local machine and the assistant needs structured evidence rather than undifferentiated rows. Returned values still enter the calling model's conversation, so cloud-hosted models may receive sensitive health information.

Use cases

  • Review weekly health metrics across several categories
  • Log daily values or timestamped wearable observations
  • Compare a metric across two date ranges
  • Investigate source conflicts between health devices
  • Export a private date range for spreadsheet analysis

Key features

  • Local SQLite storage and MCP access
  • Daily, raw-measurement, and workout-session tracking
  • Source provenance and configurable aggregation
  • Trend, anomaly, baseline, comparison, and correlation analysis
  • Evidence tiers and data-freshness checks
  • Field-level privacy exclusion with HEALTH_PRIVATE_FIELDS

Tools20

What Quantified Self MCP lets your agent do. Expand a tool for its parameters.

Verified live~8.6k tokens of context

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.

16/16 checks healthy over the last 83d

What it can do

From the 20 tools this server returned when we ran it; 20 declare their own safety hints.

Can delete or modify data · 3Makes network requests · 2Read-only tools · 17
Tool definitions changed on 2026-11-22. Review them if you approved this server earlier.
Network at startup2 connections
Files written at startup15

Observed 2026-11-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · quantified-self-mcp (PyPI)

Adoption & maintenance

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

GitHub stars9Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed20Callable tools this server registers over MCP.
Directory activity16 viewsConfig copies, upvotes, and views on AllMCPs.

How Quantified Self MCP works

What Thecimal/quantified-self-mcp MCP server does

Thecimal/quantified-self-mcp exposes a local SQLite health database through MCP. It supports daily metrics such as steps, sleep hours, resting heart rate, weight, workout minutes, mood, water intake, heart rate, and HRV, along with timestamped measurements and structured workout events.

The server is designed for both data entry and analysis. You can log a single end-of-day value, preserve multiple observations with timestamps and sources, record detailed exercise sessions, inspect imported data, and ask for evidence-backed summaries over time. A CSV export tool writes selected daily data to disk and returns the file path and row count instead of sending every exported row through the model response.

How it works

A Python MCP process reads and writes SQLite files on the local machine. The database maintains daily_metrics as a projection of raw measurements. Aggregation rules differ by metric: some values are summed, some averaged, and weight uses the latest reading. When multiple sources report the same metric on a day, source priority determines which source contributes to the projection rather than blending devices together.

The analysis tools provide statistical context alongside results. Baselines include mean, median, and standard deviation; trend analysis fits a straight line and reports direction, slope, and r_squared; anomaly detection uses a median/MAD-based modified z-score. Period comparisons, date-joined Pearson correlations, recent-change scans, and date-specific evidence bundles support more targeted questions. Correlation results are associations, not causal findings, and include claim guidance and data-health information.

Setup and configuration

Install the Python package with:

Terminal
pip install quantified-self-mcp

The package provides quantified-self-init-db for database initialization and imports. It can seed 60 days of synthetic demo data with --demo, or import Apple Health XML, WHOOP Developer API v2 JSON, Oura API v2 JSON, Android Health Connect ZIP exports, and CSV files. Run quantified-self-doctor to check Python dependencies, schema integrity, and database readiness.

For Claude Desktop, Cursor, or Windsurf, configure an MCP server that runs uvx quantified-self-mcp. The same executable can be referenced directly if installed with pip. HEALTH_PRIVATE_FIELDS accepts comma-separated metric names such as weight_kg,mood; those fields remain in SQLite but are excluded from AI queries and analytics. Local database storage does not prevent data from reaching a cloud model when the MCP client uses one.

Tools and capabilities

  • Read broad daily health summaries with read_health_data.
  • Export date ranges with export_health_data_csv.
  • Add or clear day-level values using log_daily_metric and clear_metric.
  • Store and inspect timestamped, source-aware observations with log_measurement and read_measurements.
  • Preview aggregation choices with aggregate_measurements and investigate source disagreement with get_metric_provenance.
  • Record and read structured exercise events with log_workout_session and read_workout_sessions.
  • Check freshness, coverage, gaps, and import outcomes using get_data_status and get_import_status.
  • Retrieve single-metric histories with get_metric_history.
  • Compute baselines, trends, anomalies, period comparisons, and cross-metric correlations with get_baseline, calculate_metric_trend, detect_metric_anomalies, compare_metric_periods, and find_metric_correlation.
  • Assemble a date-specific evidence bundle with explain_metric_change, or scan recent changes across non-private metrics with get_recent_changes.

Limitations and notes

The server stores data locally, but tool output becomes part of the conversation handled by the configured model. Treat a cloud model as receiving the returned health data. HEALTH_PRIVATE_FIELDS provides field-level exclusion for AI-facing queries and analytics, while CSV export leaves those fields blank.

Analytical results depend on coverage, gaps, sample size, and data freshness. Check get_data_status before interpreting recent data, and use provenance tools when multiple devices disagree. The tools provide measurements, statistical evidence, and caveats; they do not establish that one metric caused another or supply a medical diagnosis.

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 Quantified Self MCP

Thecimal/quantified-self-mcp is an MCP server that connects AI assistants to a local SQLite health database. Its main tools read and record daily metrics, raw measurements, and workout sessions, then calculate baselines, trends, anomalies, comparisons, correlations, provenance, import status, and recent changes without requiring a cloud health database.

Install it with `pip install quantified-self-mcp`, then initialize a database with `quantified-self-init-db --demo` or an appropriate health-data import command. Run `quantified-self-doctor` to check dependencies, schema integrity, and database readiness.

Yes, it works with Cursor through a standard stdio MCP configuration. Add `quantified-self-mcp` as an MCP server in Cursor settings or `.cursor/mcp.json`, using `uvx` as the command and the package name as its argument.

Set `HEALTH_PRIVATE_FIELDS` to a comma-separated list of metric names, such as `weight_kg,mood`. Those fields remain stored in SQLite but are excluded from AI queries and analytics; exported CSV files leave them empty.

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 PreviewQuantified Self MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/thecimal-quantified-self-mcp?style=directory)](https://allmcps.com/mcp/thecimal-quantified-self-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/thecimal-quantified-self-mcp"><img src="https://allmcps.com/api/badge/thecimal-quantified-self-mcp?style=directory" alt="Quantified Self MCP on AllMCPs" /></a>