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, no terminal)
- Download
trackman-golf.mcpb(from the latest release). - Open Claude Desktop → Settings → Extensions, drag the file in (or double-click it), and click Install. Leave the token field blank.
- In a chat, say "log in to Trackman" → a browser window opens → sign in once with your Trackman email + password. That's it.
- Ask Claude: "What's my Trackman handicap?"
Nothing to install and no config to edit — Claude Desktop runs everything and opens the sign-in browser for you. (First sign-in may take a moment if it needs to fetch a browser. You may also see an "unsigned extension" note — 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.jsonon macOS), use the absolute path touvx— e.g./opt/homebrew/bin/uvx— because the app doesn't inherit your shellPATH. The.mcpbinstall above avoids this entirely.
Authentication (one-time)
The server needs to sign in to your Trackman account. Trackman has no public login API, so it captures a token from a real signed-in browser session once; it's then cached locally and refreshes itself. Your password is never seen or stored by the tool, and nothing leaves your machine.
Easiest — just ask Claude to log in (Claude Desktop / Claude Code)
Say "log in to Trackman." A browser window opens (an isolated profile, not
your normal Chrome); sign in once. The token caches at ~/.trackman-mcp/token.json
(mode 0600) and the MCP uses it automatically from then on. No terminal, no
token to copy — the extension fetches a browser itself if you don't have one.
Terminal alternative (CLI users)
uv tool install "trackman-mcp[login]"
trackman-mcp login # opens a browser; sign in once
trackman-mcp login --headless # silent refresh later (tokens last ~7 days)
scripts/install-refresh-schedule.sh # optional: auto-refresh twice weekly
Advanced — paste a token
portal.trackmangolf.com → DevTools → Network → a graphql request → copy
the Authorization: Bearer … value → paste into the extension's Trackman
token field (or set TRACKMAN_TOKEN). Tokens expire after ~7 days, so the
sign-in flows above are easier.
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 (visual-first; auto-grades progress) |
drill-library |
Curated drills + vetted links — incl. at-home / no-ball drills — plus live search |
golf-practice-at-home |
Build a daily no-ball routine for a diagnosed fault, animated per drill |
trackman-session-analyzer |
Ingest + normalize recent sessions |
trackman-visualizer |
Animate a diagnosis (or a single drill's mechanics) 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trackman_mcp-0.3.0.tar.gz.
File metadata
- Download URL: trackman_mcp-0.3.0.tar.gz
- Upload date:
- Size: 225.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df8864d754e9c4b155baf61a646e21cd081c906354028639b098a80d6c653852
|
|
| MD5 |
aaf8d5dcd0f16ae507b75495ca8820ca
|
|
| BLAKE2b-256 |
9b5fbed6f6026290164a758beddf35d44d292a87090517196fdbdfa5c18d74c5
|
Provenance
The following attestation bundles were made for trackman_mcp-0.3.0.tar.gz:
Publisher:
publish.yml on bjornj12/trackman-mcp-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trackman_mcp-0.3.0.tar.gz -
Subject digest:
df8864d754e9c4b155baf61a646e21cd081c906354028639b098a80d6c653852 - Sigstore transparency entry: 2010047871
- Sigstore integration time:
-
Permalink:
bjornj12/trackman-mcp-client@aeba1f658fdb10f4b900533219ae9906b63f88a1 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/bjornj12
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aeba1f658fdb10f4b900533219ae9906b63f88a1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file trackman_mcp-0.3.0-py3-none-any.whl.
File metadata
- Download URL: trackman_mcp-0.3.0-py3-none-any.whl
- Upload date:
- Size: 75.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b038c73ee91ca3e732b4a7ba30d2db77bc97a7545cf74d205a7e47faeaa7e56
|
|
| MD5 |
ea0224840c23e6e125b3c7c38cbc514e
|
|
| BLAKE2b-256 |
55c67ef8408a5bc2b62de0e20794b0594282c340fb0c079d6835787634e2459a
|
Provenance
The following attestation bundles were made for trackman_mcp-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on bjornj12/trackman-mcp-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trackman_mcp-0.3.0-py3-none-any.whl -
Subject digest:
7b038c73ee91ca3e732b4a7ba30d2db77bc97a7545cf74d205a7e47faeaa7e56 - Sigstore transparency entry: 2010047950
- Sigstore integration time:
-
Permalink:
bjornj12/trackman-mcp-client@aeba1f658fdb10f4b900533219ae9906b63f88a1 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/bjornj12
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aeba1f658fdb10f4b900533219ae9906b63f88a1 -
Trigger Event:
push
-
Statement type: