Metadata-Version: 2.4
Name: garmin-mcp-gt
Version: 0.1.0
Summary: Garmin Connect MCP server — exposes health and activity data as tools for Claude
Project-URL: Homepage, https://github.com/JamesWoolfenden/garmin-mcp-gt
Project-URL: Issues, https://github.com/JamesWoolfenden/garmin-mcp-gt/issues
License: MIT License
        
        Copyright (c) 2026 James Woolfenden
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: claude,cycling,fitness,garmin,health,mcp
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Internet
Requires-Python: >=3.10
Requires-Dist: garminconnect<0.4,>=0.3.2
Requires-Dist: mcp>=1.0.0
Provides-Extra: dev
Requires-Dist: ruff; extra == 'dev'
Description-Content-Type: text/markdown

# garmin-mcp-gt

Garmin Connect MCP server — exposes your Garmin health and activity data as tools for Claude.

## Tools

| Tool | Description |
|------|-------------|
| `get_today_stats` | Steps, distance, calories, active time, resting HR, body battery |
| `get_recent_activities` | Recent cycling/running activities (de-duplicated) |
| `get_activity_detail` | Detailed metrics, HR zones, and power zones for a specific activity |
| `get_sleep` | Sleep score, stages, SpO2, and stress for any night |
| `get_hrv` | Overnight HRV readings for the last N days |
| `get_weekly_trends` | Weekly cycling summary with km, hours, and avg power |

## Requirements

- Python 3.10+
- A [Garmin Connect](https://connect.garmin.com) account

## Installation

```bash
pip install garmin-mcp-gt
```

Or with [uv](https://docs.astral.sh/uv/):

```bash
uv tool install garmin-mcp-gt
```

## Setup

Authenticate once to save your session tokens:

```bash
garmin-setup
```

You will be prompted for your Garmin email and password. Tokens are saved to `~/.garmin_tokens/` by default and refreshed automatically.

## Claude Desktop configuration

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "garmin": {
      "command": "garmin-mcp-gt"
    }
  }
}
```

On macOS the config file is at:
`~/Library/Application Support/Claude/claude_desktop_config.json`

On Windows:
`%APPDATA%\Claude\claude_desktop_config.json`

### Custom token directory

```json
{
  "mcpServers": {
    "garmin": {
      "command": "garmin-mcp-gt",
      "env": {
        "GARMIN_TOKEN_DIR": "/path/to/tokens"
      }
    }
  }
}
```

## Environment variables

| Variable | Default | Description |
|----------|---------|-------------|
| `GARMIN_TOKEN_DIR` | `~/.garmin_tokens/` | Directory where session tokens are stored |

## License

MIT
