MCP Server logo

MCP Server

by opengolfapi

Golf for AI agents β€” every US course free, plus open contribution, identity & tournaments.

Install MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-148": {
      "command": "npx",
      "args": [
        "-y",
        "@opengolfapi/mcp-server"
      ]
    }
  }
}

Settings β†’ Developer β†’ Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passedβ€” started and listed 56 tools correctly (6d ago).

Overview

Tools56

What MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~5.3k tokens of context

Security & health

What it can reach and how reliably it runs β€” from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

8/8 checks healthy over the last 51d

What it can do

From the 56 tools this server returned when we ran it.

Can delete or modify data Β· 2Handles credentials Β· 5Makes network requests Β· 4Read-only tools Β· 54
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age189 days
Maintainers1

Observed 2026-10-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6h ago via OSV.dev Β· @opengolfapi/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars4Stargazers on the source repository.
npm downloads353Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed56Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

@opengolfapi/mcp-server

Golf, for AI agents β€” the open data layer for golf. Give your assistant every US golf course (16,845), free, and let it contribute back, sign players in, and run tournaments. Build a whole golf app from a prompt.

OpenGolfAPI is a community-owned commons. One free key, and your agent can read the world's golf data and write to four open standards.


The standards (the whole story)

OpenGolfAPI is built on open, composable protocols β€” implement one or all:

StandardWhat it isYou use it to…
OpenShotA CC0 shape for a launch-monitor shot β€” one schema every device maps to (Trackman, GSPro, Garmin, …).Ingest shots from any monitor/sim β†’ log_shot.
MomentsThe universal event ingest β€” any sensor signal (GPS breadcrumb, swing, putt, club, score, pin, condition, presence) as one flexible event.Send whatever signal you have β†’ submit_moment.
OpenJoinSigned, scoped, expiring join tokens. One QR/link β†’ everyone who redeems lands in the same round/tournament = the group, linked.Onboard a foursome or a whole tournament in one tap β†’ create_tournament_invite / join_tournament.
OpenGolf IDA portable golf identity β€” "Sign in with OpenGolf." One pseudonymous player_id across every app; handicap + history follow the player everywhere (engines fold by player_id, so a claimed identity's cross-app record just exists).Give a player one identity the whole ecosystem shares β†’ sign_in_with_opengolf.

The big idea: every shot, moment, and round contributed makes the shared commons better for everyone β€” a true two-way data layer. Read is free; contributing is how you earn your place in the standard.


What your agent gets

  • Read (free, no key): search & compare courses Β· full scorecards (par / handicap / yardages) Β· hazards Β· live weather & climate Β· nearby places Β· tee advice.
  • Contribute (free key): log_shot, submit_moment β†’ write to the open standards Β· get_my_shots β†’ read your own data back.
  • Identity & tournaments (free key): sign_in_with_opengolf (portable ID) Β· create_tournament_invite + join_tournament (run an event β€” handicaps optional, gross or net).

A great golf app is an afternoon, not a year.

Install (MCP client config)

config.json
{
  "mcpServers": {
    "opengolfapi": {
      "command": "npx",
      "args": ["-y", "@opengolfapi/mcp-server"],
      "env": {
        "OPENGOLFAPI_KEY": "<free, optional β€” enables contributing, identity & tournaments>"
      }
    }
  }
}

Get a free OPENGOLFAPI_KEY at https://courses.opengolfapi.org/api-keys. Read tools work with no key.

Claude Desktop: the config file is claude_desktop_config.json (Settings β†’ Developer β†’ Edit Config). Claude Code: claude mcp add opengolfapi -- npx -y @opengolfapi/mcp-server. Going keyless? Delete the whole env block β€” every read tool works without it (do NOT paste the placeholder as a key).

First prompt to try: "Find golf courses near Chicago and show me the hardest one."

Which score tool when: casual one-shot scoring β†’ score_round Β· leagues/tournaments (scores arrive over time, standings matter) β†’ create_competition β†’ record_attempt β†’ finalize_competition Β· streaming devices/live apps β†’ submit_moment. Canonical domain model: https://api.opengolfapi.org/api/v1/model

Tools

56 tools:

  • 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.
  • get_course β€” Full detail for one course by id: scorecard (par + handicap per hole), tees, location, contact, nearby. Free.
  • get_tees β€” All tee sets for a course with ratings, slopes, and yardages. Free.
  • get_weather β€” Live weather forecast for a course location (Weather.gov). Free.
  • get_climate β€” Monthly climate normals + best months to play for a course. Free.
  • get_nearby β€” Nearby hotels, restaurants, and other courses for a course. Free.
  • 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.
  • 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.
  • get_my_shots β€” Read back your own contributed shots by player or session. Requires a key.
  • get_my_moments β€” Read back your own contributed moments (breadcrumbs, swings, putts, conditions…) by player, session, or type. Requires a key.
  • 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.
  • 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.
  • get_correction β€” Check the status/verdict of a correction you proposed (approved | rejected | needs_info | applied). Requires a key.
  • 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.
  • 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.
  • get_referrals β€” How many golfers a user has referred (+ the list) β€” the viral-loop metric for your app. Needs a key.
  • 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.
  • 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= when another player's invite brought them β€” it credits the referral.
  • 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.
  • 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.
  • register_webhook β€” Register an https URL for your domain events (HMAC-signed deliveries, owner-scoped). Requires your key (Authorization: Bearer ogapi_…).
  • 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.
  • join_tournament β€” Redeem an invite token β€” the player joins the group/event. Requires key.
  • 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?}].
  • 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.
  • get_conditions β€” LIVE weather at a course (temp/wind/precip, forecast-model, 15-min cache). FREE. Feeds plays_like.
  • link_dev_key β€” Confirm your OpenGolf ID on an EXISTING key. Sign in first; pass that access_token + the key.
  • list_dev_keys β€” List the keys owned by your OpenGolf ID (prefixes only). Needs access_token from complete_sign_in.
  • get_profile β€” A player's public OpenGolf ID card β€” name, avatar, links, prefs. Free.
  • update_profile β€” Edit a player's self-asserted profile fields (derived facts can't be set). Requires key (claimed players need their grant).
  • get_awards β€” A player's OpenAwards β€” derived trophies + course passport. Requires key.
  • set_beacon β€” Broadcast a consented, EXPIRING presence/availability beacon (present|available|open). Requires key.
  • find_beacons β€” Discover ACTIVE public beacons (find-my-group / matchmaking). Requires key.
  • record_consent β€” Record a player's consent grant (auditable, revocable). Requires key.
  • create_competition β€” Create a Competition (any OpenMatch format). Requires key.
  • list_competitions β€” List Competitions (free). Filter org/course/status.
  • get_competition β€” A Competition + live gross standings (free).
  • record_attempt β€” Record an Attempt (score or side-game value). Idempotent. Requires key.
  • finalize_competition β€” Finalize β€” run the kernel, store the gross Result. Requires key.
  • 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).
  • 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.
  • 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.

