# BirdieAPI MCP server [![Smithery](https://img.shields.io/badge/Smithery-listed-ff5601?style=flat-square)](https://smithery.ai/servers/noahowsh/BirdieAPI) [![MCP Registry](https://img.shields.io/badge/MCP%20Registry-listed-0b7285?style=flat-square)](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.noahowsh/birdieapi) **The golf data API.** PGA Tour leaderboards with finishing positions, earnings and points, round scores and hole-by-hole scorecards, courses with par and yardage per hole, player and course history, our own strokes-versus-field rating, par-3/4/5 scoring splits and the winner prices of the four men's majors by sportsbook. The LPGA, LIV, the DP World Tour and the Korn Ferry Tour use the same tools. REST API and MCP server. 500 free credits every month, no card. Website: https://birdieapi.com · Docs: https://birdieapi.com/docs · Get a key: https://birdieapi.com/signup ``` You: "How did Scottie Scheffler score on each hole of the 2025 Masters?" Claude: [calls get_scorecard] You: "Which players have the best record at Pebble Beach since 2010?" Claude: [calls get_course_history] You: "What did sportsbooks price Scottie Scheffler to win the 2025 Masters?" Claude: [calls get_winner_odds] ``` ## Run it locally (stdio) Most clients connect to `https://mcp.birdieapi.com/mcp` directly. For a client that launches a local process instead: ```bash git clone https://github.com/noahowsh/birdieapi-mcp.git && cd birdieapi-mcp && npm install BIRDIEAPI_API_KEY=your_key node index.js ``` ```json { "mcpServers": { "birdieapi": { "command": "node", "args": ["/path/to/birdieapi-mcp/index.js"], "env": { "BIRDIEAPI_API_KEY": "your_key" } } } } ``` It forwards to the hosted server with your key, so every tool and credit cost is the same. ## Skills Sixteen free Claude skills in [`skills/`](skills/) turn Claude into a golf analyst on top of these tools: tournament and player lookups, strokes-versus-field ratings, par-3/4/5 and hole-by-hole scoring, course fit, a tournament simulation, odds math for the four majors' outright markets, and the methodology (leak-free features, walk-forward validation, calibration, edge detection, backtesting) to test your own models. ```bash git clone https://github.com/noahowsh/birdieapi-mcp.git ``` Or install them as a Claude Code plugin: ``` /plugin marketplace add noahowsh/birdieapi-mcp /plugin install birdieapi-skills@birdieapi ``` Or with the skills CLI: `npx skills add noahowsh/birdieapi-mcp`. Point Claude at the `skills/` folder, connect the MCP server below for live data (500 free credits every month, no card), and ask a question. Start with the `dispatch` skill if you are not sure which one fits. The full catalog is in [`skills/README.md`](skills/README.md). ## Python The official Python client is on PyPI: [birdieapi](https://pypi.org/project/birdieapi/). ```bash pip install birdieapi export BIRDIEAPI_API_KEY=sk_live_... ``` ```python from birdieapi import Client client = Client() events = client.list_tournaments(status="final", limit=3)["tournaments"] for e in events: print(e["tournament_id"], e["name"], e["winner_name"], e["winning_to_par"]) ``` Typed errors for a bad key, no credits left, not found and rate limits, automatic retries, and `to_dataframe` for pandas. ## Quick start This is a hosted (remote) MCP server over Streamable HTTP. There is nothing to install. **Claude Code** ```bash claude mcp add --transport http birdieapi "https://mcp.birdieapi.com/mcp?key=YOUR_API_KEY" ``` **Claude Desktop, Cursor and other clients** ```json { "mcpServers": { "birdieapi": { "url": "https://mcp.birdieapi.com/mcp?key=YOUR_API_KEY" } } } ``` The key can also be sent as an `x-api-key` header or `Authorization: Bearer`. Connecting and listing tools works without a key; calling a tool needs one. **REST** ```bash curl -X POST https://mcp.birdieapi.com/v1/list_tournaments -H "x-api-key: YOUR_API_KEY" ``` Every tool is `POST /v1/{tool}` with a JSON body. ## Examples Runnable Python (standard library only) and Node 18+ (no dependencies) examples live in [`examples/`](examples/): - [`examples/python/quickstart.py`](examples/python/quickstart.py) and [`examples/node/quickstart.mjs`](examples/node/quickstart.mjs): schedule plus a headline call. - [`examples/python/golf_major_leaderboard_and_odds.py`](examples/python/golf_major_leaderboard_and_odds.py): One major, before and after. ```bash export BIRDIEAPI_API_KEY=your_key python3 examples/python/quickstart.py node examples/node/quickstart.mjs ``` See [`examples/README.md`](examples/README.md) for details. Get a free key (500 credits a month, no card) at https://birdieapi.com/signup. ## Tools (14) | Tool | What it returns | |------|-----------------| | `list_tournaments` | A season's tournaments with dates, winner, purse and courses | | `search_players` | Find players by name | | `get_schedule` | Tournaments this week and coming up, with the host course | | `get_leaderboard` | A tournament's full leaderboard: position, rounds, total, earnings and points | | `get_scorecard` | A player's hole-by-hole scorecard for a tournament, with par and yardage | | `get_course` | A course as set up for a tournament: par and yards per hole and how each hole played | | `get_ratings` | Our strokes-versus-field rating: every active player, field-strength adjusted | | `get_player` | Profile, rating, season lines and recent finishes | | `get_player_results` | A player's tournaments and rounds by season, with strokes versus the field | | `get_player_stats` | A player's season stats: scoring, birdies, par-3/4/5 scoring, driving, greens, putting | | `get_course_history` | A player's record at one tournament or course, every year | | `get_head_to_head` | Two players' finishes and rounds in every tournament they both played | | `get_leaders` | Season leaders for any stat we compute or keep | | `get_winner_odds` | The four majors' winner prices by sportsbook before the first round: opening and latest, with implied probability | Leagues: golf (default, PGA Tour), lpga, liv, dpwt, kornferry (pass `league` to any tool; omit it for the PGA Tour). ## Data - PGA Tour leaderboards, rounds and hole-by-hole scores since 2001 - LPGA, LIV, the DP World Tour and the Korn Ferry Tour (hole by hole since 2007) in the same tools - Courses with par and yardage per hole and how each hole played; player course history; head to head - Our strokes-versus-field rating, field-strength adjusted, and par-3/4/5 scoring splits (averages, plus strokes versus the field by hole type for the PGA Tour and Korn Ferry Tour); score-based, not shot-level strokes gained - Major winner odds (`get_winner_odds`): outright winner prices of the four men's majors by sportsbook, opening and latest before the first round, every major from 2021 plus the 2020 U.S. Open (a past major's latest price can be up to a week before the first tee time), refreshed daily while an upcoming major's market is open and every six hours in tournament week - No round, matchup, top-10 or other-tournament prices, and no prices for the other tours Coverage by season, read live from the database: https://birdieapi.com/docs ## Pricing 500 free credits every month, no card. Plans: Starter $19/mo (10,000 credits), Pro $49/mo (30,000), Scale $149/mo (125,000). Wallet top-ups from $5, never expire. https://birdieapi.com/pricing ## Useful pages - Docs: https://birdieapi.com/docs (every endpoint, with a real response) - Data atlas, coverage by season: https://birdieapi.com/data - Golf majors odds board (winner prices by sportsbook): https://birdieapi.com/odds - Major winner odds data: https://birdieapi.com/data/major-winner-odds - Hole-by-hole data: https://birdieapi.com/data/pga-tour-hole-by-hole-data - Guides (Python, JavaScript and cURL): https://birdieapi.com/guides - Glossary (strokes versus the field, field strength, par-type splits): https://birdieapi.com/glossary - Pricing: https://birdieapi.com/pricing - For bettors and modellers: https://birdieapi.com/for/bettors - Compare: [Data Golf API](https://birdieapi.com/compare/data-golf-api), [ESPN's golf JSON](https://birdieapi.com/compare/espn-golf-api), [SportsDataIO](https://birdieapi.com/compare/sportsdataio-golf), [Sportradar](https://birdieapi.com/compare/sportradar-golf) ## Attribution Ratings are ours. Not affiliated with the PGA Tour, LPGA, LIV Golf, DP World Tour or Korn Ferry Tour. ## License MIT for the contents of this repository. Data terms as above. ## Use with Codex Add this repo as a Codex plugin marketplace, then install the plugin: ```bash codex plugin marketplace add noahowsh/birdieapi-mcp ``` Then open the plugin directory in Codex and install `birdieapi-skills` from the `birdieapi` marketplace. The plugin bundles the skills in `skills/` and the BirdieAPI MCP server (https://mcp.birdieapi.com/mcp). Set your key first (free at https://birdieapi.com/signup): ```bash export BIRDIEAPI_API_KEY=your_key ``` Codex sends it as a bearer token. ## Use with Gemini CLI ```bash export BIRDIEAPI_API_KEY=your_key gemini extensions install https://github.com/noahowsh/birdieapi-mcp ``` The extension adds the BirdieAPI MCP server (https://mcp.birdieapi.com/mcp) and sends the key in the `x-api-key` header. Get a free key (500 credits a month) at https://birdieapi.com/signup.