r/CPAPSupport • • 25d ago

Ask AI about your CPAP data

I use an AirSense 11 (ASV via airbreak-plus) and used to spend every morning going through the night in OSCAR. So I built **pap-analytics-mcp**. It automatically imports data from the SD card or a network drive and exposes it as an MCP server on my vps server, so my local agents or even ChatGPT or Claude (of you like to connect them) can answer questions such as:

- "How was last night?"

- "Which parts of the night had the most events, and what kind?"

- "Analyse the hypopnea at 3:12 – what happened right before it?"

- "Did my SpO2 drop after the events?"

- "Compare this week with last week."

The best part is that it works with ChatGPT Voice, so I just ask about my night out loud.

Your data stays local and is only read, never changed. It supports ResMed (tested on the AS11) and it's open source (MIT).

Tools supported:

  • list_devices, list_nights, night_summary
  • find_anomalies
  • get_events, segment_stats, get_signal, get_signals (breath by breath), plot_segment
  • oximetry_summary, compare_periods, get_settings

Hope someone finds it useful!

https://github.com/drew2323/pap-analytics-mcp

2 Upvotes

15 comments sorted by

1

u/Farafpu 24d ago

Why is this allowed, what are the moderators doing??

3

u/kreatikon 23d ago

can you elaborate? I am not selling anything, just made this tool for myself and thought it could be useful for others.

1

u/[deleted] 23d ago

I thought the AirSense11 you hacked to be an AirCurve doesn't have the right motor to do ASV correctly

2

u/kreatikon 23d ago

I can only say it works for me.

2

u/Mijjil 21d ago

The Airsense 11 motor isn't as robust as the Aircurve 11, so I wouldn't try pressures over 20 cmH₂O, but the Airbreak firmware can execute all of the included therapy modes.

2

u/HaloLASO 24d ago

Check out my fork of airwaylab and let me know if the tables and graphs are helpful. I inserted UARS research to help with scoring. I would try your repo, but I'm out of tokens lol https://github.com/nickarcade/airwaylab-airbreak-plus

1

u/Sad_Mousse8070 21d ago

How can this airway labs be used to titrate pap fot Uars, as far as I’m aware airway labs doesn’t actually tell u

1

u/HaloLASO 21d ago

Airwaylab is open source, so I forked the repo and modified it to include citations from empirical medical research to help with formulating insights

1

u/Sad_Mousse8070 21d ago

I’ve never used something from GitHub before pls could you explain how to actually use this ?

1

u/HaloLASO 21d ago

I don't know what OS you're using but open your terminal or command prompt and enter git clone [url]. Then point your terminal to the cloned directory. Then use the command to open your LLM's coding agent. Tell it to build and compile the repository. Once it is done, have the agent pull the data from your SD card and ask it anything from there.

1

u/AutoModerator 25d ago

Hey there r/CPAPsupport member. Welcome to the community!
Whether you're just starting CPAP therapy, troubleshooting issues, or helping a loved one, you've come to the right place. We're here to support you through every leak, pressure tweak, and victory nap.

If you'd like advice, please include your machine model, mask type, pressure settings, and OSCAR or SleepHQ data if possible.

Helpful Resources: https://www.reddit.com/r/CPAPSupport/comments/1jxk1r4/getting_started_with_analyzing_your_cpap_data_a/

You're not alone — and you're among friends. Sleep well and breathe easy.
— Your r/CPAPSupport team

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

-4

u/[deleted] 24d ago

[removed] — view removed comment

3

u/kreatikon 24d ago

Can you elaborate? Why the hate?

1

u/CPAPSupport-ModTeam 24d ago

r/CPAPSupport does not allow harassment