I Fed My Blood Work to an AI — Here's What It Said
Also onSpotifyApple PodcastsYouTube
James McAulay connects his training apps and blood tests to Claude Desktop, then demonstrates how he uses it to review workouts and plan training.
What you'll learn
- Connecting training apps to Claude with MCP servers
- Writing a system prompt with training goals and history
- Adding a blood test report to the analysis
- Converting PDFs to Markdown
- The limits of AI coaching
Get the next one in your inbox
One email a week on what founders in health and fitness are learning, plus the investor map and every playbook. Free.
Questions this episode answers
Can I connect Strava or Garmin to Claude or ChatGPT?
Yes. James McAulay connects Garmin, Strava, TrainingPeaks, Intervals and the Heavy gym app to the Claude desktop app through MCP servers. He says anyone with a Strava account can, at a minimum, hook Strava up to Claude or ChatGPT and start talking with their data like they would with a coach.
Can AI analyse my blood test results?
It can if you give it the report. James converted his 65-page Randox blood test PDF into a Markdown file about 1% of the size, then asked Claude what to eat after a gym session. It drew on his out-of-range markers, such as low haemoglobin and fasting glucose in the pre-diabetic range, to suggest meals.
Can AI plan my workout based on my sleep and recovery data?
Yes, if it can see that data. James skipped a morning Zwift ride after 10 hours of sleep and asked Claude for a 45-minute session at 4:30pm. With his calendar and Garmin metrics in view, it saw a good body battery and low stress, and planned a structured quality session with main sets and a cool-down.
Can an AI coach stop me getting injured when I increase my running?
It can push back when you try to do too much. James says that because his setup knows his last three months of training, it would tell him he isn't ready to run 100K a week, or even 50, and would build things up gradually so he doesn't injure himself.
Can AI replace a human running or triathlon coach?
James McAulay says it can't. He finds his Claude setup very effective for analysing his own training data, like a fitness data analyst he can speak to any time. It isn't good at telling him off when he misses sessions, and he says you still need to fact-check it occasionally and give it up-to-date information.
About James McAulay
Claude DesktopClaude ProjectsGarminStravaTrainingPeaksIntervals.icuHeavyRandoxZwiftMyFitnessPal
Transcript
Read the full conversation
Welcome and guest introduction
Will: Hello and welcome back to HealthStacks, the show where we have experts, practitioners and enthusiasts come on and share their amazing AI and technology workflows for health and fitness. Today, I'm extremely excited to be joined by my good friend James, who's going to show us some amazing things as to how he uses AI for health and fitness. I think maybe a bit of a focus on fitness. So, James, tell our viewers what they can expect if they stick around with us and what they're going to learn from today. And then we'll hear a little bit more about you and we'll pass over to you to get started.
James previews the episode
James: Yeah, absolutely. So, I have done a couple of Ironmans and I'm training for a big triathlon this summer. And I've been setting up an AI system that helps me analyse workouts, analyse my wearable data from my Garmin watch, sets me gym sessions based on my triathlon-specific goals, critiques my gym sessions after I've done them, and does all of this inside the Claude desktop app using MCP servers. So, yeah, in this episode I'll show you exactly how it works and how to set it up yourself.
Will: So, essentially, if people have got a long-term fitness goal and they've got some inputs that can be used, like their wearable data or their workout data, they might be able to copy what you're doing to get themselves a really, really high-standard coach to help guide them along the way and hit that PB, hit the goal that they want to hit.
"Not a replacement for a human coach"
James: Absolutely. I mean, I think if anyone's doing anything endurance-related, they have a Strava account. And Strava MCP is one of the connections I'll show you. So, at a minimum, you can just hook up Strava to Claude or ChatGPT and start talking with your data like with a coach. I will say that, like, we'll get into this later. This is not a replacement for a human coach. It's very effective for my own data analysis, but it's not good at, like, telling me off when I miss sessions. So, we'll talk about the sort of value of both, but yes, anyone can set this up at the end of this episode.
James's background: 15 years of data tracking
Will: Amazing. And before we get into it, what were you doing before you had this set up? So, like, I know you've been taking this stuff very, very seriously. You've got a bunch of accomplishments, right? So, even though you've gone and set something up that's pretty cool from a technical point of view, I assume you had a setup before that was doing okay. And where were the gaps that you wanted to solve with this new tech setup that you've got?
James: Yeah, so I am, like, an endurance sport nerd and I have been since I discovered an app called Endomondo when I was about 17. So, you wear a GPS watch or you use your phone to track a run and you get loads of data out the other side. And for the last 15 years, I've, you know, been obsessively looking at my data from a session and then optimising my training plan or my workouts to hit a goal.
James: In 2019, I started following a structured training plan for the first time in my life. So, like a lot of people, I wanted a 5K PB. I wanted to run under 20 minutes. And every time I went out for a run, I just tried to hit that PB. Didn't work. But in 2019, I joined the triathlon club and I started following, you know, structured workouts and proper training plans. So, using Strava, I was using spreadsheets. Like, I was using a lot of spreadsheets. I discovered a great tool called TrainingPeaks, which is how me and my triathlon coach were sort of setting our workouts, reflecting on our workouts. I've been using a Garmin for about eight or nine years. I used a Whoop from about 2020 to 2023 and then unsubscribed. Famously gave that up.
Will: But we can talk about that later.
James: Yeah, we can get into that later as well. But yeah, I've been, I guess, tracking everything with Garmin for years, tracking everything with Strava for years, and then cobbling together my own spreadsheets that I can show you if you want to see.
Will: And how it's evolved. Let's dig in. Let's have a look at the setup as it is now and what it's doing for you. Maybe you can talk us through it.
Screen share begins — Claude Desktop setup
James: We're in Claude, and I've set up this Claude project, which is, one, a way of keeping everything organised, but two, a way of giving an AI agent specific instructions and specific data to help you achieve an outcome or a workflow. I've said to this agent, "You're helping me get back into the best shape of my life. I've done two Ironmans before, and I want to perform well at the T100 100 km race in the summer." Now, this is just, I think, the description of the project. So, this isn't the specific instruction.
System prompt walkthrough
James: In here, I have been gradually evolving the system prompt for this agent. So, I've said this is a mandatory data protocol. When we are talking about workouts or training data, use Garmin MCP, Heavy MCP, Strava MCP, Intervals MCP. I'm actually going to add TrainingPeaks MCP because I added that myself. But I think what's more helpful is perhaps I can just show you a question I would ask this agent, right?
Will: Yeah, that's it.
James: Let's start. I'm going to check my connectors, first of all. And I've got the calendar integrated. I've got TrainingPeaks integrated. And let's also do Garmin.
Will: And so you're tending to switch these on and off on a conversation-by-conversation basis?
James: Yeah, because I found that leaving them all on can bloat the context. And I actually had a problem where I had too many connections and after a few messages, the system would say, like, "I've hit my limit. I need to compact the conversation." And that's because I had, like, 10 MCPs on at any time. Some were for work, some were for sport. So, yeah, I selectively turn them on and off.
Will: Awesome.
James: Also, to save context, I would probably switch out of Opus and maybe use Sonnet. But here's an example of something I can say to this agent.
Live demo 1 — multi-data retrospective (sleep, HRV, run critique)
James: "Yesterday, I did a yoga session. I want you to analyse my heart rate during that yoga session. I also want you to recap the last three or four days of Garmin metrics. Tell me how my sleep is looking, how my resting heart rate is looking. And I'd also like you to critique the run that I went on on Saturday." So, this is probably going to pull information from TrainingPeaks and it's going to pull information from Garmin. So, here we go. "I'm gathering the Garmin data. I'll look at your yoga session heart rate." If we click in here, you can see it's looking up activities from Garmin. It's done that. It's asking permission to look at my Garmin health data, so I'll give it permission to do that. "Friday's run that you mentioned." That's interesting, yeah. Sometimes it gets confused with dates. There we go.
Will: I've been having this exact date confusion, by the way, this week.
James: It's weird, isn't it? You know, it's so good at everything apart from knowing what time it is. Okay, so here's the yoga information. Your average heart rate was 75. Your max hit 100. You were breathing at about 15 breaths a minute. Your stress dropped massively and your body battery only dropped by six points. This was a warm yin yoga session and the whole point of that type of yoga is to just relax and just allow the body to stop striving for anything. So, it looks like the data suggests that that was...
Will: It's worked perfectly.
Sleep data pull from Garmin
James: It's worked. Now it's going through my sleep data, you know: good sleep score on the 30th, good sleep score on the 31st. The 2nd of February was okay. "You didn't get enough sleep." And then last night, I didn't realise it had synced already. Okay, so I actually slept very well. What a sleep. That was, like, yeah, best sleep of my year so far. "Your sleep last night was exceptional. Your resting heart rate is trending nicely. It's at 47. Seven-day average is at 48." This is great. "And your heart rate variability is in the balanced region. Today's unbalanced HRV is interesting." So, it's going through everything. "Your body battery, currently 96. You woke up at 96%."
Run critique from TrainingPeaks
James: And here's a critique of your run. So, "You did a 5.4K run, 138 average heart rate. You had a little spike. You averaged 4:47. Good training effect for aerobic training. Nice cadence." I mean, I personally don't understand how to interpret vertical oscillation.
Will: The good thing is you can ask it questions, right?
James: Exactly. I could say, like, "Help me understand, actually, this. Help me understand the vertical oscillation. I'm not really sure what GCT means."
Will: It's even... Is it kind of telling you off there with the critique, where it's saying, "Hey, this was supposed to be easy, but you've gone slightly above easy"?
James: Yes, and so there's a... we'll get into the training plan underpinning this.
Will: Okay, yeah.
James: And we can look at how it integrates with my calendar as well, but I think I had told this agent, or the training plan said, this was supposed to be a pretty easy run and I did get carried away. So, you know, "Your form metrics were excellent. You didn't blow up and you recovered fine." So, it's okay. "Just make sure that those easy, early kilometres aren't too fast." So, anyway.
Will: Might you be running something like this on a daily basis? Because it looks to me like this prompt in particular has basically said, "Look at everything I did recently. Tell me where I'm up to today. Maybe give me some insights." And then you might use that to decide what to do for the rest of the week or how to plan it. How would you use this information?
James: Yeah, so I guess that demo has just shown how much data it has access to and how quickly it can query all this. So, it's like having a sort of fitness data analyst that I can speak to any time, and that was critiquing the past. A good example, here's a very good example. In the calendar this morning I was supposed to do a Zwift ride, like an indoor bike ride. And I didn't do it because I got 10 hours of sleep and prioritised sleep. So, what I can say to this... Here's an explanation of vertical oscillation, by the way. Quite verbose, but if I wanted to really understand that, that would help me understand it.
Live demo 2 — session planning from readiness metrics
James: So, okay, let's now help it plan out a session. So, "I skipped my Zwift ride this morning and I'd like to get it done at about 4:30pm today. Could you help me plan out the best structured ride if I only have 45 minutes available?" So, it has access to my calendar and it has access to all my metrics. So, if I was completely fatigued, it would come back and say, like... sometimes it would say, "You shouldn't be training." Sometimes it would say, "Let's do an easy ride." But, you know, it's now saying, "You've got a good body battery, you're not very stressed, you're in a great state for a quality training session." So, it's suggesting this type of workout with this much expected training load. Here's how I could structure it. I could do these main sets, do this cool-down, some notes on exactly what to aim for and the cadence. This is incredibly accurate.
James: "I don't think my arms look big enough at the moment and I really want a gym session that focuses entirely on making my biceps look bigger. Can you create this in Heavy for me?" And by the way, I'm using Flow.
Will: Yeah, which is super, super helpful. So, I think this is interesting, that it has asked you. Is this something that you've set up yourself to make sure that it kind of interviews you before giving suggestions?
Live demo 3 — gym programming via Heavy app
James: No, it's just quite good at clarifying. So, that was quite a broad sort of request. Let me just switch this. So, there's the Heavy MCP. I've just switched this on. So, yeah: "What equipment do you have access to? How much time do you have? What's your arm training background? And any recovery considerations?" Okay, so...
Will: Big, big in arm training game.
James: Yeah, I've got lots of arm training background. Thank you very much. Okay, so, "I'm going to do this in the gym with all the usual equipment. I want to do this in a 45-minute session. I have been training arms a little bit. And I've just switched on the Heavy MCP, so you should be able to create this for me now."
Will: And I think the big thing here for viewers and for people looking at how they can set up their own programming is that the difference to just jumping on ChatGPT free version and saying, "Give me an arm workout programme," is that we're getting all of your latest data. So, it's referencing your body battery. It's referencing your resting heart rate. It knows your long-term goals. So, as well as trying to get hench for the beach in this situation, it knows that you're also training for a bunch of other things. It knows the workouts you're already doing. It's pulled your calendar and said, "Hey, wait a second, James. How are you going to do this row session when you've got Zwift at 4:30?" And it's just super, super, super personalised. And then it's going to drop it straight into the Heavy app, so you don't have to touch anything.
AI notices a bicep training gap
James: I mean, you've hit the nail on the head. I don't even know if this demo really sells how incredible this is, because it has come back and said to me, "I can see you've been mostly doing chest and shoulder work so far, but I don't see any bicep work."
Will: It's called you out.
James: It really has. And I have been doing loads of chest work. I've been doing so much of this butterfly. I love my dead hangs, but I've not really been doing much arm work. So, then it goes in and says, "Okay, I can see Heavy has..." Heavy has a library of workouts. And it's like, "Great, I can see all of these. I'm going to create a 45-minute bicep-focused..." How do you say this? Hypertrophy?
Will: Hypertrophy. Yeah.
James: I'm not a gym bro.
Will: That's what they say on the internet.
James: All right. So, here we go. It's created Bicep Blast in my app. And we're going to do chin-ups, barbell bicep curls, dumbbell supinating curl, cross-body hammer curl, concentration curl and cable curl. It's also suggested weights for me based on what I've done in the past. It's saying if I do seven bottom half and seven top half and seven full... Is that range of motion? You're more of a gym bro than I am. ROM?
Will: Yeah, that means range of motion.
James: Exactly. So, it's actually ended my session with a pump finisher to give me an absolute pump coming out the gym. It's told me about, you know, resting. And now if I open the Heavy app... let's just restart the Heavy app. It should have sent it through.
Deep research use case
Will: I think one of the cool things that you could do... so, let's take this at face value. You're off to the gym to get your big arms. But what you could do is you could even get it to teach you. You could even say, "Maybe there's a couple of different approaches to this. Talk me through them." First, you could get it to talk about why we're doing bottom half and top half and full range of motion and see if you agree. You can get it to have a look at what you've already done and factor that in. I think it's a really, really, really cool way of doing things.
James: Yeah, I mean, all these questions I have, I could just go through this and really understand, like, why am I doing these sessions? It's not just telling me to do something, it's also educating me in how to approach the gym. So, as is the way with live demos, this hasn't come through to the Heavy app. I think I know how to fix that, and I will show you the Heavy workout after this. And I will go and do it, and I'll tell you on WhatsApp how it is.
Will: By the magic of post-production, here is the Heavy screenshot showing that this went through. I can imagine some other use cases of this. We're listening to podcasts all the time about training. You might hear about a new training modality that you're interested in. I might have listened to kind of Rhonda talk about the importance of zone two, and I might want to drop in the PDFs around the content that they're producing, get it to go and look up the science, and then get it to factor in my situation and start to say, "Right, I can give one extra zone two session a week, but I'm going to get rid of some other session that I was doing. How might we incorporate that?" Go back and forth, and then, "Okay, go and incorporate it."
Injury-prevention framing — "You're not ready to run 100K"
James: A hundred percent. You could, like, yeah, kick off a deep research task to summarise something you just heard about, and then have this agent just completely personalise it to your level. You know, with any sport, but particularly with endurance sport, it's tempting for people to get carried away, you know, hear some influencer talking about running 100K a week, and then just injure themselves because they've gone from, like, nought to 100 far too quickly. And this system would immediately push back on that and say, "Look, I know what you've been up to over the last three months of your training. You're not ready to run 100K every week. You're not even ready to run, like, 50, to be honest. Let's build this up so that you don't injure yourself."
Will: So good. One of the things that we're seeing when we're having these conversations is fact-checking and making sure things are actually rooted in evidence, versus, as you say, listening to some guy on Instagram who's doing 700 miles and then being like, "I can do that." And then personalising. And both becoming so much more effective and so much easier to do.
Layer 4 — Randox blood work added to context
James: Yeah, and I want to show you something else with personalisation. So, I did a Randox blood work test in November. And it was the Everyman test. Let me just pull that file up for you now. So, in terms of personalisation, I did a Randox blood work test in November and it came back with this huge 65-page PDF. Like, the most information I think I've ever seen on my own body. And so, I converted that to a Markdown file that you can see here. And that is just stripping out all of the unnecessary data. It made the file size, you know, 1% of the PDF.
James: And now my agent, you know, can see my out-of-range levels. Like my haemoglobin and my haematocrit. That's the first time I've said that out loud. They were both a bit low. My red blood cell count was low and that's because I'd just been unwell before doing the test. My glucose fasting levels were in the pre-diabetic range, so I need to fix that. And I had this high ASO, which I think suggested I'd just had, like, a strep throat infection in the days before. So, that explains all of this. It's got my height, my weight, you know, my everything. And now my agent has all of this.
Privacy note and data trust
James: It's important to note that privacy is incredibly important, and so I've said to Anthropic, "Do not train on my data." So, I'm trusting them not to train on my urine analysis, for example, that I don't think anyone really needs to know.
Live query: post-workout nutrition from blood markers
James: But let's now come back to the agent and say something like, "Based on my blood work, is there anything I should be aware of when eating after this gym workout? What should I try and eat in the hours after a session like this?" And it's going to give me personalised advice based on everything it can see. Here we go. "Your blood work says you have a mild anaemia pattern," or you did in November. "You had some borderline metabolic markers. You just had strep infection, but everything else was good." You know, testosterone, excellent. Humble brag. Normal thyroid.
Will: Actually, show that off if you can.
James: This really is a sort of tech nerd slap roll session. All right. So, "During the session, just have water. You don't need to eat anything. Then you should avoid spiking your triglycerides by having lean sources of protein." So, like a shake or some chicken breast. "Try to avoid fatty cuts of meat. You want some low-GI carbs given your glucose issues. So, try to avoid white bread or sugary drinks or simple sugars. You need to prioritise low-GI carbs to avoid insulin spikes."
James: Then, you know, this was a test that was done three months ago. I don't think I'm displaying signs of anaemia now, but just to make sure I'm getting enough iron, it's suggesting I eat some of this. "Here's an example meal that you could eat: some chicken breast, some sweet potato, big salad and some pumpkin seeds." Then it's getting its timings mixed up a bit, but, "Before you do your Zwift session, you could have more protein. After that, here's how you could recover with healthy fats," you know, good mix of carbs and protein. And then it's sort of coming back with some principles for me to, you know, tailor my nutrition to this blood work that I've just had done. Consider some omega-3 supplements, some creatine, and, you know, try to avoid these foods.
Personalised reference ranges discussion
Will: I mean, this is something you'd pay, like, hundreds of pounds a month for, right? Like bespoke nutrition. What you're showing us as well is just that that blood test has become much more valuable. I think some of the other interesting things that you can do there is, in the past I've had blood tests where I've got worried about a couple of metrics. For example, my creatinine, I think that's how you say it, has been really high, and that can be a kidney problem. And so when I just get the results back, it's flagged as, like, way out of range. But then you jump onto Claude, and it's got the context that you're kind of working out and blah blah blah, and it's like, "Oh, no, this just means you had a heavy session within the last couple of days. There's nothing to worry about here."
Will: And the other thing is you can personalise those reference ranges now. So, instead of just having the reference range for everyone in the population, you can now start to say, "Well, actually, I am this age, I have these goals, I have this activity level, I have this lifestyle. What should my reference range be?" So, for example, if you took not a blood test, but, like, VO2 max, I'm sure that the reference range that you'd be looking at wouldn't be average, right? You're interested in how you want to be up there with the endurance athletes, not with just kind of the whole of a population sample. And I think you can start to do that across lots of different metrics now.
James: Yeah, exactly. And, you know, that blood work already included data on me, like my sort of height and my weight and my age. But you're right, we could go so much deeper down this personalisation route.
Value summary and key principles
James: So, in terms of how we would then... I guess you can talk about giving agents hands, right? Like giving them tools to do things. So, right now we're at the point where this agent has said, "Here is exactly what you should eat." It's even saying, "Do you want me to design a full week's meal plan?" But then I would have to put that into MyFitnessPal. I could add a MyFitnessPal integration now, or I could build my own with Claude Code. And then instead of saying, "Hey, do you want me to create a written PDF for you?", it would go into MyFitnessPal, it would log my breakfast, my lunch and my dinner. And then I would just open the app and follow the instructions. So cool. So, yeah, you're getting, you know, a personalised nutritionist. You do obviously have to fact-check occasionally and sort of give it up-to-date information, but this is so beyond what I could have done myself.
Wrap-up
Will: It's amazing. It's amazing. And I think the fact-checking... we know that with AI we do, like, brain first, AI second, brain third. But you do that if you went and saw a nutritionist, hopefully, or certainly if you were just trying to collect this information for yourself from different sources. You need to engage your brain, and you need to do it with AI as well, and that's okay. Thank you so much. This has been incredible. So, you've shown us how to set up a personalised fitness coach. You've shown us how to do programming with AI. You've shown us how to think about doing almost daily reviews, and how to use daily reviews to understand what you've been up to and where your body state is and what you should do. And now you've ended on personalised nutrition off the back of blood tests. So much to pick up on. Thank you so much.
James: No problem. That was very fun.
Will: See you next week, everyone.
Post-production bonus: Zwift workout push
Will: Don't go anywhere yet. It's Will. We have a little bonus. James sent me, after we were done recording, a video of the Zwift workout that got set up by the Claude process that we saw. By the magic of post-production editing, here it is, and we'll see you again next time on HealthStacks.
Outro
James: So, I've opened Zwift, and I go into workouts and then custom, and we can see this workout that Claude has just created for me. Three times eight minutes with a couple of bursts at the start just to get warmed up. Nice warm-up, easy recovery between each session, and then a cool-down. And that came entirely from the AI agent that we were just talking to.


