mcp-server
v3.5.1Golf for AI agents — every US course free, plus open contribution, identity & tournaments.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_courses
Search US golf courses by name, US state, or location (lat/lng + radius). Returns matching courses with location, type, par. Free, ODbL data.
| Parameter | Type | Description |
|---|---|---|
lat | number | Latitude for radius search (with lng) |
limit | number | Max results (default 10) |
lng | number | Longitude (with lat) |
query | string | Course name to search |
radius_mi | number | Radius in miles (default 25) |
state | string | 2-letter US state code |
get_course
Full detail for one course by id: scorecard (par + handicap per hole), tees, location, contact, nearby. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | OpenGolfAPI course id |
get_tees
All tee sets for a course with ratings, slopes, and yardages. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | OpenGolfAPI course id |
get_weather
Live weather forecast for a course location (Weather.gov). Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | OpenGolfAPI course id |
get_climate
Monthly climate normals + best months to play for a course. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | OpenGolfAPI course id |
get_nearby
Nearby hotels, restaurants, and other courses for a course. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | OpenGolfAPI course id |
log_shot
Contribute a golf shot to the open OpenShot standard (any launch monitor). Requires a key. Units: speed mph, angles deg, spin rpm, distance yds.
| Parameter | Type | Description |
|---|---|---|
azimuth | number | Horizontal launch (HLA), deg, +=right |
back_spin | number | Backspin, rpm |
ball_speed | number | Ball speed, mph |
carry | number | Carry, yds |
club | string | Club, e.g. '7i' or 'driver' |
course_id | string | Course id, if known |
device_model | string | Launch monitor, e.g. 'garmin_r10' |
hole | number | Hole number 1-18 |
launch_angle | number | Vertical launch (VLA), deg |
player_id | string | Your pseudonymous player id |
side_spin | number | Sidespin, rpm, +=right |
total | number | Total distance, yds |
submit_moment
Contribute an Open Connect event from any sensor/wearable/phone. The whole sensor spectrum rides through here — type-specific data goes in `payload`. Requires a key.
| Parameter | Type | Description |
|---|---|---|
moment_type * | string | Event kind. breadcrumb/tee/green=GPS points; pin/condition=course sightings; presence=live location (find fellow golfers); motion/swing/putt/biometric/club/score=sensor events. |
accuracy_m | number | GPS accuracy in meters |
course_id | string | Course id |
device | string | Source device, e.g. 'apple_watch', 'hackmotion', 'arccos' |
hole | number | Hole 1-18 |
lat | number | GPS latitude |
lng | number | GPS longitude |
note | string | Free-text detail |
payload | object | Type-specific sensor data. swing:{tempo,wrist_angle,plane,speed_profile}; putt:{speed,path,face,roll_pct,distance}; biometric:{heart_rate,exertion,steps}; club:{club,event,specs}; score:{strokes,putts… |
player_id | string | Your pseudonymous player id |
recorded_at | string | ISO 8601 timestamp the event happened |
session_id | string | Session id (one round/range session) |
get_my_shots
Read back your own contributed shots by player or session. Requires a key.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results |
player_id | string | Your player id |
session_id | string | Session id |
get_my_moments
Read back your own contributed moments (breadcrumbs, swings, putts, conditions…) by player, session, or type. Requires a key.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results |
player_id | string | Your player id |
session_id | string | Session id |
type | string | Filter to one moment_type |
propose_correction
Propose a fix to a course FACT field (phone, website, address, architect, year_built, course_name, city, postal_code, course_type). Our AI reviews it (approve/reject/needs_info). Requires a key. Geometry is not correctable here.
| Parameter | Type | Description |
|---|---|---|
course_id * | string | OpenGolfAPI course id |
field * | string | Which fact to correct |
proposed_value * | string | The corrected value |
evidence_url | string | A source URL backing the correction (improves approval odds) |
note | string | Why this is correct |
respond_to_review
Respond to a correction that came back as needs_info — add a source or explanation and re-open it for review. Requires a key.
| Parameter | Type | Description |
|---|---|---|
correction_id * | string | The correction id from propose_correction |
evidence_url | string | A source URL |
note | string | Your answer to the reviewer |
get_correction
Check the status/verdict of a correction you proposed (approved | rejected | needs_info | applied). Requires a key.
| Parameter | Type | Description |
|---|---|---|
correction_id * | string | The correction id |
how_to_build
The safe playbook for building on OpenGolfAPI and contributing data the right way. Call this once before contributing.
get_passport
FREE (public, no key). Any golfer's shareable record — display name, OpenGolf Member #, courses played, rounds, trophies, referrals. Show a player's golf resume in your app.
| Parameter | Type | Description |
|---|---|---|
player_id * | string | Golfer OpenGolf ID (ogid_...) |
record_referral
Record that one user referred another (a REFERRED_BY edge) — build YOUR app's invite loop on the shared graph, namespaced to your app. Needs a key.
| Parameter | Type | Description |
|---|---|---|
new_user * | string | Invitee player id |
referrer * | string | Referrer player id |
namespace | string | Your app namespace |
get_referrals
How many golfers a user has referred (+ the list) — the viral-loop metric for your app. Needs a key.
| Parameter | Type | Description |
|---|---|---|
player_id * | string | Referrer player id |
about
What OpenGolfAPI is and how to use this MCP server.
request_sign_in_code
Start "Sign in with OpenGolf" for a person: emails them a 6-digit code. No API key needed. They read you the code, then call complete_sign_in.
| Parameter | Type | Description |
|---|---|---|
email * | string | the person's email |
client_id | string | your app/agent name (default mcp-remote) |
complete_sign_in
Finish sign-in: exchange the 6-digit code for their OpenGolf ID + access token (use as X-OpenGolf-Token to act as them). Pass ref=<inviter player_id> when another player's invite brought them — it credits the referral.
| Parameter | Type | Description |
|---|---|---|
code * | string | 6-digit code |
email * | string | |
client_id | string | app/agent name |
ref | string | inviter's player_id (ogid_…) — always pass when known |
scopes | string | OAuth scopes (default identity) |
create_dev_key
Mint a developer API key bound to an OpenGolf ID (sign in first via request_sign_in_code → complete_sign_in). Returns the key ONCE. First-party rail: no OpenGolf ID, no key.
| Parameter | Type | Description |
|---|---|---|
email * | string | the SAME email used to sign in |
opengolf_token * | string | access_token from complete_sign_in |
name | string | key label |
sign_in_with_opengolf
Derive a user's OpenGolf ID deterministically from their email (sub = ogid_ + sha256(lower(trim(email)))[:16]) — one line, no redirect. For a VERIFIED session token use request_sign_in_code → complete_sign_in.
| Parameter | Type | Description |
|---|---|---|
email * | string | the user's email |
register_webhook
Register an https URL for your domain events (HMAC-signed deliveries, owner-scoped). Requires your key (Authorization: Bearer ogapi_…).
| Parameter | Type | Description |
|---|---|---|
url * | string | https endpoint |
events | array | event filter, default ['*'] |
create_tournament_invite
Create a shareable invite (QR/link); everyone who redeems it joins the SAME event/session. max_uses caps size (foursome=4). Requires key.
| Parameter | Type | Description |
|---|---|---|
event_id | string | Event id |
max_uses | number | Group cap (default 8) |
session_id | string | Session id |
ttl_seconds | number | Lifetime seconds |
join_tournament
Redeem an invite token — the player joins the group/event. Requires key.
| Parameter | Type | Description |
|---|---|---|
player_id * | string | Joining player id |
token * | string | Invite token |
display_name | string | Display name |
list_game_formats
Every OpenMatch scoring format. GROSS scoring is free & keyless.
score_round
Score a round in any format — GROSS, FREE, no key. players:[{player_id,holes:{"1":4}}] or entries:[{player_id,hole,value}]; holes:[{hole,par,stroke_index?}].
| Parameter | Type | Description |
|---|---|---|
format * | string | stroke|stableford|match_play|skins|scramble|best_ball|foursomes|nassau|quota|ryder_cup|ctp|longest_drive|greenies|bingo_bango_bongo|wolf|king_of_the_hill|order_of_merit |
entries | array | shot formats |
events | array | order_of_merit: [{event_id, standings:[{player_id, rank}]}] |
holes | array | |
players | array | stroke formats |
rules | object | |
teams | array |
plays_like
Effective distance — THE canonical "plays like" number (wind/elevation/temp/altitude), factors itemized. FREE, no key. Pair with get_conditions for live wind.
| Parameter | Type | Description |
|---|---|---|
yards * | number | |
altitude_ft | number | |
elevation_delta_ft | number | +uphill (free source: course holes_data[].elevation) |
shot_bearing_deg | number | |
temp_f | number | |
wind | object | {speed_mph, direction_deg} — from get_conditions |
get_conditions
LIVE weather at a course (temp/wind/precip, forecast-model, 15-min cache). FREE. Feeds plays_like.
| Parameter | Type | Description |
|---|---|---|
course_id * | string | Course UUID |
link_dev_key
Confirm your OpenGolf ID on an EXISTING key. Sign in first; pass that access_token + the key.
| Parameter | Type | Description |
|---|---|---|
api_key * | string | existing ogapi_ key |
opengolf_token * | string | access_token from complete_sign_in |
list_dev_keys
List the keys owned by your OpenGolf ID (prefixes only). Needs access_token from complete_sign_in.
| Parameter | Type | Description |
|---|---|---|
opengolf_token * | string | access_token |
get_profile
A player's public OpenGolf ID card — name, avatar, links, prefs. Free.
| Parameter | Type | Description |
|---|---|---|
player_id * | string | Player id (sub) |
update_profile
Edit a player's self-asserted profile fields (derived facts can't be set). Requires key (claimed players need their grant).
| Parameter | Type | Description |
|---|---|---|
player_id * | string | sub |
avatar_url | string | Avatar URL |
bio | string | Bio |
bucket_list | array | |
display_name | string | Name |
home_course_id | string | Home course |
get_awards
A player's OpenAwards — derived trophies + course passport. Requires key.
| Parameter | Type | Description |
|---|---|---|
player_id * | string | sub |
set_beacon
Broadcast a consented, EXPIRING presence/availability beacon (present|available|open). Requires key.
| Parameter | Type | Description |
|---|---|---|
mode * | string | present|available|open |
player_id * | string | sub |
course_id | string | Course |
note | string | Note |
region | string | Region |
ttl_seconds | number | TTL |
visibility | string | public|group|friends |
find_beacons
Discover ACTIVE public beacons (find-my-group / matchmaking). Requires key.
| Parameter | Type | Description |
|---|---|---|
course_id | string | Course |
mode | string | Mode |
region | string | Region |
record_consent
Record a player's consent grant (auditable, revocable). Requires key.
| Parameter | Type | Description |
|---|---|---|
player_id * | string | sub |
scopes * | array | e.g. ["corpus","share_scores"] |
granted_to | string | Grantee |
revoke | boolean | Revoke instead |
create_competition
Create a Competition (any OpenMatch format). Requires key.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name |
course_id | string | Course |
format_config | object | |
holes | array | |
type | string | Format |
list_competitions
List Competitions (free). Filter org/course/status.
| Parameter | Type | Description |
|---|---|---|
course | string | Course |
org | string | Org |
status | string | open|closed|finalized |
get_competition
A Competition + live gross standings (free).
| Parameter | Type | Description |
|---|---|---|
competition_id * | string | Competition id |
record_attempt
Record an Attempt (score or side-game value). Idempotent. Requires key.
| Parameter | Type | Description |
|---|---|---|
competition_id * | string | Competition |
player_id * | string | Player |
hole | number | Hole |
strokes | number | Strokes |
team_id | string | Team |
value | number | Side-game value |
finalize_competition
Finalize — run the kernel, store the gross Result. Requires key.
| Parameter | Type | Description |
|---|---|---|
competition_id * | string | Competition id |
broadcast_feed
OpenBroadcast P1 — ONE typed feed for a session: broadcast-worthy items (score/side_game/money/award/condition) in ascending (recorded_at, seq) order, each with template narration (headline<=60/ticker<=80). Money appears only via settled records. Replaces stitching moments+results+live_state. Requires key + session access (participant or compute).
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session id |
kinds | string | csv filter: score,side_game,money,award,condition,standing,system |
limit | number | max items (<=500) |
since | string | ISO cursor — items after this recorded_at |
get_handicap
OpenIndex (beta) — a player's estimated handicap computed from real, notarized rounds (every score stamped when it happened; verifiable by anyone). Not official — provable. Reading your OWN is free with your key; player_id must be the ogid_… form.
| Parameter | Type | Description |
|---|---|---|
player_id * | string | OpenGolf ID (ogid_…) |
get_showcase
A player's public showcase — the collectibles/records on their OpenGolf ID (og.* namespaces + course.*). Free, keyless: pass their ogid_. Tombstoned (revoked/expired) records hidden. The provable trophy wall.
| Parameter | Type | Description |
|---|---|---|
subject * | string | player OpenGolf ID (ogid_…) |
namespace | string | optional filter, e.g. og.collectibles/v1 |
verify_record
Verify a record/collectible against the OpenGolf Chain (a signed, hash-linked, Bitcoin-anchored transparency log). Returns the hash + whether it matches + the CLIENT-RECOMPUTE recipe (sha256 of the canonical record) + the anchor. Then you can go further, all keyless: pull a merkle inclusion proof (GET /chain/anchors/:id/inclusion?hash=), verify the checkpoint's RS256 signature against /.well-known/jwks.json, and resolve the Bitcoin (OpenTimestamps) anchor. Free. Trust no one — recompute the hash, check inclusion, resolve Bitcoin yourself.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | record UUID |
list_webhooks
List your active webhook subscriptions. Requires key.
remove_webhook
Deactivate one of your webhook subscriptions by id (audit row kept). Requires key.
| Parameter | Type | Description |
|---|---|---|
subscription_id * | string | Subscription id |
list_orgs
Public directory of verified orgs (free).
| Parameter | Type | Description |
|---|---|---|
type | string | course|tour|club|sponsor |
mint_asset
Mint an Asset (trophy/badge/stamp/coupon/membership) into the owner's trophy case + chain. Requires key.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name |
type * | string | trophy|badge|passport|coupon|membership|collectible |
metadata | object | |
org_id | string | Org |
owner | string | Recipient sub |
file_claim
File a Claim in the trust ledger (ownership/attestation/identity/record/correction). Requires key.
| Parameter | Type | Description |
|---|---|---|
claim_type * | string | Type |
subject * | string | e.g. course:<id> |
statement | string | Statement |
target_id | string | Target |
list_claims
List Claims (free). Filter claimant/subject/status.
| Parameter | Type | Description |
|---|---|---|
claimant | string | Claimant |
status | string | Status |
subject | string | Subject |
post_beta
Drop local course knowledge ("beta") on a hole — the AI-caddie's fuel. Requires key.
| Parameter | Type | Description |
|---|---|---|
course_id * | string | Course |
text * | string | The knowledge |
category | string | general|wind|green|hazard|tee|pin|approach |
hole | number | Hole |
get_beta
Read local course knowledge for a course/hole (free).
| Parameter | Type | Description |
|---|---|---|
course * | string | Course id |
hole | number | Hole |
get_my_chain
Export YOUR tamper-evident OpenGolf Chain + checkpoints. Requires key (own-read free).
verify_chain
Verify a Chain export OR walk the public transparency log (GET /chain/log?subject=), public + keyless — recompute the hash-links, verify each RS256 checkpoint signature against the JWKS, and resolve the Bitcoin anchors; reports tampering and where. The whole history (registry, per-course, master) is independently auditable — trust no one.
| Parameter | Type | Description |
|---|---|---|
export * | object | export from get_my_chain |