# Coach Watts

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/hdkiller/coach  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/coach-watts

## Description
Remote MCP server for training, nutrition, wellness, and performance data with OAuth 2.0.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "coach-watts": {
    "command": "npx",
    "args": ["-y","prisma"]
  }
}
```

## Documentation & README

# Coach Watts

<div align="center">
  <p align="center">
    <strong>Your Open Source AI-Powered Endurance Coach</strong>
  </p>

  <p align="center">
    <a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt-4.2-00DC82?style=flat-square&logo=nuxt.js&logoColor=white" alt="Nuxt 4" /></a>
    <a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-5.0-3178C6?style=flat-square&logo=typescript&logoColor=white" alt="TypeScript" /></a>
    <a href="https://trigger.dev"><img src="https://img.shields.io/badge/Trigger.dev-Background_Jobs-4F46E5?style=flat-square" alt="Trigger.dev" /></a>
    <a href="https://ai.google.dev/"><img src="https://img.shields.io/badge/Gemini-AI-8E75B2?style=flat-square" alt="Google Gemini" /></a>
    <a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache_2.0-blue.svg?style=flat-square" alt="License" /></a>
  </p>

  <p align="center">
    <a href="#key-features">Key Features</a> •
    <a href="#quick-start">Quick Start</a> •
    <a href="#integrations">Integrations</a> •
    <a href="./docs/INDEX.md">Documentation</a> •
    <a href="./public/content/releases">Release Notes</a> •
    <a href="./ACKNOWLEDGEMENTS.md">Acknowledgements</a>
  </p>
</div>

---

## 🚀 Overview

**Coach Watts** is a comprehensive, self-hosted endurance coaching platform designed for cyclists, runners, and triathletes. It acts as your "Digital Twin," aggregating data from your favorite fitness platforms and using **Google Gemini AI** to provide professional-level analysis, personalized training plans, and daily recommendations.

Unlike static dashboards, Coach Watts understands context—analyzing not just your power numbers, but your recovery, sleep, nutrition, and life stress to guide you toward peak performance.

<p align="center">
  <img src="docs/assets/images/dashboard_full.png" alt="Coach Watts Dashboard" width="100%">
</p>

## ✨ Key Features

- **🔗 Unified Data Hub:** Syncs automatically with multiple fitness platforms to create a 360° view of your athlete profile.
- **🤖 AI Coach:**
  - **Workout Analysis:** Detailed breakdown of every session with execution scores.
  - **Daily Recommendations:** Smart suggestions ("Push hard" vs "Rest") based on HRV and sleep.
  - **Interactive Chat:** High-performance AI SDK v5 powered chat for data-backed answers to your training questions.
- **📈 Advanced Analytics:** Track Fitness (CTL), Fatigue (ATL), Form (TSB), and Power Curves with intuitive visualizations.
- **🥗 Nutrition Tracking:** Metabolic fueling logic (Eco/Steady/Performance) based on training intensity.
- **📅 Smart Planning:** Generate adaptive training plans that fit your schedule and goals.
- **🌍 Global Localization:** Fully localized platform supporting over 10 languages with smart timezone handling.
- **📢 System Messages:** Stay informed with important updates and coaching alerts directly in your dashboard.

## 🖼️ Visual Tour

|                                  **Performance Analytics**                                   |                                  **Training Calendar**                                  |
| :------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------: |
| <img src="docs/assets/images/performance_full.png" alt="Performance Analytics" width="100%"> | <img src="docs/assets/images/activities_full.png" alt="Activity Calendar" width="100%"> |

|                                 **AI Workout Analysis**                                  |                             **Adaptive Planning**                             |
| :--------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------: |
| <img src="docs/assets/images/workout_detail_complex.png" alt="AI Analysis" width="100%"> | <img src="docs/assets/images/plan_full.png" alt="Training Plan" width="100%"> |

|                                     **Planned Workouts**                                     |                               **AI Coach Settings**                                |
| :------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------: |
| <img src="docs/assets/images/planned_workout_detail.png" alt="Planned Workout" width="100%"> | <img src="docs/assets/images/ai_settings_full.png" alt="AI Settings" width="100%"> |

## 🔌 Integrations

Coach Watts connects with your favorite endurance and wellness platforms:

| Platform          | Features Synced                                    |
| ----------------- | -------------------------------------------------- |
| **Intervals.icu** | Workouts, Calendar, Power Metrics, Wellness/Weight |
| **Strava**        | Activity Data, GPS Streams, Heart Rate             |
| **Whoop**         | Recovery, HRV, Sleep, Strain                       |
| **Oura**          | Readiness, Sleep, HRV, SpO2, Stress, VO2 Max       |
| **Withings**      | Body Composition (Weight, Fat %), Sleep, Wellness  |
| **Garmin**        | Activity Data, Wellness, Health Metrics            |
| **Wahoo**         | Activity Data, Workouts                            |
| **Polar**         | Training Sessions, Wellness, Recovery              |
| **Yazio**         | Nutrition Logs, Macros, Hydration                  |
| **Hevy**          | Strength Training, Exercises, Sets & Reps          |
| **Fitbit**        | Steps, Sleep, Activity, Heart Rate                 |
| **Rouvy**         | Indoor Cycling Workouts                            |
| **Ultrahuman**    | CGM Data, Glucose Monitoring                       |
| **Telegram**      | AI Coaching via Chat, Notifications                |

## 🌍 Localization

Coach Watts is built for the global endurance community. We currently support:

- **English** (en), **German** (de), **Spanish** (es), **French** (fr)
- **Hungarian** (hu), **Italian** (it), **Japanese** (ja), **Dutch** (nl)
- **Russian** (ru), **Chinese** (zh)

We use **Tolgee** for managing translations. If you'd like to help translate Coach Watts into your language, please join our [Discord](https://discord.gg/dPYkzg49T9)!

## ⚡ Quick Start

### Prerequisites

- Node.js 24 (Active LTS — see `.nvmrc`)
- Docker (for PostgreSQL)
- Google Cloud Account (for Auth & Gemini API)

### 1. Clone & Install

```bash
git clone git@github.com:hdkiller/coach.git
cd coach
cp .env.example .env
pnpm install
```

### 2. Start Database

```bash
docker-compose up -d
# Starts PostgreSQL on port 5439
```

> **Note for MacOS users:** Ensure Docker Desktop is running (e.g. open Docker.app via Spotlight).

### 3. Configure Environment

Edit the `.env` file to fill in your own API keys (see below):

```bash
vim .env # or on MacOS: open -a TextEdit .env
```

> **Note:** You will need API keys for Google (Auth & Gemini), and optionally Intervals.icu, Strava, etc. See [Getting Credentials](./docs/04-guides/implementation-guide.md#prerequisites).

### 4. Run Migrations

```bash
pnpm prisma:generate
npx prisma migrate dev
```

### 5. Launch Development Server

```bash
pnpm dev
```

Visit `http://localhost:3099` and log in!

