TrainBud logo

TrainBud

Connects Garmin Connect data to AI assistants for local analysis of workouts, sleep, recovery, and personal training trends.

Install TrainBud

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "trainbud": {
      "command": "npx",
      "args": [
        "-y",
        "trainbud"
      ],
      "env": {
        "GARMIN_EMAIL": "YOUR_VALUE_HERE",
        "GARMIN_PASSWORD": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y trainbud

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

TrainBud MCP server connects Garmin Connect fitness data to AI assistants through a local MCP process. It retrieves workouts, sleep, heart rate, recovery, stress, body composition, and VO2 max data, then compares findings with personal baselines computed in code. Data is cached locally in SQLite, with credentials stored in a local environment file and session data under `.trainbud/`. Reach for it when you want conversational access to Garmin training history without sending the data to a hosted analytics service.

Use cases

  • Review recent workouts and compare them with earlier efforts
  • Analyze sleep, recovery, stress, and heart-rate trends
  • Find unusual changes against personal 28-day baselines
  • Record races, goals, injuries, and subjective training notes

Key features

  • Garmin Connect data access over MCP
  • Local SQLite history cache
  • 28-day personal-baseline findings
  • Workout comparison by type and distance
  • Training, sleep, recovery, and health trend tools
  • User context and subjective-session logging

Tools15

What TrainBud lets your agent do. Expand a tool for its parameters.

Self-reported~268 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 63d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · trainbud (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads221Package downloads in the last 30 days.
Last commit14d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed15Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How TrainBud works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about TrainBud

TrainBud is an MCP server that connects Garmin Connect fitness data to AI assistants and provides tools for workouts, sleep, heart rate, recovery, stress, body composition, and VO2 max. It also supports personal-baseline findings, weekly reviews, workout comparisons, user context, and subjective training logs while caching data locally.

Run `npx trainbud setup` to install and configure TrainBud. The setup wizard walks through Garmin authentication and MCP configuration for Cursor or Claude Desktop. Node.js 22.12 or newer is required; a global npm installation is also available.

Yes, TrainBud works with Cursor. The setup wizard can configure the MCP connection for Cursor, after which you should restart the client and ask questions about your Garmin data.

TrainBud needs Garmin Connect credentials, provided as `GARMIN_EMAIL` and `GARMIN_PASSWORD` for the documented Claude Code setup. The project stores credentials locally and keeps session tokens under `.trainbud/`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTrainBud AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/trainbud?style=directory)](https://allmcps.com/mcp/trainbud)
HTML Embed
<a href="https://allmcps.com/mcp/trainbud"><img src="https://allmcps.com/api/badge/trainbud?style=directory" alt="TrainBud on AllMCPs" /></a>