Health Data (your own Supabase) MCP Server
Your health data (weight, macros, weigh-ins) as MCP tools — in your own Supabase, zero custody.
Health Data (your own Supabase) scores 56 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 6 tools. Filed under Databases. GitHub shows 0 stars. Package registries report about 46 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
56 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 56 comes from
22 + 10 + 0 + 10 + 4 + 10 = 56. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "almostjacked-health-mcp": { "command": "npx", "args": [ "-y", "@almostjacked/health-mcp@0.1.3" ], "env": { "SUPABASE_URL": "", "SUPABASE_SECRET_KEY": "YOUR_SUPABASE_SECRET_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
SUPABASE_URL | Required | Your Supabase project URL |
SUPABASE_SECRET_KEYSecret | Required | A secret API key for your project |
Tools6Tool docs quality grade C
All capabilitiesAll metrics for one day (default: the most recent day with any data): totals plus every weigh-in/measurement.
Daily (date, weight, kcal) entries for days with both a calorie total and a weigh-in — shaped exactly for fitness-tools' adaptive-tdee.
get_recenttoolRows for the last N days (default 30), optionally one metric. Daily totals and individual measurements in one date-sorted list.
get_schematoolThe Postgres schema (two tables) and the metric registry (names, units, classes). Call before writing SQL for the query tool.
get_statstoolMin/max/avg plus a rolling-average series for one metric over a date range (daily/weekly/monthly rollup).
get_sync_statustoolLatest date, row count, and days-since-last-entry per metric. Use to detect a stalled daily sync before trusting an analysis.
About
health-mcp
Your health data (weight, body composition, calories, macros, water) as an MCP data layer your AI can query. Zero custody: it lives in a Postgres database in a Supabase project you create and own — nobody but you ever holds your data or your keys. An iOS Shortcut syncs it daily from Apple Health; Claude (or any MCP client) reads it back through a connector that runs entirely inside your own project.
Get set up (four steps, ~20 minutes)
1. Create your database + connector
Three ways, pick one — all three end with the same thing: your connector URL, plus your ingest URL and ingest key.
- The setup page — no terminal, guided clicks through your Supabase dashboard.
npx @almostjacked/health-mcp setup— fastest, needs Node ≥ 18. Walks you through logging in to Supabase, picking or creating a project, applying the schema, deploying both functions, and minting your secrets, then prints the connector URL and Shortcut config.- Manual dashboard walkthrough — the same steps as the setup page, written out for anyone who'd rather read them first or do them by hand.
Supabase's free tier allows 2 active projects, so this fits alongside one other free project you may already have.
2. Load your history
Without this, adaptive-TDEE needs about two weeks of daily syncs before it has enough data to work. With it, everything works immediately.
- On your iPhone: Health app → your profile picture → Export All Health
Data. This produces an
export.zip(can take a few minutes for a long history). - Get that file to whatever device you're setting up from, then drop it on the setup page's Import panel. Leave Dry run checked first to preview what would be sent before you commit to it.
3. Set up the daily sync
The Shortcut panel has one download button — no signing step, no Terminal. Download the shortcut, install it on your iPhone (iOS asks you to paste in your ingest URL and key during import), then turn on the 9 AM daily automation. Full click-by-click detail (including what to do if a step doesn't survive the iOS import): docs/shortcut.md.
Easiest install (Mac-first): download the signed shortcut on your Mac and double-click it — the two import prompts appear right next to the page's copy buttons, and iCloud syncs the shortcut to your iPhone automatically. (No Mac? Send the file to your phone and answer the prompts there.)
4. Connect Claude
- Open claude.ai → Settings → Connectors → Add custom connector.
- Paste in your connector URL from step 1.
- Save. Claude can now use your health-mcp tools.
If adding the connector fails with "Couldn't register with [name]'s sign-in service", that's a transient claude.ai hiccup, not a problem with your connector — just try adding it again.
Use it
Ask Claude things like:
What's my average calorie intake this week vs last?
Show me my weight trend over the last 90 days.
Has my daily sync stalled? Check get_sync_status.
Pair it with fitness-tools
health-mcp answers "what happened" (your logged weight and calories);
fitness-tools answers "so
what" (TDEE, macros, body fat, 1RM). The get_energy_inputs tool returns
{date, weight, kcal} entries shaped exactly for fitness-tools'
adaptive-tdee — no reformatting needed. Ask Claude:
Get my energy inputs for the last 90 days, then compute my adaptive TDEE with fitness-tools.
adaptive-tdeeneeds at least 10 days that have BOTH a weigh-in and a calorie total — if you skipped step 2, expect ~2 weeks of syncing before the pairing works.
If you also train with Hevy, pair with hevy-mcp for the training side of the picture (routines, logged sets, 1RM trend).
Tools
| Tool | Description |
|---|---|
| get_schema | The Postgres schema (two tables) and the metric registry (names, units, classes). Call before writing SQL for the query tool. |
| get_sync_status | Latest date, row count, and days-since-last-entry per metric. Use to detect a stalled daily sync before trusting an analysis. |
| get_recent | Rows for the last N days (default 30), optionally one metric. Daily totals and individual measurements in one date-sorted list. |
| get_daily_summary | All metrics for one day (default: the most recent day with any data): totals plus every weigh-in/measurement. |
| get_stats | Min/max/avg plus a rolling-average series for one metric over a date range (daily/weekly/monthly rollup). |
| query | Escape hatch: run one read-only SQL statement (SELECT or WITH…SELECT) against the schema from get_schema. Writes/DDL rejected; LIMIT 500 enforced. |
| get_energy_inputs | Daily (date, weight, kcal) entries for days with both a calorie total and a weigh-in — shaped exactly for fitness-tools' adaptive-tdee. |
Architecture
Apple Health --> "Sync Health Data" Shortcut --> your health-ingest function --> your Postgres
|
Claude <-- run_readonly (SELECT-only) <-- your health-mcp connector function <------+
Nothing above touches infrastructure we operate. The two Edge Functions run on your Supabase project; the only thing that ever leaves your device is the Shortcut's HTTP POST straight to your own project's URL.
Privacy Policy
Zero custody. health-mcp is software you run against infrastructure you own — we (the maintainers) never operate a server that sees your health data or your keys, and there is nothing to disconnect from us because nothing was ever connected to us.
- Your data lives only in the Supabase Postgres project you created. We have no access to it, no copy of it, and no way to see it.
- Your keys (
MCP_TOKEN,INGEST_KEY, your Supabase secret key) are generated by you or the wizard running on your machine, stored as secrets in your own Supabase project, and — for the stdio/.mcpbinstall path — held locally by your MCP client (Claude Desktop / Claude Code) and sent only to your own project's URL. - The Shortcut sends data straight from your phone to your Edge Function URL; it never passes through any server of ours.
- The
querytool is SQL-guarded to read-only statements, and the database role it runs as (health_reader) is grantedSELECTonly — enforced at the Postgres level, not just in application code.
Other clients
Prefer Claude Desktop, or running the server yourself instead of the hosted connector? Both use the same Supabase project from step 1 — just a different way of talking to it.
Claude Desktop: download
health-mcp.mcpb,
double-click it, and paste in your Supabase project URL and secret key when
prompted.
Any stdio MCP client (Claude Code, etc.):
claude mcp add health-mcp -e SUPABASE_URL=<url> -e SUPABASE_SECRET_KEY=<key> -- npx -y @almostjacked/health-mcp
Repo layout
packages/core @almostjacked/health-mcp-core — tools, ingest/normalization, setup.sql
apps/mcp @almostjacked/health-mcp — stdio server, .mcpb, setup wizard
web the setup page (provision + import + Shortcut panels)
supabase/functions/health-mcp the read connector (deployed to your project)
supabase/functions/health-ingest the write endpoint the Shortcut posts to
Develop
corepack enable
pnpm install
pnpm -r test
pnpm -r typecheck
License
MIT — see LICENSE.
Frequently asked questions
What is Health Data (your own Supabase) MCP Server?
Your health data (weight, macros, weigh-ins) as MCP tools — in your own Supabase, zero custody.
How do I install Health Data (your own Supabase) MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Health Data (your own Supabase) MCP Server runs locally from the npm package @almostjacked/health-mcp with the command npx -y @almostjacked/health-mcp@0.1.3.
Is Health Data (your own Supabase) MCP Server free and open source?
Yes. Health Data (your own Supabase) MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Health Data (your own Supabase) MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Health Data (your own Supabase) MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Health Data (your own Supabase) MCP Server provide?
Health Data (your own Supabase) MCP Server provides 6 tools, including get_daily_summary, get_energy_inputs, get_recent, and get_schema. See the full tool list for descriptions and parameters.
How is Health Data (your own Supabase) MCP Server's trust score calculated?
Health Data (your own Supabase) MCP Server scores 56 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