### 🛠️ CLI Tools

Coach Watts includes a powerful CLI for administrative tasks:

```bash
# General help
pnpm cw:cli --help

# Monitor Trigger.dev status
pnpm cw:cli trigger list --prod

# Manage users and locations
pnpm cw:cli users location list-missing
```

## 📚 Documentation

We have extensive documentation available in the [`docs/`](./docs) directory:

- [**Architecture**](./docs/01-architecture/system-overview.md): System design and data flow.
- [**Database Schema**](./docs/01-architecture/database-schema.md): Detailed Prisma models.
- [**Timezone Handling**](./docs/04-guides/timezone-handling.md): How we manage global athlete data.
- [**Chat Development**](./docs/04-guides/chat-development.md): Strict AI SDK & Gemini sequencing rules.
- [**Release Notes**](./public/content/releases): Detailed change logs for each version.
- **Feature Guides**:
  - [AI Chat System](./docs/02-features/chat/overview.md)
  - [Nutrition Logic](./docs/02-features/nutrition/fueling-logic.md)
  - [Scoring System](./docs/02-features/analytics/scoring-system.md)
  - [Integration Guides](./docs/INDEX.md#03-integrations)

## 🤝 Contributing

We welcome contributions! Whether it's fixing bugs, improving documentation, or suggesting new features.

1. Fork the repo.
2. Create a branch from `develop` (`git checkout -b feature/amazing-feature develop`).
3. Commit your changes.
4. Push to the branch.
5. Open a Pull Request targeting the **`develop`** branch.

> **Note on Release Workflow:** All PRs are merged into `develop`. Releases and production deployments occur when `develop` is merged into `master`.

## 📄 License

Distributed under the Apache License 2.0. See [`LICENSE`](./LICENSE) for more information. Acknowledgements of third-party assets and contributors can be found in [`ACKNOWLEDGEMENTS.md`](./ACKNOWLEDGEMENTS.md).

### Is Coach Watts open source?

Yes. Coach Watts is open source using the Apache 2.0 license. We are committed to open source software and working with our community to build a great product.

## ❤️ Community & Support

- **Discord:** [Join our Server](https://discord.gg/dPYkzg49T9)
- **GitHub:** [Star us on GitHub](https://github.com/hdkiller/coach)
- **Issues:** [Report a Bug](https://github.com/hdkiller/coach/issues)

---

<p align="center">
  Made with ❤️ for endurance athletes.
</p>

