Atlas Coach
An AI running coach I designed and built with Claude Code. It started as an MCP server that lets Claude coach me on my Garmin data, grew into a web app that replays every run on a 3D map with a runner moved by the watch data, and is now public on GitHub with a demo mode. Everything runs on my own computer.
- Role
- Side project. Design and code, built with Claude Code
- Team
- Solo
- 23MCP tools Claude uses to coach me
- 370+activities synced from Garmin, back to 2023
- 0cloud servers, my data stays on my computer
Atlas Coach is my running and hybrid-training coach, built on my own Garmin data for a half marathon and a Hyrox race. I designed it and built it with Claude Code, one step at a time: each chapter is a problem I hit while using it, and what I changed.
01A coach inside Claude
Challenge. Training apps show plenty of data but don't help me decide what to do today. AI assistants give advice, but they don't know my training history, recovery or races.
What I did. An MCP server in Python that reads my Garmin data from a local SQLite database, so Claude can coach me on the real numbers. Each tool has one job and a clear description, so the model knows when to call it: today's status, readiness, activities, trends, the training plan.
Impact. 23 tools, in daily use. Designing tools for a model shaped how I built the MCP endpoint of this portfolio.
02Making the data trustworthy
Challenge. A coach is only as good as its data. Claude told me my Body Battery was low when it was the overnight minimum, not the current value. After a week away, the runs of that week never arrived. Laps came back empty.
What I did. I fixed each one as I found it, by using the coach every day: current and overnight values kept apart, a daily table for steps, sleep, HRV and stress, a sync that notices the gap since the last activity and catches up, every activity type saved, and every lap with its running dynamics.
Impact. Every chat starts from fresh, complete data, even after days offline.
03From chat to a run you can watch
Challenge. A conversation is good for "what should I do today", not for seeing where a run went wrong.
What I did. A web app with Strava as the benchmark. I wrote the plan first, with the decisions and what the data allowed, then built it in phases. Python keeps owning the data and serves an API, so the same API could serve a phone app later. Each run becomes a replay on a 3D map: click a km and the camera flies there, while a 3D runner moves with that km's cadence, bounce and stride. Atlas pins mark where something changed, a ghost lets me race a past run on the same route, and each km is compared with my best on that route.

04Show, then explain
Challenge. Numbers like vertical oscillation or acute and chronic load mean little on their own.
What I did.
- One accent, used with intent. Black, white and greys, and a single blue-to-violet gradient only for what is selected or comes from Atlas: advice, pins, the ghost.
- Every chart has a sentence saying what the number means for me, personalised to my height, weight and thresholds.
- Home for today, detail for the run. The home answers "should I train today, and how?"; the run page opens the km detail beside the map instead of covering it.
- Advice as data, text as translation. The rules return codes; the interface writes them in Italian or English.


05Open, without my data
Challenge. I wanted the project public as proof of work, without exposing my health data or my Garmin account.
What I did. A demo mode with a fictional athlete and generated data, a cleaned public repository, a README in English and Italian, and screenshots from the demo only. By design there's no cloud backend: Garmin, a local database, a local API and a local web app.
Build & tech
- Front end: Next.js and TypeScript, Tailwind and shadcn/ui, Mapbox for the 3D map, three.js for the runner.
- Back end: Python, FastAPI and SQLite, with a Garmin sync every 15 minutes, down to second-by-second data.
- MCP server (FastMCP) with 23 tools for Claude. Unit tests, Italian and English, dark and light theme.
Next
A coach is most useful during the session, not only after it. Today Atlas only sees a run once the watch syncs, and Garmin has no official way to send a message to a watch mid-run. The next step is tips on the watch while I train: first a quick test with Garmin LiveTrack and phone notifications, to see if live tips are actually useful, then a Connect IQ app on the watch if they are.