Skip to main content

MCP server that fetches a user's Trackman Golf stats (handicap, rounds, practice, shots, club gapping).

Project description

trackman-mcp

An MCP server that logs into Trackman Golf with your own account and exposes your stats — course rounds, practice sessions, shot-level launch-monitor data, club gapping, and handicap — as MCP tools. On top of that, a set of Claude skills act as your golf coach: they diagnose your weaknesses and hand you a specific practice plan with drills and YouTube links for your next session.

[!IMPORTANT] Unofficial. This project is not affiliated with or endorsed by Trackman. It talks to Trackman's private web API using a token from your own authenticated session, and automates a browser login on your behalf. This may conflict with Trackman's Terms of Service — use it on your own account, at your own risk. Never use it to access anyone else's data.

Design boundary

  • MCP server = raw data fetch + auth only. No opinions.
  • Skills = all the coaching (analysis, plans, drills).

See CLAUDE.md for the full architecture and auth/secret rules.

Install

Pick the path for how you use Claude. Each takes about two minutes, then do the one-time Authentication step.

🖥️ Claude Desktop — one-click (recommended)

  1. Download trackman-golf.mcpb (from the latest release).
  2. Open Claude Desktop → Settings → Extensions and drag the file in (or just double-click the downloaded .mcpb). Click Install.
  3. In the install dialog you can paste a Trackman token now, or leave it blank and sign in via the terminal once — see Authentication.
  4. Ask Claude: "What's my Trackman handicap?"

Claude Desktop runs everything for you — it manages Python and dependencies via uv, so there's nothing to install and no config file to edit. (You may see a note that the extension is unsigned / from outside the directory — that's expected for one installed from a file.)

⌨️ Claude Code — plugin (server and coaching skills)

/plugin marketplace add bjornj12/trackman-mcp-client
/plugin install trackman-golf@trackman-golf

Installs the MCP server (run via uvx) and all six coaching skills.

🔌 Other MCP clients (or Claude Desktop without the extension)

Requires uv (curl -LsSf https://astral.sh/uv/install.sh | sh). Add this to your client's MCP config:

{
  "mcpServers": {
    "trackman-golf": { "command": "uvx", "args": ["trackman-mcp"] }
  }
}

For Claude Desktop's manual config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS), use the absolute path to uvx — e.g. /opt/homebrew/bin/uvx — because the app doesn't inherit your shell PATH. The .mcpb install above avoids this entirely.

Authentication (one-time)

However you installed it, the server needs a token for your Trackman account. Trackman has no public login API, so you capture a token from a real signed-in session once; it's then cached locally and can refresh itself. Your password is never seen or stored by the tool, and nothing leaves your machine.

Recommended — sign in once (stays fresh on its own)

uv tool install "trackman-mcp[login]"
trackman-mcp login            # opens a browser; sign in with your Trackman email + password

This caches the token at ~/.trackman-mcp/token.json (mode 0600) — every install (Desktop, Code, CLI) reads it. Keep it fresh automatically (tokens last ~7 days):

scripts/install-refresh-schedule.sh     # twice-weekly headless refresh (macOS launchd / Linux cron)
# …or manually any time:
trackman-mcp login --headless

No Google Chrome? The flow falls back to Playwright's bundled Chromium — run playwright install chromium once. Windows: schedule scripts/refresh-token.sh via Task Scheduler.

No-terminal alternative — paste a token

portal.trackmangolf.com → DevTools → Network → click a graphql request → copy the Authorization: Bearer … value, then:

  • Desktop extension: paste it into the Trackman token field of the install dialog.
  • Manual config: add "env": { "TRACKMAN_TOKEN": "eyJ…" } to the server entry.

Heads-up: tokens expire after ~7 days, so you'll re-paste weekly — the sign-in-once path above avoids that.

Verify it worked

Ask Claude "Am I signed in to Trackman?" — it runs the authenticate tool and replies with your name (never the token).

MCP tools

All tools return raw data only; the skills interpret it.

12 tools. The CRUD clusters take an action (so the agent isn't choosing among many near-identical tools); the data reads stay discrete.

Setup: setup — one call returns an always-on coach system prompt (for a Project), the skills as upload-ready files, and per-client steps. There's a matching setup prompt in the picker.

Auth: auth(action: status | login)

Data (read-only): get_profile · get_handicap · list_sessions · get_session (full detail incl. shot-level metrics) · get_course_rounds · get_club_stats · get_activity_summary

Session analysis (local, deterministic): session_analysis(action: analyze | get | list)

Training-plan memory: training_plan(action: save | next | list | done | verify)

Visualization: build_visualization (self-contained animated HTML artifact)

See CLAUDE.md for the full table and backing GraphQL.

Skills (coaching brain)

The skills under skills/ are delivered two ways:

  • Claude Code: installed automatically with the plugin.
  • Any MCP client (incl. Claude Desktop): the server serves them as MCP prompts, so they show up in your client's prompt picker — no separate install.
Skill What it does
trackman-stats-analysis Diagnose weaknesses from the data
golf-coaching Turn the diagnosis into an actionable practice plan
drill-library Curated drills + vetted YouTube links, plus live search
trackman-session-analyzer Ingest + normalize recent sessions
trackman-visualizer Animate a diagnosis as an HTML artifact

(trackman-api-discovery is a project/dev skill and isn't served as a prompt.)

Development

uv venv && uv pip install -e '.[login,dev]'   # [login] = Playwright, [dev] = test/lint tools

trackman-mcp                       # run the MCP server (stdio)
uv run python scripts/validate.py  # sanity-check stats coverage with your token

uv run pytest        # tests
uv run ruff check    # lint
uv run mypy          # type-check

Releasing (PyPI + MCP Registry + the Desktop .mcpb) is one command — scripts/release.sh patch — see PUBLISHING.md.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trackman_mcp-0.2.1.tar.gz (220.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trackman_mcp-0.2.1-py3-none-any.whl (68.2 kB view details)

Uploaded Python 3

File details

Details for the file trackman_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: trackman_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 220.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trackman_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3182c589df8cf5756ec012ba93c640eb527835a5babb5a67dee3cf06a6dbabb1
MD5 e5a3a9f38a7fc45d651ae3888732f837
BLAKE2b-256 f928b8439e93af93df0b27311d3781191ba3dc01fab9b4d009da10acf57d1b59

See more details on using hashes here.

Provenance

The following attestation bundles were made for trackman_mcp-0.2.1.tar.gz:

Publisher: publish.yml on bjornj12/trackman-mcp-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trackman_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: trackman_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 68.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trackman_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0df60be0d3752f920a1e9dd5e24a50b27c41b059b536818e3ae827bcdc4e7755
MD5 b7fa15a2224a0a3d4059232a5c2ffe84
BLAKE2b-256 e09ea70f5613717405e684cba69954b4d492f13ad654fe4ce45cdc5f74e4a94e

See more details on using hashes here.

Provenance

The following attestation bundles were made for trackman_mcp-0.2.1-py3-none-any.whl:

Publisher: publish.yml on bjornj12/trackman-mcp-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page