HealthSQL help
Most questions have a short answer below. For a problem the healthsql command reports, see troubleshooting: every message there comes with the one act that clears it.
HealthSQL is an iPhone app and a command-line tool that copy your whole Apple Health record into a local SQLite database on your computer, so AI agents can query it with SQL or MCP.
Setup
What do I need?
An iPhone with iOS 18 or later, and a Mac signed in to the same Apple Account with iCloud Drive on and Python 3.9 or later. Then an agent: Claude Code, Codex, Claude Desktop, Cursor or another MCP client. Steps: setup.
Can my agent set it up for me?
Yes. Give it this line: "Set up HealthSQL on this computer so you can read my Apple Health data. Follow https://healthsql.app/agents.md and tell me what my record covers when you are done." The page it names, agents.md, is written for an agent.
Does it work on Windows or Linux?
HealthSQL is made for a Mac: the files arrive through iCloud Drive, and the install script and setup are written for macOS. The command is plain Python, so a computer that has the files can read them if you point HEALTHSQL_EXPORT_DIR at the folder, but only the Mac is supported.
Do I need the $7.99 purchase?
No. The full export is free each time you open the app. The purchase makes the export run by itself when Health has new data.
Data
How fresh is my data?
As fresh as the iPhone's last export. Every answer has phone_synced with its time. iOS lets no app read Health while the iPhone is locked, so new data moves after you next unlock it.
Why is my step count lower than when I add up the samples?
Because your Watch, iPhone and any ring each record the same steps. HealthSQL uses Health's own daily total, which counts each stretch of time once, as the Health app does. The full explanation.
Which records are not included?
Clinical records, medications, vision prescriptions, ECG voltages, heartbeat series and audiograms. ECG results are included, without the voltages.
I only shared the past 30 days. What now?
On iOS 27 you can share only the last 30 days with an app; then HealthSQL has only those, and the app says so. To share everything, change the app's Health access in Settings, Privacy & Security, Health, HealthSQL. The app then exports again from the start.
Does it see data from my other apps and devices?
Yes, whatever they write to Apple Health: a ring, a scale, a running app. Each record keeps its source and device.
Privacy
Does HealthSQL see my health data?
No. There is no server of ours and no account. Your records go from Health to the app's folder in your iCloud Drive, then to your computer. The one thing that leaves is the record of a purchase, if you make one, and it holds no health data. Privacy.
Who sees the data my agent reads?
The company that runs the agent's model, for the rows the agent reads. The database stays on your computer. A model that runs on your own computer keeps the rows there.
Is HealthSQL a medical device?
No. It is not a medical device and gives no medical advice. It copies your data; what it means for your health is a question for a clinician.
Purchase and support
How do refunds work?
Apple handles the purchase, so refunds go through Apple, as for any App Store purchase.
How do I get help?
Email contact@dkbuilds.co. Include the output of healthsql status; it holds no health data.
How do I remove HealthSQL?
Delete ~/.local/bin/healthsql and ~/Library/Application Support/HealthSQL. Remove the MCP entry from your client (in Claude Code: claude mcp remove healthsql --scope user). Delete the app on the iPhone, and remove its data from iCloud in your Apple Account's iCloud storage settings.