MCP Server
Authentication
The MCP server uses your GolfCourseAPI API key. The same key, plan and daily quota apply as when you call the REST API directly.
Send your API key
Every request to https://mcp.golfcourseapi.com/mcp must include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
- Include the word
Bearerand a single space before the key. Most client setup screens send the header value exactly as you type it. - Your client sends the header for you once it's configured. See Connect a client.
- The MCP server doesn't support OAuth sign-in yet. That's why ChatGPT, which requires OAuth, can't connect.
A request with a missing or malformed key is rejected before any tool runs:
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer realm="golfcourseapi"
{"error":"send your golfcourseapi API key as 'Authorization: Bearer <key>'"}A well-formed key that's wrong, or was rotated away, gets past this check. The first tool call then fails with "The golfcourseapi API key is missing or invalid."
Get or rotate your key
You get your key when you sign up. We store only a hash of it, so we can't show it to you again. If you've lost it, or think it's been exposed, rotate it on the API Usage page. The old key stops working immediately, so update every MCP client and app that uses it.
Keeping your key safe
- The MCP server doesn't store your key. It forwards the key to the API with each tool call. Its access logs drop request headers, so the key is never written to them.
- Keep the key out of shared config files. Prefer clients that prompt for it or read it from an environment variable, like VS Code and Codex. Never commit a key to a repository.
- Shared connectors share a key. On Claude Team and Enterprise, the key an Owner enters for a custom connector is used for everyone in the organization. All their tool calls count toward that key's quota.
Quota and plan limits
The MCP server calls the GolfCourseAPI on your behalf, so every tool call is one request against your daily quota. MCP requests and direct API requests share the same limit:
| Plan | Requests per day | Tools available |
|---|---|---|
| Free | 35 | search_courses, get_course |
| Pro | 10,000 | All three tools |
| Enterprise | 100,000 | All three tools |
- What counts: each
search_courses,get_courseandfind_courses_nearcall that reaches the API, including ones that find nothing (a search with no results, an unknown course id) or fail validation (an out-of-range radius). - What doesn't count: connecting, listing tools, requests rejected for a bad key,
find_courses_nearcalls rejected because your plan doesn't include it, and calls rejected once you're over your limit. - Resets: quotas reset at midnight UTC.
- When you hit the limit: tool calls fail with "golfcourseapi rate limit hit: daily usage limit exceeded" and the time it resets. The assistant sees the message and can tell you. Upgrade on the Account page for a higher limit.
- Burst limit: separately from the daily quota, the API allows about 3 requests per second per user. An assistant making many calls at once may briefly see "rate limit exceeded". Retrying a moment later works.
See your usage, including requests made through MCP, on the API Usage page.
Something not working the way this page describes? .