Back to MCP directory
publicPublicdnsLocal runtime

Garmin Connect

一个用于与Garmin Connect API交互的服务器项目

article

README

🚀 佳明连接 MCP 服务器

该项目搭建了一个可与佳明连接 API 进行交互的服务器。借助此服务器,用户能够对自身的佳明数据(如锻炼记录、健康指标等)进行管理。

🚀 快速开始

🔍 先决条件

  • Python 3.x
  • 需通过 uv sync 安装必要的 Python 包
  • 拥有一个佳明连接账户
  • 借助 Python 佳明连接包与佳明连接 API 交互,可参考:https://github.com/cyberjunky/python-garminconnect

⚙️ 环境变量

需在根目录下,依据 .env_template 文件创建一个 .env 文件,并设置以下变量:

  • GARMIN_EMAIL
  • GARMIN_PASSWORD

🪙 生成佳明连接令牌

python example.py

🧐 使用 MCP 检查器

mcp dev garmin_mcp_server.py

📝 在 Claude Desktop 中注册 MCP 服务器

mcp install garmin_mcp_server.py

🚀 运行服务器

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client