Skip to main content
Glama
braydenabo

garmin-connect-personal-mcp

by braydenabo

garmin-connect-personal-mcp

An MCP server that lets any AI assistant answer questions about your own Garmin data: sleep, HRV, stress, body battery, training and activities.

It syncs Garmin's official Personal API into a SQLite archive on your machine and serves it to Claude, ChatGPT, Gemini, Cursor, VS Code, Codex and any other MCP client.

Unofficial. This project is not affiliated with, endorsed by, or supported by Garmin. Garmin and Garmin Connect are trademarks of Garmin Ltd. or its subsidiaries.

Not medical advice. The data comes from consumer wearables. This server reports numbers and trends; it does not diagnose anything.

Status

Alpha. Syncing, the local archive and the stdio MCP server work and are tested on macOS, Linux and Windows. ChatGPT can connect through OpenAI Secure MCP Tunnel; see the ChatGPT guide. An optional Streamable HTTP mode is also available for self-hosted deployments.

Related MCP server: garmin-givemydata

Quickstart

You need uv and a Garmin Personal API key.

  1. Install:

    uv tool install git+https://github.com/braydenabo/garmin-mcp
  2. Save your key. Create one in Garmin Connect, then paste it at the hidden prompt:

    garmin-connect-personal-mcp init
  3. Download your data (the last 90 days; later runs pick up where they left off):

    garmin-connect-personal-mcp sync --days-back 90
  4. Keep it up to date (optional, recommended). Garmin's API won't fill in old days on request, so a daily sync keeps your history complete:

    garmin-connect-personal-mcp schedule install
  5. Connect your assistant. Run it without --write first to see what it will change:

    garmin-connect-personal-mcp install-client claude-desktop --write

    Other clients: claude-code, cursor, vscode, gemini, codex. See docs/clients for each one.

    For ChatGPT, run the guided setup:

    garmin-connect-personal-mcp setup-chatgpt

    It checks prerequisites and configures a private Secure MCP Tunnel. OpenAI account/workspace setup is required; see the ChatGPT guide.

    On macOS, optional background startup keeps the tunnel running without an open terminal. Nothing is enabled automatically.

  6. Ask: "How did I sleep last night?"

What you can ask

  • "Summarize my training and recovery this week."

  • "Is my resting heart rate lower than three months ago?"

  • "How has my weekly running distance built up since July?"

  • "Anything unusual in my HRV lately?"

  • "Show me my sleep stages for the last two weeks."

Ask to see your data ("show me my last 7 days of sleep") and apps that support MCP Apps (Claude Desktop, claude.ai, ChatGPT, VS Code) display an interactive chart. Elsewhere you get the same numbers as text.

The assistant uses seven tools: garmin_describe_data, garmin_get_day, garmin_get_trend, garmin_list_activities, garmin_get_activity, garmin_show_chart and garmin_sync. See docs/tools.md. Missing data is reported as missing, never as zero.

Troubleshooting

Run:

garmin-connect-personal-mcp doctor

It checks your API key, Garmin access, the local archive, recent sync errors and the daily schedule, and says how to fix anything wrong. The report contains no API key, health data or home folder path, so you can paste it into an issue as is. Add --offline to skip contacting Garmin.

Privacy

  • You run it yourself, with your own key. There is no hosted service, and your data never passes through this project.

  • Your archive and API key stay on your machine, outside this repository.

  • The only network calls go to Garmin's own API, to sync. serve --read-only turns even that off.

  • Tools never return your name, profile photos or GPS coordinates, even though Garmin's records contain them, so a cloud assistant isn't told where you live.

Development

uv sync
uv run pre-commit install
uv run pytest

AGENTS.md has the commands and repo rules, for people and AI coding agents alike. To report a security problem, see SECURITY.md.

License

Apache-2.0

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    A
    maintenance
    Local-first MCP server that connects AI agents to your Garmin sleep, HRV, Body Battery, stress, training readiness and activities, keeping tokens on your machine.
    2
    42
    125 npm
    13
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    Downloads all your Garmin health and fitness data into a local SQLite database and exposes 45 MCP tools for AI analysis, enabling assistants to query sleep, training load, HRV, and more.
    48
    129 PyPI
    164
    AGPL 3.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    A local MCP server that exposes your Garmin Connect data—sleep, HRV, training readiness, workouts, and more—to any MCP-compatible AI assistant. Runs entirely on your machine and keeps your Garmin credentials private.
    MIT