OpenGolfAPI MCP Server
OfficialThis server lets you query a dataset of 14,708 US golf courses (ODbL licensed) through an MCP interface for AI agents.
Search for golf courses (
search_courses): Find courses by name, state, or geographic location (lat/lng with a configurable radius)Get detailed course info (
get_course): Retrieve full course records including scorecards with par and handicap index per holeRetrieve tee set data (
get_tees): Get all tee sets for a course, including ratings, slopes, and yardagesAccess climate data (
get_climate): Get monthly climate normals (temperature, precipitation, playability) for a course's locationFind nearby points of interest (
get_nearby): Discover hotels, restaurants, and airports within ~20 miles of a courseLearn about the dataset (
about): Get metadata including dataset size, license, contribution guidelines, and maintainer contact info
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenGolfAPI MCP Serversearch for courses near Denver, CO"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@opengolfapi/mcp-server
Open MCP server for AI agents to query the OpenGolfAPI dataset (14,708 US golf courses). All data is ODbL licensed and open.
All requests go through the public API at https://api.opengolfapi.org. With an optional OPENGOLFAPI_KEY, requests authenticate as your tier and unlock higher rate limits.
Install
npm install -g @opengolfapi/mcp-serverRelated MCP server: Jinko Hotel Booking MCP Server
Configure
Add to your MCP client config:
{
"mcpServers": {
"opengolfapi": {
"command": "opengolfapi-mcp"
}
}
}API keys (optional)
Optional: higher rate limits with a free key
Without a key, the MCP server uses anonymous access (1,000 requests/day per IP).
Get a free key at https://courses.opengolfapi.org/api-keys (~30 seconds, no card), then set:
export OPENGOLFAPI_KEY=ogapi_yourkeyhereIn Claude Desktop's MCP config, add the env var to the server entry:
{
"mcpServers": {
"opengolfapi": {
"command": "npx",
"args": ["@opengolfapi/mcp-server"],
"env": { "OPENGOLFAPI_KEY": "ogapi_yourkeyhere" }
}
}
}Donor tiers raise the daily limit further (10k / 50k / 250k / 1M).
Tools
search_courses(query, state?, lat?, lng?, radius_mi?)— find courses by name, state, or locationget_course(id)— full course record with scorecard (par + handicap index per hole)get_tees(id)— all tee sets with ratings, slopes, and yardagesget_climate(id)— monthly climate normals for the course locationget_nearby(id)— nearby POIs (hotels, restaurants, airports)
Telemetry
This server reports unhandled errors to the OpenGolfAPI Sentry project by default so the maintainers can catch bugs that hit real users. No request bodies, no API keys, no PII — only stack traces of exceptions thrown inside the server process. Quotas and sampling live in the Sentry project config; the DSN is an ingest endpoint, not a secret.
To opt out completely:
OPENGOLFAPI_DISABLE_TELEMETRY=1 npx @opengolfapi/mcp-serverTo send to your own Sentry project instead (overrides the default DSN):
SENTRY_DSN=https://your-dsn@sentry.io/... npx @opengolfapi/mcp-serverExample MCP config:
{
"mcpServers": {
"opengolfapi": {
"command": "npx",
"args": ["@opengolfapi/mcp-server"],
"env": {
"OPENGOLFAPI_KEY": "ogapi_yourkeyhere"
}
}
}
}License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/opengolfapi/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server