DunkAPI
Server Details
NBA, WNBA and college basketball data: play-by-play, shot locations, box scores, odds. REST and MCP.
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- noahowsh/dunkapi-mcp
- GitHub Stars
- 0
TDQS
Score is being calculated.
Available Tools
18 toolsget_gameRead-onlyInspect
Use for one game in full: score, both teams' box scores, every player's line, each sportsbook's opening and closing line, and the win-probability range. For the play-by-play use get_plays. Costs 5 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| game_id | Yes | ESPN game id, from list_games or get_schedule. |
Output Schema
| Name | Required | Description |
|---|---|---|
| game | Yes | |
| odds | Yes | |
| plays | Yes | |
| players | Yes | |
| team_stats | Yes | |
| box_score_note | No | |
| win_probability | Yes |
get_injuriesRead-onlyInspect
Use for the injury report: every listed player's status (out, day-to-day), injury and expected return, as captured on the latest day (or the latest on or before date). NBA and WNBA. Costs 2 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The report as of this day, YYYY-MM-DD (default: the latest). | |
| team | No | One team (id or abbreviation). | |
| league | No | League. Defaults to nba. One of: nba, wnba. |
Output Schema
| Name | Required | Description |
|---|---|---|
| date | Yes | |
| note | No | |
| count | Yes | |
| injuries | Yes |
get_leadersRead-onlyInspect
Use for a season's statistical leaders (per game, shooting percentages with a volume floor, or totals) from every box score. Costs 5 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| stat | Yes | Stat to rank by. | |
| limit | No | ||
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| season | No | Season by the year it ends: 2025 = 2024-25 (default: the latest). | |
| min_games | No | Minimum games played (default: a quarter of the season). | |
| season_type | No | Default regular. |
Output Schema
| Name | Required | Description |
|---|---|---|
| stat | Yes | |
| count | Yes | |
| label | Yes | |
| season | Yes | |
| leaders | Yes | |
| min_games | Yes |
get_line_movementRead-onlyInspect
Use to see how a game's line moved before tip-off: our pre-game snapshots of each sportsbook's moneyline, spread and total (ESPN's once a day, The Odds API's every hour for games in the next two days). Costs 10 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| game_id | Yes | Game id. | |
| provider | No | One sportsbook, e.g. DraftKings. |
Output Schema
| Name | Required | Description |
|---|---|---|
| game | Yes | |
| note | No | |
| movement | Yes | |
| snapshots | Yes |
get_oddsRead-onlyInspect
Use for betting lines: each sportsbook's moneyline, spread and total for a game (opening and closing per book from July 2020 from The Odds API, and from 2023-24 from ESPN; ESPN's final line only before that), with implied probabilities and, for finished games, whether the home side covered and the total went over against the median close. Pass game_id for one game (5 credits) or date for a day's games (10 credits).
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | A day's games, YYYY-MM-DD (US Eastern). | |
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| game_id | No | One game. |
Output Schema
| Name | Required | Description |
|---|---|---|
| note | No | |
| tool | No | |
| count | No | |
| games | No | |
| credits | No | |
| estimate_only | No |
get_playerRead-onlyInspect
Use for a player's profile, per-season averages and shooting splits (regular season and postseason separately) and last 10 games. For every game use get_player_games. Costs 5 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| player_id | Yes | ESPN athlete id, from search_players. |
Output Schema
| Name | Required | Description |
|---|---|---|
| player | Yes | |
| seasons | Yes | |
| recent_games | Yes |
get_player_gamesRead-onlyInspect
Use for a player's game log: every game's box-score line with opponent and result, newest first, optionally one season. Costs 5 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max games (default 100). | |
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| offset | No | ||
| season | No | Season by the year it ends: 2025 = 2024-25 (default: the latest). | |
| player_id | Yes | ESPN athlete id. | |
| season_type | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| games | Yes | |
| player_id | Yes | |
| next_offset | No |
get_player_propsRead-onlyInspect
Use for player prop lines by sportsbook: over/under on points, rebounds, assists, threes, points + rebounds + assists, blocks and steals, from May 2023 for the NBA and WNBA and the 2023-24 season for men's college basketball (DraftKings, FanDuel, BetMGM, ESPN BET, Pinnacle and others). Pass game_id for every player's props in one game (10 credits), or player_id with from_date (and to_date) for one player across games (10 credits per game returned, up to 100). Returns the closing line by default (the last before the game starts) or the opening line, with each book's over and under prices. Set estimate_only to get the price without being charged.
| Name | Required | Description | Default |
|---|---|---|---|
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam. | |
| market | No | One market: player_points (points), player_rebounds (rebounds), player_assists (assists), player_threes (three-pointers made), player_points_rebounds_assists (points + rebounds + assists), player_blocks (blocks), player_steals (steals) | |
| game_id | No | Game id: every player's props for that game. | |
| to_date | No | With player_id: last date (default: no end), YYYY-MM-DD (the game's date). | |
| bookmaker | No | Bookmaker key, e.g. draftkings, fanduel, pinnacle. | |
| from_date | No | With player_id: first date, YYYY-MM-DD (the game's date). | |
| player_id | No | Player id (e.g. 3945274) from search_players. With from_date: that player's props across games. | |
| estimate_only | No | Return what this call would cost, without charging or running it. | |
| snapshot_type | No | closing (default): the last line before the game starts. opening: the first one captured. |
Output Schema
| Name | Required | Description |
|---|---|---|
| note | No | |
| tool | No | |
| count | No | |
| games | No | |
| props | No | |
| credits | No | |
| estimate_only | No | |
| snapshot_type | No | |
| next_from_date | No | |
| credits_per_game | No |
get_playsRead-onlyInspect
Use for play-by-play: every event of a game, or a player's or team's plays across a season, with shot location (feet), zone, our expected points, the score and the home win probability after each play (2018 on). Filter to shots, makes or misses, a zone, a period or clutch time. Pass league for the WNBA (wnba) or college (ncaam, ncaaw); default NBA. Costs 10 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| made | No | Only made (true) or missed (false) shots. | |
| team | No | A team's plays (id or abbreviation). | |
| zone | No | One shot zone. | |
| limit | No | Max plays (default 200). | |
| clutch | No | Last 5 minutes of the 4th quarter (college men: 2nd half) or overtime, score within 5. | |
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| offset | No | ||
| period | No | ||
| season | No | Season by the year it ends (default: the latest; ignored with game_id). | |
| game_id | No | One game: every play in order. | |
| player_id | No | A player's plays (with season). | |
| shots_only | No | Field goal and free throw attempts only. | |
| season_type | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| plays | Yes | |
| next_offset | No |
get_prop_historyRead-onlyInspect
Use to see how a player did against his prop line over time: for one market (points, rebounds, assists, threes, points + rebounds + assists, blocks or steals), one row per game with the closing line (the median across books, or one book's), the opening line, the prices, what the player actually recorded from our box scores and the result against the line, plus the over rate. Costs 10 credits for up to 200 games.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Games to return, oldest first (default 50, max 200). next_from_date says where to continue. | |
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam. | |
| market | Yes | The market: player_points (points), player_rebounds (rebounds), player_assists (assists), player_threes (three-pointers made), player_points_rebounds_assists (points + rebounds + assists), player_blocks (blocks), player_steals (steals) | |
| to_date | No | Last date, YYYY-MM-DD (the game's date). | |
| bookmaker | No | One book's closing line instead of the median across books, e.g. draftkings. | |
| from_date | No | First date, YYYY-MM-DD (the game's date). | |
| player_id | Yes | Player id (e.g. 3945274) from search_players. |
Output Schema
| Name | Required | Description |
|---|---|---|
| note | No | |
| stat | Yes | |
| tool | No | |
| count | Yes | |
| games | Yes | |
| market | Yes | |
| credits | No | |
| summary | Yes | |
| bookmaker | Yes | |
| player_id | Yes | |
| truncated | No | |
| player_name | Yes | |
| estimate_only | No | |
| next_from_date | No |
get_ratingsRead-onlyInspect
Use for our team power ratings (Elo from every final game in our data), ranked, as of the end of a season or today. Costs 2 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| season | No | Season by the year it ends (default: the latest). |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| method | Yes | |
| season | Yes | |
| ratings | Yes |
get_scheduleRead-onlyInspect
Use for upcoming games (next 1-30 days, default 7) with the median line across posted sportsbooks: spread, total and moneylines. For every book's line use get_odds. Costs 2 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days ahead (default 7). | |
| team | No | Team id or abbreviation. | |
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. |
Output Schema
| Name | Required | Description |
|---|---|---|
| days | Yes | |
| count | Yes | |
| games | Yes |
get_shot_chartRead-onlyInspect
Use for a shot profile: attempts, makes, percentage, points per shot and expected points per shot in each zone (restricted area, paint, midrange, corner three, above-the-break three, free throws) for a player, a team, a team's opponents or one game. include_shots adds every located shot's x/y and result for drawing a chart. Costs 10 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| team | No | Team id or abbreviation. | |
| league | No | League. Defaults to nba. One of: nba, wnba. | |
| season | No | Season by the year it ends (default: the latest). | |
| game_id | No | ||
| opponent | No | With team: the shots its opponents took (its defence). | |
| player_id | No | ||
| season_type | No | ||
| include_shots | No | Add each shot's x, y and result (up to 3,000). |
Output Schema
| Name | Required | Description |
|---|---|---|
| note | No | |
| share | No | |
| shots | No | |
| zones | Yes | |
| season | Yes | |
| shots_note | No | |
| unlocated_note | No | |
| unlocated_attempts | No | |
| field_goal_attempts | Yes |
get_standingsRead-onlyInspect
Use for a season's regular-season standings computed from every final game: overall, conference, home and away records, points for and against, margin and last 10. Costs 2 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| season | No | Season by the year it ends (default: the latest). |
Output Schema
| Name | Required | Description |
|---|---|---|
| note | Yes | |
| count | Yes | |
| season | Yes | |
| standings | Yes |
get_team_statsRead-onlyInspect
Use for team efficiency for a season: pace, offensive, defensive and net rating per 100 possessions, the four factors (eFG%, turnover %, offensive rebound %, free throw rate) and three-point rate, from every box score. Costs 5 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| team | No | One team (id or abbreviation). | |
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| season | No | Season by the year it ends: 2025 = 2024-25 (default: the latest). | |
| season_type | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| teams | Yes | |
| method | Yes | |
| season | Yes |
list_gamesRead-onlyInspect
Use to list games with scores by season, date, date range or team, newest first. For upcoming games with lines use get_schedule; for one game's box score use get_game. Costs 2 credits.
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | To date, YYYY-MM-DD. | |
| date | No | One date, YYYY-MM-DD (US Eastern). | |
| from | No | From date, YYYY-MM-DD. | |
| team | No | Team id or abbreviation. | |
| limit | No | Max games (default 50). | |
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| offset | No | Page offset; use next_offset. | |
| season | No | Season by the year it ends: 2025 = 2024-25. | |
| status | No | ||
| season_type | No | regular, postseason, play_in or preseason. |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| games | Yes | |
| next_offset | No |
list_teamsRead-onlyInspect
Use to find team ids and abbreviations for a season (default: the latest). Every other tool takes a team as an id or abbreviation. Pass league for the WNBA (wnba) or college (ncaam, ncaaw); default NBA. Costs 1 credit.
| Name | Required | Description | Default |
|---|---|---|---|
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. | |
| season | No | Season by the year it ends: 2025 = 2024-25. WNBA: the calendar year. |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| teams | Yes | |
| season | Yes |
search_playersRead-onlyInspect
Use to find a player's id by name (partial names work), most recent players first. Pass league for the WNBA (wnba) or college (ncaam, ncaaw); default NBA. Costs 1 credit.
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full or partial name. | |
| limit | No | ||
| league | No | League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw. |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | Yes | |
| players | Yes |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
18 tool updates
- First observed
get_game - First observed
get_injuries - First observed
get_leaders - First observed
get_line_movement - First observed
get_odds - First observed
get_player - First observed
get_player_games - First observed
get_player_props - First observed
get_plays - First observed
get_prop_history - First observed
get_ratings - First observed
get_schedule - First observed
get_shot_chart - First observed
get_standings - First observed
get_team_stats - First observed
list_games - First observed
list_teams - First observed
search_players
Related MCP Connectors
NBA MCP — player, team, and game data via the BallDontLie API
MLB since 2015 plus college: pitches, plate appearances, box scores, odds by book. REST and MCP.
201Live and historical NBA/NFL/NHL data — fantasy bots, content sites, betting research.
Live odds, cross-book +EV and graded player-prop results across 37 books. Hosted endpoint included.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for NBA live data and stats, providing read-only tools to query live scores, box scores, player info, standings, and more from NBA.com.1514 npm1MIT
- AlicenseNot gradedqualityAmaintenanceGet live scores, schedules, standings, team and player data for NFL, NBA, MLB, NHL, soccer, and more via MCP.139 npm2Apache 2.0
- AlicenseAqualityAmaintenanceLive sports betting player props MCP server covering NBA, MLB, NFL, NHL, NCAA, and soccer. Unified from real sportsbooks into one REST API and a real MCP server (Streamable HTTP). Free tier, no card required.5MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for querying validated EuroLeague and EuroCup basketball analytics, including possession-based metrics, four factors, and lineup-level on/off data reconstructed from play-by-play events.MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.