# TrainBud [Health: Active]

**Category:** 🏃 Sports  
**Repository:** https://github.com/Zsadigzade/trainbud  
**GitHub Stars:** 0  
**npm Downloads (last month):** 221  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/trainbud

## Description
Talk to your own fitness data. Findings computed in code against your own 28-day baselines.

## Tools
Capabilities this server exposes over MCP:

- **get_latest_activity** — Your most recent workout — distance, pace, HR, elevation
- **get_activities_range** — Activities between two dates
- **get_sleep_data** — Sleep duration, stages, score, awakenings — and which parts of last night were unusual for you
- **get_heart_rate_trends** — Resting, max, and average HR over time
- **get_recovery_status** — Recovery score from HRV, sleep, stress, resting HR
- **get_body_composition** — Weight, body fat, and muscle mass trends
- **get_stress_levels** — Daily stress averages and trends
- **get_vo2_max_trends** — VO2 max fitness trends over time
- **get_training_insights** — Combined weekly summary (activities, sleep, recovery, stress)
- **get_findings** — What stands out against **your own** 28-day baselines, with the rule each finding fired on
- **get_week_review** — This week against last, the load forecast, sleep debt, and your next race
- **compare_workouts** — One workout against your own earlier efforts of the same type and distance
- **remember_context** — Record a goal, a race and its date, an injury, or a note
- **get_user_context** — What is on record about you, on any date
- **log_subjective** — How a session actually felt — RPE, soreness, mood

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

```json
"mcpServers": {
  "trainbud": {
    "command": "npx",
    "args": ["-y","trainbud"],
    "env": {
      "GARMIN_EMAIL": "",
      "GARMIN_PASSWORD": ""
    }
  }
}
```

**Requires environment variables:** `GARMIN_EMAIL`, `GARMIN_PASSWORD` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What TrainBud MCP server does

TrainBud MCP server gives an MCP-compatible assistant access to fitness information from Garmin Connect. It is intended for people who want to ask questions about their own training history in natural language, such as whether recovery is sufficient for a hard session or how resting heart rate has changed.

The server exposes data retrieval, comparison, and personal-context tools. It can return recent or date-bounded activities, summarize sleep and recovery, track heart rate and stress, and show body-composition or VO2 max trends. Its analysis is centered on the user’s history: findings are compared with 28-day baselines rather than only reported as raw measurements.

## How it works

TrainBud MCP server runs locally as a Node.js application and communicates with an MCP client over the standard local process style described in the project documentation. Garmin Connect supplies the fitness data, while a local SQLite cache stores history for subsequent queries. Session tokens are kept in the `.trainbud/` directory, and the project states that credentials remain in a local `.env` file.

The analysis tools calculate results from the cached data. `get_findings` reports notable changes and the rule that triggered each finding. `get_week_review` compares the current week with the previous one and includes training-load forecasting, sleep debt, and the next race when that context is available. Workout comparisons use earlier efforts of the same type and distance.

## Setup and configuration

Install and start the setup wizard with:

```bash
npx trainbud setup
```

The wizard handles Garmin credentials, authentication, and MCP configuration for Cursor or Claude Desktop. Node.js 22.12 or newer is required. A global installation is also supported with `npm install -g trainbud`, followed by `trainbud setup`. Developers running from source can clone the repository, install dependencies, build the project, and run the setup command.

Claude Code users can install the project as a plugin. The documented plugin setup provides both the MCP server and project commands for setup, diagnostics, and asking questions. The credentials shown for that route are `GARMIN_EMAIL` and `GARMIN_PASSWORD`.

## Tools and capabilities

TrainBud MCP server provides tools for:

- Reading the latest activity or activities within a date range.
- Inspecting sleep duration, sleep stages, sleep score, and unusual parts of the previous night.
- Tracking resting, maximum, and average heart rate over time.
- Reviewing recovery from HRV, sleep, stress, and resting heart rate.
- Viewing weight, body-fat, muscle-mass, stress, and VO2 max trends.
- Producing combined training summaries, weekly reviews, and personal-baseline findings.
- Comparing one workout with earlier efforts of the same type and distance.
- Recording goals, races, injuries, notes, perceived exertion, soreness, and mood.
- Reading stored user context for a selected date.

## Limitations and notes

TrainBud MCP server is an unofficial community project and is not affiliated with Garmin Ltd. It requires access to Garmin Connect data and a compatible MCP client; the README specifically names Claude Desktop, Cursor, and Claude Code. The server is local-first, but any AI assistant connected to it may process the returned data according to that assistant’s configuration.

The repository also includes an optional dashboard, voice interface, and Garmin Connect IQ watch widget. Those features require additional setup and are separate from the core MCP tools. The watch widget requires `trainbud serve` and an HTTPS tunnel, while the voice interface has browser and optional Groq transcription requirements.

_Full upstream README: https://allmcps.com/mcp/trainbud/readme_

