SuperAPIAI Directory

garmin-documentation-mcp-server

github.com · AI coding

Offline Garmin Connect IQ SDK documentation with search and API examples.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

Purpose

Garmin Documentation MCP Server is a server based on MCP (Model Context Protocol), designed to provide AI assistants such as Claude with offline access to the complete documentation ecosystem of the Garmin Connect IQ SDK 8.2.3. It solves the problem of developers being unable to consult SDK documentation when there is no network connection, while also providing a more intelligent documentation retrieval and Q&A experience through AI assistants.

Main Capabilities

  • Fully offline: Uses local documentation, no internet connection required.
  • Complete documentation coverage: Includes API documentation, programming guides, device references, FAQs, and visual resources, totaling 1,407+ files.
  • Enhanced search: Deep semantic search, supporting fuzzy matching and cross-references.
  • Fast response: Local parsing and indexing, returning results instantly.
  • Accurate version mapping: Correctly maps API Level to SDK version, resolving common confusion.
  • Device-specific information: Hardware capabilities, memory limits, round device support, etc.
  • Programming guides: Getting started tutorials, debugging, testing, and best practices.
  • FAQ and troubleshooting: Common issues such as fonts, memory, graphics, etc.

New Features in v1.0.1

  • Fixed API Level confusion: Now correctly displays API Level 4.2.0 (approximately equivalent to SDK 6.x+), instead of misleading version information.
  • Fixed module functions: Critical bug fix, now correctly finds all module-level functions (such as Math.stdev, Cryptography.createPublicKey).
  • Added 3 tools: Device reference search, programming guides, FAQ search.
  • Enhanced coverage: Now indexes programming guides, device documentation, FAQ resources, and personality libraries.
  • Better search results: Includes guide content in the main search, with comprehensive cross-references.

Usage

Installation

  1. Clone or download this repository.
  2. Copy the Garmin Connect IQ SDK 8.2.3 documentation to the project root directory's docs/ folder.
  3. Install dependencies:
npm install
  1. Build the project:
npm run build

Note: On the first run, all documentation files will be automatically parsed and indexed, which may take a few seconds; subsequent runs will complete instantly.

Running the Server

Development mode:

npm run dev

Production mode:

npm start

Configuring Claude Code (Recommended)

Use the Claude Code CLI to add the MCP server:

claude mcp add garmin-docs <path-to-server>

Verify the installation:

claude mcp list

Configuring Claude Desktop

Add the server to the Claude Desktop configuration file:

  • macOS:~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows:%APPDATA%\Claude\claude_desktop_config.json

Replace /path/to/garmin-documentation-mcp-server with the actual installation path.

Available Tools

  • search_garmin_docs: Performs enhanced search across modules, classes, methods, properties, constants, and guides. Parameters:query(required),category(optional, filter type "module", "class", "function", or "all"). v1.0.1 newly includes programming guides, device documentation, and FAQs, and correctly maps API Level to SDK version.
  • get_module_details: Retrieves detailed information for a specific module along with corrected version information. Parameters:module_name(required, such as "System", "Activity", "WatchUi"). Improvement: Displays API Level 4.2.0 (≈ SDK 6.x+) instead of the confusing raw API level.
  • get_class_details: Retrieves detailed information for a specific class along with the correct SDK version context. Parameters:class_name(required),module_name(optional).
  • list_modules: Lists all available Garmin Connect IQ modules along with their descriptions and statistics.
  • get_api_examples: Retrieves code examples for specific features, including SDK version-specific syntax. Parameters:topic(Required, e.g. "activity monitoring", "bluetooth", "watchface").
  • search_device_reference (new in v1.0.1): Search device-specific reference documentation and hardware capabilities. Parameters:query(Required),device_type(Optional, e.g. "watch", "bike", "golf"). Purpose: Find memory limits, round device support, hardware-specific features.
  • get_programming_guide (new in v1.0.1): Access programming guides and tutorials for Connect IQ development. Parameters:topic(Required, e.g. "getting started", "app types", "debugging", "testing"). Covers: getting started guides, app development tutorials, compiler documentation, debugging tips.
  • search_faq (new in v1.0.1): Search frequently asked questions and troubleshooting information. Parameters:query(Required). Topics include: font rendering, memory management, graphics optimization, music control, map integration, etc.

Example Usage with Claude

After configuration, you can ask Claude questions such as:

Core API questions:

  • "Search for bluetooth functionality in Garmin Connect IQ"
  • "Show me details about the System module"
  • "Get examples for creating a watch face"
  • "What classes are available in the Activity module?"
  • "List all available modules"
  • "Find methods related to heart rate monitoring"

New capabilities in v1.0.1:

  • "Are complications available in SDK 7?" ✅ Can now answer correctly through proper version mapping
  • "How do I use stdev function?" ✅ Can now find Math.stdev with complete examples
  • "Show me createPublicKey usage" ✅ Can now find Cryptography.createPublicKey with examples
  • "How do I get started with Connect IQ development?"
  • "What are the memory limits for different Garmin devices?"
  • "How do I support round devices in my app?"
  • "What's the difference between API Level and SDK version?"
  • "How do I troubleshoot font rendering issues?"
  • "Find device reference for watch memory capabilities"

Management commands (Claude Code) do not yet provide a specific command list.

Documentation Coverage

API Modules (33 modules, 282 classes, 27+ module functions)

The server provides access to all major Garmin Connect IQ modules, including:

  • Activity: Activity recording and monitoring
  • ActivityMonitor: Daily activity metrics
  • ANT: ANT wireless communication
  • Application: Application framework and lifecycle
  • BluetoothLowEnergy: BLE communication
  • Complications: Watch face complications (✅ available in SDK 6.x+, not the previously confusing 4.2+)
  • Cryptography: Encryption, key generation, createPublicKey(), randomBytes()
  • Graphics: Drawing and rendering, createBufferedBitmap(), createColor()
  • Math: Statistical functions such as stdev(), mean(), variance(), as well as trigonometric functions
  • Position: GPS and location services
  • Sensor: Device sensor access
  • System: Core system functions (including round device detection)
  • WatchUi: User interface components
  • and 20+ other modules...

Additional Resources (1,407+ files in total)

  • Programming Guide: Getting started tutorials, app types, debugging, compiler documentation
  • Device Reference: Hardware specifications, memory limits, capabilities for all supported devices
  • FAQ Resources: Troubleshooting guides for common issues such as fonts, graphics, memory, music, maps, etc.
  • Personality Library: UI patterns, icons, colors, confirmations, etc., for consistent app design
  • UX Guidelines: User experience best practices and design patterns

Version Accuracy

  • ✅ Major issue fixed: API Level confusion resolved
  • ✅ Correct mapping: API Level 4.2.0 correctly maps to ≈ SDK 6.x+
  • ✅ Confirmed SDK 7 support: Complications, activity information, and round devices are all correctlysupported

Applicable Scenarios

  • When developing Garmin Connect IQ apps, you need to quickly look up SDK documentation.
  • Developing in an offline environment.
  • Getting code examples, module details, and API usage through an AI assistant.
  • Troubleshooting device-specific issues, such as memory limits and round screen support.
  • Learning Connect IQ development, looking up getting started guides and best practices.

Limitations

  • No clear information is currently provided regarding pricing, fees, platform compatibility, performance guarantees, etc.
  • Requires the Garmin Connect IQ SDK 8.2.3 documentation to already be available locally and correctly placed in the docs/ folder.
  • The first run requires indexing time.
  • Depends on the MCP protocol and a compatible AI assistant (such as Claude).
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools