Live data from Hacker News

Show HN: Apple Health MCP Server

github.com

41–50 of 53 posts

Re: Show HN: Apple Health MCP Server

#43
post #37

Love it! For getting Apple Health data into duckdb, I’ve used this in the past: https://github.com/dogsheep/healthkit-to-sqlite . (You can load the SQLite database directly in duckdb.)

This is a much more seamless solution that what OP is using (for both his project and for users)!

@_neil, any reason not to use this instead? duckdb over a .db file is a more straightforward approach

Re: Show HN: Apple Health MCP Server

#44
post #37

Love it! For getting Apple Health data into duckdb, I’ve used this in the past: https://github.com/dogsheep/healthkit-to-sqlite . (You can load the SQLite database directly in duckdb.)

This is a much more seamless solution that what OP is using (for both his project and for users)! @_neil, any reason not to use this instead? duckdb over a .db file is a more straightforward approach

It seems like you still need to export the database here, so maybe same amount of steps since duckdb can import CSV files directly as well.

I think supporting the native Apple Health export feature would be a good idea. It just takes longer than the CSV export, so I started there. I would imagine the native export has more data, though, which might be nice.

Re: Show HN: Apple Health MCP Server

#45
post #41

If you are looking for a way to explore Apple Health data: I have a proof of concept here that turns the Apple Health export xml file into a timeseries .parquet that you can then load into clickhouse or duckdb. https://github.com/atlaslib/atlas

Very cool. I already had this started at GitHub so I must have seen it in the past.

I love the use of a notebook as an updating dashboard here. One of my demos before this MCP server was an evidence.dev dashboard.

Re: Show HN: Apple Health MCP Server

#46

Can you please add examples of actual chat questions and answers so that we can understand how it actually performs?

Good idea. The video on Twitter has a few different queries (though I don’t expand all of them) in order to build the dashboard. If you pause it at different points, you can see some of the questions it’s asking and then subsequently writing queries for.

All that said, I’ll try to add some examples to the readme.

Re: Show HN: Apple Health MCP Server

#47
post #40

This is SO freaking cool. I'm doing something similar for a startup, albeit in a different domain and against a massive dataset. Looking at the code (and "for the future..." note about LLM generated queries), you cannot ask arbitrary questions? Is that correct?

No, you can ask arbitrary queries. I’ve found that foundation models (and Claude in particular) do a great job at writing sql. It even seems to handle time series questions pretty well.

Re: Show HN: Apple Health MCP Server

#48

Hey Neil, this is cool! If you package it up as a desktop extension ( https://github.com/anthropics/dxt ) and send it to me ( https://docs.google.com/forms/d/e/1FAIpQLScHtjkiCNjpqnWtFLIQ... ), I'd add it to Claude's directory of local MCP servers!

Awesome! I was just looking at dxt. I’ll take a look tomorrow.

Re: Show HN: Apple Health MCP Server

#49
post #28

I’m on mobile and can’t try it out first hand right now but looks great. Does it include health records (eg from Epic)?

The current version does not. I’m not sure if the official Health export includes that info. My current doctor unfortunately uses some app that doesn’t integrate with Apple Health. It would be a great feature here though.
Post reply on HN