MCP server
Golf MCP Server for Claude, Cursor and ChatGPT
The golf MCP server is a hosted, read-only connector at https://mcp.sportsdatahq.com/mcp/golf. It gives Claude, ChatGPT and Cursor 16 tools: PGA Tour leaderboards, hole-by-hole scorecards, course data and player ratings since 2001, plus the LPGA, LIV, DP World Tour and Korn Ferry Tour. A free key brings 1,000 credits a month.
What your agent can do with it
Golf questions tend to start with a name and end with a number that only makes sense against the field. A 68 is a great round on one course on one day and an ordinary one on another. This server is built around that. Every round carries a strokes-versus-field figure: the field's average score on the same course that round, minus the player's score, so positive is better. A second version, adjusted for how strong the field was, feeds a rating that weights a player's recent rounds more heavily. When your agent asks who is playing best, it gets one number per player that already accounts for who they played against.
The raw material is deep. PGA Tour leaderboards, rounds and hole-by-hole scores run from 2001, and the Korn Ferry Tour has holes for every season from 2007. A single get_leaderboard call returns every player's finish, rounds, money and FedEx Cup points for one tournament. get_scorecard returns one player's tournament hole by hole with strokes, par, yardage and the result on each hole. get_course shows how each hole of a course played: scoring average, birdie and bogey rates and a difficulty rank. get_player_stats turns a season into birdies and bogeys per round, par 3, par 4 and par 5 averages, driving distance and accuracy, greens in regulation and putting.
Comparison tools do the arithmetic on the server. get_head_to_head lists the tournaments two players both entered, who finished ahead, and a round-by-round count, with a projection from today's ratings. get_course_history collapses one player's every start at one tournament or one course. get_leaders ranks a season on a chosen stat and reports each player's sample size, so a three-round hot streak does not top the table.
The same tools work for the LPGA, LIV, the DP World Tour and the Korn Ferry Tour through the league argument. Odds are narrow on purpose: the winner prices of the four men's majors, returned as information about the market. The server also holds a pre-tournament forecast for upcoming PGA Tour events, with each player's chance to win, finish in the top 5, 10 or 20, and make the cut.
You can connect to either server. The SportsDataHQ route, https://mcp.sportsdatahq.com/mcp/golf, takes the cross-sport key and gives 1,000 free credits a month. BirdieAPI's own server, https://mcp.birdieapi.com/mcp, takes a golf-only key and serves the same tool names.
Connect it to your client
You need one thing: a free SportsDataHQ key from app.sportsdatahq.com, with 1,000 credits a month across every sport. (BirdieAPI's own server, https://mcp.birdieapi.com/mcp, takes a BirdieAPI key instead and uses the same config shapes.) Claude and ChatGPT connectors sign you in with OAuth the first time a tool runs, so no key ever sits in a chat. Command-line and editor clients send the key in an x-api-key header instead. Connecting and listing tools cost nothing; only a data call spends credits.
Claude Code
claude mcp add --transport http sportsdatahq-golf https://mcp.sportsdatahq.com/mcp/golf --header "x-api-key: YOUR_API_KEY"Run /mcp inside Claude Code to confirm the server shows as connected. If you leave the header off, /mcp walks you through an OAuth sign-in instead.
Claude.ai and Claude Desktop
Open Customize, then Connectors (older versions: Settings, Connectors), choose Add custom connector, name it sportsdatahq-golf and paste https://mcp.sportsdatahq.com/mcp/golf. Sign in the first time a tool runs and press Allow. On Team and Enterprise plans an owner adds it under Organization settings, Connectors, and members then press Connect. The local Claude Desktop config file starts programs rather than URLs, so it goes through the mcp-remote bridge:
{
"mcpServers": {
"sportsdatahq-golf": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.sportsdatahq.com/mcp/golf", "--header", "x-api-key:YOUR_API_KEY"]
}
}
}Cursor
Paste this into ~/.cursor/mcp.json:
{
"mcpServers": {
"sportsdatahq-golf": {
"url": "https://mcp.sportsdatahq.com/mcp/golf",
"headers": { "x-api-key": "YOUR_API_KEY" }
}
}
}VS Code
Add this to .vscode/mcp.json:
{
"servers": {
"sportsdatahq-golf": {
"type": "http",
"url": "https://mcp.sportsdatahq.com/mcp/golf",
"headers": { "x-api-key": "YOUR_API_KEY" }
}
}
}ChatGPT
ChatGPT adds outside MCP servers through developer mode, which OpenAI currently offers on workspace plans (Business, Enterprise and Edu) and which may need an admin to switch on. Create a custom MCP app or connector, paste https://mcp.sportsdatahq.com/mcp/golf and choose OAuth as the authentication. A sign-in page opens, you press Allow, and there is no key to copy. ChatGPT Plus does not have developer mode: call the REST API from your own machine with your key and paste the response in, as in the curl examples below.
Example questions and the tools they call
| Question | Tools called | Credits |
|---|---|---|
| Who is playing the best golf right now, accounting for the strength of each field? | get_ratings | 2 |
| What is being played this week, on which course, and who is the defending champion? | get_schedule | 1 |
| Who won each of the four majors in 2026? | list_tournaments (with major) | 1 |
| Show the 2026 Masters leaderboard with each player's rounds against the field. | list_tournaments, get_leaderboard | 1 + 2 |
| Break down one player's 2026 season: birdies per round, par 3, 4 and 5 scoring, driving and putting. | search_players, get_player_stats | 1 + 5 |
| How have two players compared in the events they both entered this year? | get_head_to_head | 5 |
| How did the market price the Masters field, from the opening price to the last one before round 1? | get_winner_odds | 5 |
A tip for agents: golf ids are plain strings. Resolve a name once with search_players, a tournament once with list_tournaments or get_schedule, and reuse both ids. A 1-credit lookup saves a 5-credit call that returns the wrong golfer.
Tool count and highlights
The golf route lists 16 tools. The highlights:
- `get_ratings`. Strokes per round better than an average player in the same field, from every full round, adjusted for field strength and weighted toward recent rounds. Pass
as_offor a past date andmin_roundsto set the sample floor. - `get_leaderboard` and `get_scorecard`. A full tournament result, then any one player's round hole by hole. Tournaments played on more than one course record which course each round used.
- `get_course` and `get_course_history`. How each hole played, and one player's every start at an event or on a course.
- `get_player`, `get_player_results`, `get_player_stats`. Career totals and a line per season, a tournament-by-tournament record with every round against the field, and a season in numbers.
- `get_winner_odds`. Opening and latest pre-round winner prices by sportsbook for the four men's majors, with implied probability. Prices are information, not a pick.
- `get_tournament_forecast`. Our pre-tournament chances for an upcoming PGA Tour event, from our ratings and a simulation of the field. It answers once the field is published, about a day before round 1.
- `get_data_status`. When each dataset last updated and any known gaps, for 1 credit.
Credit costs
| Credits | Tools |
|---|---|
| 1 | list_tournaments, get_schedule, search_players, get_data_status |
| 2 | get_leaderboard, get_course, get_scorecard, get_ratings |
| 5 | get_player, get_player_results, get_player_stats, get_course_history, get_head_to_head, get_leaders, get_winner_odds |
| 10 | get_tournament_forecast |
A tournament recap (find the event, then the leaderboard) costs about 3 credits and a player profile (search, season stats) about 6. With 1,000 free credits you can run a good number of both every month.
Verified examples you can run now
Export your key as KEY. These ran against the live API on December 6, 2026 and returned HTTP 200.
Find a player id by name (1 credit):
curl -s -X POST https://api.sportsdatahq.com/v1/golf/search_players \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"query": "McIlroy", "limit": 1}'The best-rated players right now (2 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/golf/get_ratings \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"limit": 3}'The 2026 major champions (1 credit):
curl -s -X POST https://api.sportsdatahq.com/v1/golf/list_tournaments \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"season": 2026, "major": true, "limit": 4}'A leaderboard, top three only (2 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/golf/get_leaderboard \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"tournament_id": "401811941", "limit": 3}'The tool list your MCP client sees on this route, which is free:
curl -s -X POST https://mcp.sportsdatahq.com/mcp/golf \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Coverage and limits
The PGA Tour runs from 2001: leaderboards, rounds and, for the PGA Tour and the Korn Ferry Tour, hole-by-hole strokes. Seasons are tour season years, and PGA Tour seasons from 2014 to 2024 began the October before, so the 2015 season opened in October 2014. The Korn Ferry Tour's 2020 and 2021 are one season, listed as 2020.
The other tours are thinner, and the server says so rather than hiding it. The LPGA has hole-by-hole data only for 2013 to 2016 and some 2026 events, and a few events a season in 2002 to 2004 and 2013 to 2016 with none in 2017 to 2019. The DP World Tour and LIV have round scores only, and the DP World Tour has 13 events in 2018, none in 2019 and 19 in 2020. Season points (cup_points) are FedEx Cup points on the PGA Tour only, and earnings are empty for the DP World Tour and LIV.
Odds cover the winner prices of the four men's majors, every major from 2021. Past majors have weekly snapshots, and 2021 is thin, with one to 14 snapshots a major. An upcoming major is refreshed daily while its market is open, and nothing is captured once play starts. There are no round, matchup, top-10 or other-tournament prices, and none for the other tours. Odds and props are pre-game only. Records are overwritten when a correction arrives, with no revision history.
You may store the data, train models, backtest and build commercial products that show your users what you derive. You may not redistribute the data, or odds as a raw feed, as a dataset or API of its own.
When not to use this
- You need strokes-gained by shot type. Putting, approach and tee-to-green splits are not here. You get strokes versus the field per round and par-type averages.
- You need LPGA, LIV or DP World Tour hole data. Those tours are mostly round scores only. Check the coverage above before you build on them.
- You need prices for matchups, top-10s or regular tour events. Only the four men's majors' winner prices are held, and none after play starts.
- You want live scoring. Odds are pre-game only, and the schedule shows live status but this is not a shot-by-shot live feed.
- You are rebuilding a whole tour. A data package is one download. Paging a full career of rounds at 5 credits a call adds up quickly.
- You want a pick. Prices come back as information about the market. No tool recommends a wager or works out a stake.
Source and related pages
There is no public golf MCP repository. The hosted route and the BirdieAPI docs are the references. For the cross-sport server's public code see sports-data-mcp-server. Related guides: the free sports data MCP server, tennis, UFC, NBA and NFL.
Try it
- Get a free key: 1,000 credits a month, no card.
- Skip the API and download a data package if you want a full season in a file.
FAQ
How many tools does the golf MCP server have?
The golf route on the SportsDataHQ server lists 16 tools, from search_players at 1 credit to get_tournament_forecast at 10. BirdieAPI's own server serves the same tool names.
Which golf tours and seasons are covered?
The PGA Tour from 2001, with hole-by-hole scores. The LPGA, LIV, DP World Tour and Korn Ferry Tour work through the league argument, with thinner coverage: LIV and the DP World Tour have round scores only.
Does it have golf odds?
Only the winner prices of the four men's majors, every major from 2021, shown as information with opening and latest pre-round prices. There are no matchup or regular-event prices, and no tool recommends a wager.
Checked against the live API on 2026-12-06. Questions: hello@sportsdatahq.com.