About Quantified Self MCP
Quantified Self MCP is an MCP server published by Thecimal in the Healthcare category: a local [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server that lets an LLM — e.g. Claude Desktop — query your personal health and finance data. Everything is stored in two local SQLite files and read directly off disk by a Python process you control. No cloud database, no dashboard, no third-party service. Conduid read 20 tools from its source: aggregate_measurements, calculate_metric_trend, clear_metric, compare_metric_periods, detect_metric_anomalies, explain_metric_change and 14 more. No package is published for it, so it installs from a source checkout.
The repository has 10 stars and 1 forks, and its last commit was on 30 Nov 2026. Conduid has no tagged release on record for it. Its topics include finance, health, local-first and sqlite.
Install
git clone https://github.com/Thecimal/quantified-self-mcpTools (20)
aggregate_measurementsPreview what one day's raw measurements would roll up to if a| Parameter | Type | Description |
|---|---|---|
| date * | string | The day to preview, formatted YYYY-MM-DD. |
| source_priority | array | Ordered list of source names, e.g. ["Apple Watch", "Garmin"]. For any metric with more than one source that day, the first name in this list that's actually present wins in "aggregated" and the other source's readings for that metric are dropped from that preview. Omit to use the stored priority list and the same fallback the stored projection uses. Never affects "row" — see above. |
calculate_metric_trendFit a simple straight-line trend to one metric over a window and| Parameter | Type | Description |
|---|---|---|
| end_date | string | Last day to include, YYYY-MM-DD. Defaults to today. |
| metric * | string | One of steps, sleep_hours, resting_heart_rate, weight_kg, workout_minutes, mood, water_ml, heart_rate, hrv_ms. |
| start_date | string | First day to include, YYYY-MM-DD. Defaults to 30 days before end_date. |
clear_metricBlank out (set to null) a single metric for a single day, without| Parameter | Type | Description |
|---|---|---|
| date * | string | The day to clear a field for, formatted YYYY-MM-DD. |
| field * | string | Which metric to blank out. One of: steps, sleep_hours, resting_heart_rate, weight_kg, workout_minutes, mood, water_ml, heart_rate, hrv_ms. |
compare_metric_periodsCompare one metric's average between two date ranges — e.g. "this| Parameter | Type | Description |
|---|---|---|
| metric * | string | One of steps, sleep_hours, resting_heart_rate, weight_kg, workout_minutes, mood, water_ml, heart_rate, hrv_ms. |
| period_a_end * | string | |
| period_a_start * | string | |
| period_b_end * | string | |
| period_b_start * | string |
detect_metric_anomaliesFlag days where one metric deviated sharply from its own baseline over| Parameter | Type | Description |
|---|---|---|
| end_date | string | Last day to include, formatted YYYY-MM-DD. Defaults to today. |
| metric * | string | One of steps, sleep_hours, resting_heart_rate, weight_kg, workout_minutes, mood, water_ml, heart_rate, hrv_ms. |
| start_date | string | First day to include, formatted YYYY-MM-DD. Defaults to 90 days before end_date. |
| threshold | number | Modified z-score cutoff. 3.5 (the default, Iglewicz & Hoaglin's standard value) flags only clear outliers; lower it (e.g. 2.5) to see more borderline days. |
explain_metric_changeBuild an evidence bundle for "why did my <metric> look like that on| Parameter | Type | Description |
|---|---|---|
| date * | string | The day to explain, formatted YYYY-MM-DD. |
| metric * | string | One of steps, sleep_hours, resting_heart_rate, weight_kg, workout_minutes, mood, water_ml, heart_rate, hrv_ms. |
export_health_data_csvWrite daily health metrics for a date range to a CSV file on disk,| Parameter | Type | Description |
|---|---|---|
| end_date | string | Last day to include, YYYY-MM-DD. Defaults to today. |
| start_date | string | First day to include, YYYY-MM-DD. Defaults to 30 days before end_date. Ranges over ~10 years are rejected. |
find_metric_correlationCompute the Pearson correlation between two metrics over the same| Parameter | Type | Description |
|---|---|---|
| end_date | string | |
| lag_days | integer | |
| metric_a * | string | |
| metric_b * | string | |
| start_date | string |
get_baselineCompute "what's normal" for one metric over a window: mean, median, and| Parameter | Type | Description |
|---|---|---|
| end_date | string | Last day to include, YYYY-MM-DD. Defaults to today. |
| metric * | string | One of steps, sleep_hours, resting_heart_rate, weight_kg, workout_minutes, mood, water_ml, heart_rate, hrv_ms. |
| start_date | string | First day to include, YYYY-MM-DD. Defaults to 90 days before end_date. |
get_data_statusReport how current and complete the database is: latest data date,| Parameter | Type | Description |
|---|---|---|
| stale_after_days | integer | How many days the latest data may trail today before the status becomes STALE (30 days for weight and workouts). Defaults to 2. Metrics in HEALTH_PRIVATE_FIELDS are ignored. |
get_import_statusList the most recent import runs, newest first: which importer, the| Parameter | Type | Description |
|---|---|---|
| limit | integer | How many import runs to return (1-50). Defaults to 5. |
get_metric_historyOne metric's day-by-day values only, not the other metrics| Parameter | Type | Description |
|---|---|---|
| end_date | string | Last day to include, YYYY-MM-DD. Defaults to today. |
| metric * | string | One of steps, sleep_hours, resting_heart_rate, weight_kg, workout_minutes, mood, water_ml, heart_rate, hrv_ms. Rejected if configured as private via HEALTH_PRIVATE_FIELDS. |
| start_date | string | First day to include, YYYY-MM-DD. Defaults to 30 days before end_date. |
get_metric_provenanceShow one metric's raw measurements for one day, broken down by which| Parameter | Type | Description |
|---|---|---|
| date * | string | The day to inspect, formatted YYYY-MM-DD. |
| metric * | string | Name of the metric to inspect, e.g. "resting_heart_rate". |
get_recent_changesScan every (non-private) metric for what's changed lately: a recent| Parameter | Type | Description |
|---|---|---|
| days | integer | Length of the "recent" window in days (default 7). The comparison baseline is the 4x-as-long period immediately before it, so a 7-day recent window compares against the preceding 28 days. |
log_daily_metricRecord one or more health metrics for a single day, creating that| Parameter | Type | Description |
|---|---|---|
| date * | string | The day to log, formatted YYYY-MM-DD. |
| heart_rate | integer | Non-resting heart rate reading in bpm. 20-250. |
| hrv_ms | number | Heart rate variability in milliseconds. 0-300. |
| mood | integer | Mood rating on a 1-10 scale. |
| resting_heart_rate | integer | Resting heart rate in bpm. 20-250. |
| sleep_hours | number | Hours of sleep. 0-24. |
| steps | integer | Step count for the day. 0-200,000. |
| water_ml | integer | Water intake in millilitres. 0-10,000. |
| weight_kg | number | Body weight in kilograms. 1-500. |
| workout_minutes | integer | Minutes of exercise. 0-1,440. |
log_measurementRecord a single raw observation — one metric, one value, one point in| Parameter | Type | Description |
|---|---|---|
| metric * | string | Name of the metric, e.g. "resting_heart_rate", "steps". Not free-form: must already have an entry in the aggregation_rules table (steps, sleep_hours, resting_heart_rate, weight_kg, workout_minutes, mood, water_ml, heart_rate, hrv_ms, out of the box) — daily_metrics is a database-maintained projection over measurements (see db/schema.sql), so every metric written to it needs a known aggregation method (sum/mean/last) or there would be nothing telling the projection how to roll same-day readings up. metrics_schema lists the current set. |
| source | string | Where this came from, e.g. "Apple Watch", "manual". Optional. |
| source_type | string | Category of source, e.g. "wearable", "manual", "app". Optional. |
| timestamp * | string | When the observation was taken, YYYY-MM-DD or a full ISO 8601 timestamp (YYYY-MM-DDTHH:MM:SS). Give local wall-clock time. A numeric UTC offset (e.g. -08:00) is dropped before storing, so the reading belongs to the day written in the timestamp; a trailing "Z" is kept and counts as UTC. |
| unit | string | Unit the value is in, e.g. "bpm", "kg". Optional. If provided, must match the metric's canonical unit (case-insensitive); convert the reading to that canonical unit before logging. |
| value * | number | The numeric reading. |
log_workout_sessionRecord one workout as a structured event — activity, timing, intensity,| Parameter | Type | Description |
|---|---|---|
| activity_type * | string | What kind of workout, e.g. "running", "cycling", "strength". Free-form. |
| avg_heart_rate | integer | Average heart rate during the workout, bpm. Optional. |
| date * | string | The day the workout happened, YYYY-MM-DD. |
| duration_minutes * | integer | How long it lasted, in minutes. |
| intensity | string | One of "low", "moderate", "high". Optional. |
| max_heart_rate | integer | Peak heart rate during the workout, bpm. Optional. |
| notes | string | Free-text notes, e.g. route or how it felt. Optional. |
| source | string | Where this came from, e.g. "Apple Watch", "manual". Optional. |
| start_time | string | When it started, HH:MM (24-hour) or a full ISO timestamp. Optional. |
read_health_dataRead daily health metrics from the local database: steps, sleep hours,| Parameter | Type | Description |
|---|---|---|
| end_date | string | Last day to include, YYYY-MM-DD. Defaults to today. |
| start_date | string | First day to include, YYYY-MM-DD. Defaults to 30 days before end_date. Ranges over ~10 years are rejected. |
read_measurementsRead individual measurement rows (not the daily_metrics aggregate),| Parameter | Type | Description |
|---|---|---|
| end_date | string | Only return rows on/before this date (YYYY-MM-DD). Omit for no upper bound. |
| limit | integer | Maximum rows to return, 1 to 1000 (default 200). |
| metric | string | Only return this metric. Omit for all metrics. |
| source | string | Only return rows from this source, e.g. "Apple Watch". Omit for all sources. |
| start_date | string | Only return rows on/after this date (YYYY-MM-DD). Omit for no lower bound. |
read_workout_sessionsRead individual workout sessions (not the daily_metrics| Parameter | Type | Description |
|---|---|---|
| activity_type | string | Only return sessions of this activity type. Omit for all types. |
| end_date | string | Only return sessions on/before this date (YYYY-MM-DD). Omit for no upper bound. |
| limit | integer | Maximum rows to return, 1 to 1000 (default 200). |
| start_date | string | Only return sessions on/after this date (YYYY-MM-DD). Omit for no lower bound. |
Security checks
6 checks have not been run yet.