Trackman Mcp

io.github.bjornj12由 GitHub 账号 bjornj12 发布v0.4.0更新于 Oct 24, 2026

Fetch your Trackman Golf stats (handicap, rounds, shots, club gapping) as MCP tools.

已验证STDIO仅桌面位置与生活数据与分析

概览

AI 生成的概览

以只读 MCP 工具获取你自己的 Trackman Golf 数据——差点、轮次、练习场次、击球数据与球杆间距,用于教学分析。

可以做什么
该服务器提供八个工具读取你的 Trackman Golf 账户数据:个人资料与差点、差点历史、活动列表、单次活动详情(含逐杆指标)、球场轮次、球杆间距和活动计数。另有工具处理登录状态、保存与比较本地 GameBook 轮次、执行确定性的场次分析、保存训练计划记忆,并生成动画 HTML 可视化。它还把教学技能作为 MCP 提示提供。数据工具只返回原始数据,解读交由技能完成。
适用场景
当你希望助手分析自己的 Trackman Golf 练习与轮次数据、诊断失分环节并长期跟踪练习计划时使用。适合已在 Trackman 记录场次、希望获得教练式反馈而不想自己看图表的高尔夫球手。
运行要求
通过 stdio 在本地运行,通常经由 uv 或 uvx,支持 macOS、Linux 或 Windows 上的 Claude Desktop 或其他 MCP 客户端。需要 Trackman Golf 账户。认证使用从已登录浏览器会话中获取的 bearer 令牌,可由登录命令缓存,或通过 TRACKMAN_TOKEN 环境变量提供。浏览器登录路径使用 Playwright;挥杆视频检查需要 ffmpeg。
安装前请注意
非官方项目,与 Trackman 无关联;它访问私有 Web API 并自动执行浏览器登录,可能与 Trackman 的服务条款冲突,请仅用于自己的账户。TRACKMAN_TOKEN 是会话的 bearer 凭据,约七天后过期,并缓存在本地令牌文件中。服务器读取账户数据,并写入本地计划、轮次和可视化文件。仅用于你有权访问的数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Trackman Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Golf Coach

A golf coach that trains you purely on your stats — round after round, closer to scratch.

Golf Coach logs into Trackman Golf with your own account and turns your stats — course rounds, practice sessions, shot-level launch-monitor data, club gapping, and handicap — into a diagnosis of where you're losing strokes, then hands you a specific practice plan with drills and YouTube links for your next session and grades your progress over time. It ships as an MCP server (the data tools) plus Claude skills (the coaching brain).

What you get

You don't read the charts — you get a coach. Point it at your Trackman data and it:

  • Finds where you're actually losing strokes — not "work on your irons," but "your driver has a two-way miss spreading landings across a ~115 m corridor — the speed is real, the face isn't yet."
  • Hands you one specific session — clubs, distances, reps, a Trackman target, and a drill with a real YouTube link. Stuck indoors? It has an at-home, no-ball routine too.
  • Grades your progress — it saves the plan and checks your next session against it, so you actually know whether it worked.
  • Shows you the picture — an animated view of your ball flight, the swing path behind the miss, and how close you are to each target.

[A Golf Coach session — driver-dispersion diagnosis with the swing-path cause, progress-vs-target bars, and drills to fix it]

A real session diagnosis: what's wrong, why, how close you are to your targets, and exactly what to practice next.

Name note. "Golf Coach" is the product name. The technical ids stay golf-coach (MCP server / plugin) and golf-coach (the published package), so existing installs keep working.

[!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)

  1. Download golf-coach.mcpb (from the latest release).
  2. Open Claude Desktop → Settings → Extensions, drag the file in (or double-click it), and click Install. Leave the token field blank.
  3. In a chat, say "log in to Trackman" → a browser window opens → sign in once with your Trackman email + password (Apple / Google sign-in works too). The window stays open until you finish — take your time, it won't close on its own. When you're done, tell Claude and it confirms you're signed in.
  4. 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.)

Platforms: macOS, Linux, and Windows — Claude Desktop runs the server via uv on all three, and the browser sign-in uses Playwright (cross-platform). One caveat on Windows: the local token/data files are protected by your Windows user profile (ACLs) rather than POSIX 0600 modes. The optional cron/launchd auto-refresh script is macOS/Linux only — on Windows use Task Scheduler, or just re-run the in-app "log in to Trackman" when the ~7-day token lapses.

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

text
/plugin marketplace add bjornj12/golf-coach/plugin install golf-coach@golf-coach

Installs the MCP server (run via uvx) and all ten 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:

json
{  "mcpServers": {    "golf-coach": { "command": "uvx", "args": ["golf-coach"] }  }}

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)

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, at your own pace — the window is driven by a background task, so it stays open until you're done and won't be closed out from under you (even a slow Apple/Google 2FA is fine). When you've finished, tell Claude and it confirms. The token caches at ~/.golf-coach/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)

bash
uv tool install "golf-coach[login]"golf-coach login              # opens a browser; sign in oncegolf-coach 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 auth(action="status") and replies with your name (never the token).

MCP tools

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

8 tools. trackman and gamebook each take an action (so the agent picks one tool with a mode rather than many near-identical tools).

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, source?)

Trackman data (read-only): trackman(action: profile | handicap | sessions | session | rounds | clubs | summary) — profile+handicap, handicap history, activity list, one activity in full (incl. shot-level metrics), course rounds, club gapping, activity counts.

Gamebook rounds (local, deterministic): gamebook(action: save | list | get | compare) — on-course rounds ingested from Golf GameBook screenshots, rolling last 5, coverage-aware (only score-per-hole is trusted).

Cross-source synthesis (local, deterministic): synthesize() — aligns Trackman's and GameBook's per-source Findings by skill area (no verdict; see CLAUDE.md's "Sources & normalization").

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.
SkillWhat it does
trackman-stats-analysisDiagnose weaknesses from the data
golf-coachingTurn the diagnosis into an actionable practice plan (visual-first; auto-grades progress)
drill-libraryCurated drills + vetted links — incl. at-home / no-ball drills — plus live search
golf-practice-at-homeBuild a daily no-ball routine for a diagnosed fault, animated per drill
at-home-practice-feedbackA single mobile-first drill card with built-in feedback: prop, validation checkpoint, budget tier, video
trackman-session-analyzerIngest + normalize recent sessions
gamebook-screenshot-analysisIngest GameBook round screenshots into a coverage-aware round record; scoring-led progress that feeds the coach
swing-video-checkFrame-by-frame visual check of a filmed swing (one angle per clip) against the current practice card
grip-checkGrade the grip (too weak / too strong) from two face-forward photos — the coach's gate before any new prescription
trackman-visualizerAnimate a diagnosis (or a single drill's mechanics) as an HTML artifact

To check a filmed swing: drop a clip named DATE_CLUB_ACTION.mp4 (e.g. 2026-07-17_driver_grip-reset.mp4) into the project in Claude Code and say "check my swing" — you get an angle-scoped checklist and one swing thought (needs ffmpeg).

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

Development

bash
uv venv && uv pip install -e '.[login,dev]'   # [login] = Playwright, [dev] = test/lint tools
golf-coach                       # run the MCP server (stdio)uv run python scripts/validate.py  # sanity-check stats coverage with your token
uv run pytest        # testsuv run ruff check    # lintuv run mypy          # type-check

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

License

MIT

来源:README.md,提交 06cf33f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.4.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分