Connect Garmin to Claude Code

Set up garmlink in

Claude Code reaches garmlink as a remote MCP server over HTTP. One command adds it, one sign-in links your account, and Claude Code answers from your real, synced Garmin history — next to your code, your scripts and your notes.

Before you start You need a garmlink account with your Garmin connected (do that on the Connection screen), and Claude Code installed, signed in with a paid Claude plan or an Anthropic Console account.
  1. Connect your Garmin account

    On the Connection screen, sign in to Garmin Connect with your email and password (used once, never stored), complete the verification code if Garmin asks for one, and wait for the status to turn Connected. garmlink starts syncing your activities, sleep, HRV and training metrics right away.
  2. Add garmlink to Claude Code

    In a terminal, run:
    claude mcp add --transport http --scope user garmlink https://api.garmlink.ai/mcp

    --scope user makes garmlink available in every project; leave it out to add it to the current project only.

  3. Sign in to garmlink

    Start claude, type /mcp, pick garmlink and choose Authenticate. Your browser opens on garmlink: sign in, then press Authorize.
  4. Ask your first question

    Then ask in plain language, in the tool's chat or agent panel:
    • “How did I sleep this week?”
    • “Summarize my last five runs.”
    • “Is my training load trending up or down this month?”
Troubleshooting
  • claude -p doesn't reach garmlink. Runs without a session (claude -p, the Agent SDK) cannot open the sign-in page: sign in once from /mcp in an interactive session, and they reuse it.
  • It asks for an API key or a token. garmlink needs none: leave every key, header and client secret field empty. You sign in through your browser, with your garmlink account.
  • Data looks empty or stale. Check where the sync stands on the Connection screen.

Using another assistant? See all the setup guides. Curious what garmlink can read? Browse the tools reference. Want to see real answers first? Read twelve examples from a real account.