Reviews

No reviews yet β€” be the first to share how it worked for you.

Frequently Asked Questions about MCP Server

opengolfapi/mcp-server is an MCP server that gives AI agents access to OpenGolfAPI’s open golf data and contribution tools. It supports searching 16,845 US golf courses, retrieving scorecards and tee information, checking weather, logging shots and moments, creating portable OpenGolf identities, and running tournaments through open standards.

Install it through an MCP client using `npx -y @opengolfapi/mcp-server`. Set the optional `OPENGOLFAPI_KEY` environment variable with a free key from courses.opengolfapi.org/api-keys to enable contributing, identity, and tournament features; read tools work without a key.

The server can search US golf courses by name, state, or location and retrieve course details, scorecards, tee sets, hazards, weather, nearby places, and tee advice. Course data includes information such as location, course type, par, hole handicaps, tee ratings, slopes, and yardages where available.

Use `score_round` for casual one-shot scoring. Use `create_competition`, `record_attempt`, and `finalize_competition` when scores arrive over time and standings matter for leagues or tournaments. Use `submit_moment` for streaming devices and live applications.

Related MCP servers

Add a badge to your READMEShow it’s listed β€” live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-server-148?style=directory)](https://allmcps.com/mcp/mcp-server-148)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-server-148"><img src="https://allmcps.com/api/badge/mcp-server-148?style=directory" alt="MCP Server on AllMCPs" /></a>