# PGA TOUR API and MCP server for AI agents (/sites/pgatour)

An API for PGA TOUR: let Claude, ChatGPT or your own code read PGA TOUR through 6 functions, over MCP, HTTP, Node or Python. No PGA TOUR API key needed.

- Site: https://pgatour.com
- Functions: 6
- Sign-in: not needed
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- PGA TOUR only, one tool per function: `https://api.bowmark.ai/mcp/site/pgatour` (name it `bowmark-pgatour`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-pgatour https://api.bowmark.ai/mcp/site/pgatour`
- Codex: `codex mcp add bowmark-pgatour --url https://api.bowmark.ai/mcp/site/pgatour`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/pgatour" }` under the name `bowmark-pgatour` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `getLeaderboard`: Reads the PGA TOUR leaderboard.
- `getPlayer`: Reads a PGA TOUR player's profile by id (from searchPlayers): country, birth date, age, birthplace, college, year turned pro, and career highlights…
- `getSchedule`: Lists the PGA TOUR season schedule (current season by default, or a year): every tournament's id, dates, course and city, status, purse, and the…
- `getStatLeaders`: Reads one official PGA TOUR stat leaderboard by stat id (from listStats), e.g. SG: Total or Driving Distance: each player's rank and the stat's…
- `listStats`: Lists the PGA TOUR's official stats (strokes gained, driving, approach, putting, scoring, money) with their stat ids, optionally filtered by a word…
- `searchPlayers`: Finds PGA TOUR players by name in the site's own player directory.

## Call one

In a Bowmark script, each function is `bowmark.providers.pgatour.<name>`. Ask `get_library` for pgatour.com to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on pgatour.com, and with which arguments?
get_library({ query: "pgatour.com" })

// 2. Call it in a script
const result = await bowmark.providers.pgatour.getLeaderboard({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md
