# opengolfapi.org

> opengolfapi.org is an open-source MCP server for sports data. MCP server giving AI assistants free access to US golf course data and round tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, Self-hosted
- **Website:** https://opengolfapi.org/connect
- **Repository:** https://github.com/opengolfapi/mcp-server
- **MCP Registry name:** io.github.opengolfapi/mcp-server
- **Categories:** [sports data](https://ai-powered.com/categories/sports-data)
- **Listing updated:** 2026-11-21

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server --env OPENGOLFAPI_KEY='<OPENGOLFAPI_KEY>' -- npx -y @opengolfapi/mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@opengolfapi/mcp-server"
      ],
      "env": {
        "OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server --env OPENGOLFAPI_KEY='<OPENGOLFAPI_KEY>' -- npx -y @opengolfapi/mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@opengolfapi/mcp-server"]
env = { OPENGOLFAPI_KEY = "<OPENGOLFAPI_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@opengolfapi/mcp-server"
      ],
      "env": {
        "OPENGOLFAPI_KEY": "<OPENGOLFAPI_KEY>"
      }
    }
  }
}
```

## Tools

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_courses` (name suggests: reads): Search US golf courses by name, state or location.
- `get_course` (name suggests: reads): Full detail for one course including scorecard, tees and nearby places.
- `get_tees` (name suggests: reads): All tee sets for a course with ratings, slopes and yardages.
- `get_weather` (name suggests: reads): Live weather forecast for a course location.
- `get_climate` (name suggests: reads): Monthly climate normals and best months to play a course.
- `get_nearby` (name 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_shots` (name 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_conditions` (name suggests: reads): Live weather at a course for temperature, wind and precipitation.
- `create_tournament_invite` (name 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_competition` (name 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.

## 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.

## Alternatives

- [DiscGolfAPI MCP](https://ai-powered.com/mcp/discgolfapi-mcp): DiscGolfAPI MCP is a free MCP server for sports data.
- [GolfCore](https://ai-powered.com/mcp/golfcore): GolfCore is a freemium MCP server for sports data.
- [ProSide Golf](https://ai-powered.com/mcp/proside-golf): ProSide Golf is an MCP server for sports data.
- [Caddie MCP](https://ai-powered.com/mcp/caddie-mcp): Caddie MCP is an open-source MCP server for sports data.
- [Stymie Golf](https://ai-powered.com/mcp/stymie-golf): Stymie Golf is a free MCP server for sports data.
- [MCP Sport](https://ai-powered.com/mcp/mcp-sport): MCP Sport is an open-source MCP server for sports data.
- [ESPN Sports MCP by UnClick](https://ai-powered.com/mcp/espn-sports-mcp-by-unclick): ESPN Sports MCP by UnClick is an open-source MCP server for sports data.
- [Turnt Golf](https://ai-powered.com/mcp/turnt-golf): Turnt Golf is an MCP server for sports data.

---
Source: https://ai-powered.com/mcp/opengolfapi-org
