Can I use my Apple Health data with a local model?
Yes: any local-model app that can start a local MCP server can use HealthSQL's, and with a model that runs on your Mac, the health data your agent reads never leaves the computer. As of November 2026 that includes LM Studio, Jan, Goose, AnythingLLM and Msty Studio; Ollama runs the models but is not an MCP client itself.
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. With a hosted model, the rows an agent reads go to the model's provider. With a local model, the whole path is your iPhone, your iCloud Drive and your Mac.
Which local apps can use it
Every app below takes the same server: the command ~/.local/bin/healthsql (use the full path) with the argument mcp. healthsql connect with no name prints the full path on your Mac.
| App | MCP for local servers | Where you add it | Source, read 30 November 2026 |
|---|---|---|---|
| LM Studio | Yes, since version 0.3.17; local and remote servers | ~/.lmstudio/mcp.json, in the same shape as Cursor's mcp.json | LM Studio docs |
| Jan | Yes | Settings, MCP Servers: add the command and its arguments | Jan docs |
| Goose | Yes; its extensions are MCP servers, and a command-line extension is a stdio server | goose configure, the desktop app, or ~/.config/goose/config.yaml | Goose docs |
| AnythingLLM | Yes; stdio is the default | anythingllm_mcp_servers.json in its storage folder, under mcpServers | AnythingLLM docs |
| Msty Studio | Yes, as a command-based (STDIO) tool | Toolbox, Tools | Msty docs |
| Open WebUI | Only Streamable HTTP natively; a stdio server needs a proxy such as mcpo | Admin settings, External Tool Servers | Open WebUI docs |
| Ollama | No: it serves models to the apps above, and to agents | Not applicable | Ollama docs |
In LM Studio's mcp.json, and in AnythingLLM's file, the entry looks like this:
{
"mcpServers": {
"healthsql": {
"command": "/Users/you/.local/bin/healthsql",
"args": ["mcp"]
}
}
}Without MCP
Any local agent that can run shell commands can use healthsql query "SELECT ..." instead, and read the JSON it prints. The schema reference is written for that agent.
What to expect from a local model
The server gives every client the same two tools and the same instructions: call health_overview once, then write SQL against the daily view for daily numbers. If a small model struggles with SQL, ask it to start from daily and the example queries in the schema reference.
The rest of the setup is the same as for any agent: setup.
Questions
Does anything leave my Mac with a local model?
HealthSQL sends no health data anywhere: the iPhone writes to your iCloud Drive, and the command reads it on your Mac. What the model sees stays in the app that runs it. Check that app's own settings for anything it sends, such as usage reports.
Can I use Ollama?
Yes, as the engine: Ollama runs the model, and an MCP-capable app or agent from the table above calls HealthSQL's tools. Ollama's docs also list agents it can start with local models, such as OpenClaw and Hermes Agent: see always-on agents.
Is a local model good enough for health questions?
Questions with an exact answer in SQL, such as weekly averages, depend less on the model, because the database does the arithmetic; the model only has to write the query. HealthSQL is not a medical device, and no model's reading of your data is medical advice.