This is a Python server implementing the Model Context Protocol (MCP) for connecting to Garmin services. It allows you to integrate Garmin Connect authentication with compatible applications.
To install the Garmin MCP server, follow these steps:
git clone https://github.com/guaidaoyiyoudao/garmincn-mcp.git
cd garmincn-mcp
uv build
uv tool install dist/garmincn-mcp-0.0.1.tar.gz
The MCP server requires Garmin Connect credentials to authenticate with Garmin services. When using with applications like Cherry Studio, you'll need to configure the following environment variables:
EMAIL
: Your Garmin Connect login email addressPASSWORD
: Your Garmin Connect passwordOnce you've installed the MCP server, you can connect it to compatible MCP clients by configuring them to use your server. The client will use the credentials you've provided to communicate with Garmin Connect services.
After installation, the server should be available to MCP-compatible applications automatically. No additional configuration is needed beyond providing your Garmin credentials.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "garmincn-mcp" '{"command":"garmincn-mcp","args":[],"env":{"EMAIL":"${input:email}","PASSWORD":"${input:password}"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"garmincn-mcp": {
"command": "garmincn-mcp",
"args": [],
"env": {
"EMAIL": "${input:email}",
"PASSWORD": "${input:password}"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"garmincn-mcp": {
"command": "garmincn-mcp",
"args": [],
"env": {
"EMAIL": "${input:email}",
"PASSWORD": "${input:password}"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect