opengolfapi.org
MCP server giving AI assistants free access to US golf course data and round tools
opengolfapi.org is an open-source MCP server for sports data. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- API, CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can change data (2 tools)
- Version
- 3.5.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-server --env OPENGOLFAPI_KEY='<OPENGOLFAPI_KEY>' -- npx -y @opengolfapi/mcp-serverAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@opengolfapi/mcp-server"
],
"env": {
"OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@opengolfapi/mcp-server"
],
"env": {
"OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@opengolfapi/mcp-server"
],
"env": {
"OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@opengolfapi/mcp-server"
],
"env": {
"OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add mcp-server --env OPENGOLFAPI_KEY='<OPENGOLFAPI_KEY>' -- npx -y @opengolfapi/mcp-serverOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@opengolfapi/mcp-server"]
env = { OPENGOLFAPI_KEY = "<OPENGOLFAPI_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@opengolfapi/mcp-server"
],
"env": {
"OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@opengolfapi/mcp-server" ], "env": { "OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>" } } } }Or run: gemini mcp add -s user -e OPENGOLFAPI_KEY='<OPENGOLFAPI_KEY>' mcp-server npx -- -y @opengolfapi/mcp-server
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@opengolfapi/mcp-server" ], "env": { "OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@opengolfapi/mcp-server" ], "env": { "OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@opengolfapi/mcp-server" ], "env": { "OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "mcp-server": { "command": "npx", "args": [ "-y", "@opengolfapi/mcp-server" ], "env": { "OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@opengolfapi/mcp-server" ], "env": { "OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@opengolfapi/mcp-server" ], "env": { "OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@opengolfapi/mcp-server" ], "env": { "OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
OPENGOLFAPI_KEYFree key (courses.opengolfapi.org/api-keys). Optional — only for contributing/identity.
About opengolfapi.org
Connects an AI assistant to a golf data layer covering US courses, with read tools for course search, scorecards, tee details, weather, climate and nearby places that work without any key. A free API key unlocks contributing shots and moments, reading back your own data, signing players in and running tournaments.
The server is distributed as an npm package and runs over stdio inside MCP clients such as Claude Desktop and Claude Code. Scoring tools cover casual rounds as well as leagues and competitions that accumulate scores over time, and live conditions feed a distance-adjustment tool.
It suits developers building golf apps, course finders and round trackers, and anyone who wants an assistant that can answer course questions or score a game.
Tools this server provides (17)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 17 tools change data; 7 names don't say.
From the server's own tool labels and tool names; not verified by us.
- search_coursesName suggests: reads
- Search US golf courses by name, state or location.
- get_courseName suggests: reads
- Full detail for one course including scorecard, tees and nearby places.
- get_teesName suggests: reads
- All tee sets for a course with ratings, slopes and yardages.
- get_weatherName suggests: reads
- Live weather forecast for a course location.
- get_climateName suggests: reads
- Monthly climate normals and best months to play a course.
- get_nearbyName suggests: reads
- Nearby hotels, restaurants and other courses.
- log_shot
- Contribute a golf shot to the OpenShot standard.
- submit_moment
- Contribute an event from any sensor, wearable or phone.
- get_my_shotsName suggests: reads
- Read back your own contributed shots.
- score_round
- Score a round in any format, gross and free without a key.
- plays_like
- Effective distance adjusted for wind, elevation, temperature and altitude.
- get_conditionsName suggests: reads
- Live weather at a course for temperature, wind and precipitation.
- create_tournament_inviteName suggests: changes
- Create a shareable invite that puts redeemers into the same event.
- join_tournament
- Redeem an invite token to join a group or event.
- create_competitionName suggests: changes
- Create a competition in any scoring format.
- finalize_competition
- Finalize a competition and store the gross result.
- sign_in_with_opengolf
- Derive a user's OpenGolf ID from their email address.
What it does
- Keyless course data
- Search US courses and pull scorecards, tees, hazards and location details without an API key.
- Live weather and conditions
- Get forecasts, climate normals and live wind and temperature for a course location.
- Distance adjustment
- Calculate effective playing distance from wind, elevation, temperature and altitude.
- Shot and moment logging
- Send launch monitor shots and sensor events into the open standard with a free key.
- Tournament scoring
- Create invites, record attempts and finalize gross or net competitions for groups.
- Portable player identity
- Sign players in by email code and read back their profile and award records.
Good for
- Build a course finder or GPS rangefinder app from a single prompt
- Ask an assistant which course near a city is hardest or best in a given month
- Score a casual round or a multi-week league through natural conversation
- Log shots from a launch monitor and review your own session history
- Create a shareable invite so a foursome or tournament joins one event
Pricing
Open source
Free and open source; reading data needs no key and contributing uses a free key.
Prices change. Check opengolfapi.org before you buy.
opengolfapi.org FAQ
Do I need a key to use the course search tools?
No. Read tools such as course search, scorecards, weather and scoring with gross totals work without a key. A free key is needed for contributing data, identity and tournaments.
How do I install opengolfapi.org?
Add an entry to your MCP client configuration that runs npx with the @opengolfapi/mcp-server package. Claude Code users can run a single claude mcp add command.
Is the server open source?
The connector and server are MIT licensed. Course data is licensed under ODbL and shot data under CC0.
Which launch monitors work with opengolfapi.org?
Shot logging accepts any device that speaks the GSPro OpenConnect output, and the connector lists models such as Garmin R10, Rapsodo MLM2PRO, Uneekor, SkyTrak and Foresight.
Is opengolfapi.org free?
Yes. opengolfapi.org is open source, so you can use and self-host it for free.
How do I add opengolfapi.org to Claude Code?
Run this command in your terminal: claude mcp add mcp-server --env OPENGOLFAPI_KEY='<OPENGOLFAPI_KEY>' -- npx -y @opengolfapi/mcp-server
What are the best alternatives to opengolfapi.org?
The closest alternatives to opengolfapi.org are DiscGolfAPI MCP, GolfCore, ProSide Golf, Caddie MCP and Stymie Golf.
Where this comes from
- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.
