Claude skills for basketball analytics.
Free Claude skills that turn Claude into a basketball analyst: game previews, pace and efficiency, who gets the minutes when a starter sits, and player prop research, all on the DunkAPI MCP server.
# Install the skills as a Claude Code plugin
> /plugin marketplace add sports-data-hq/sportsdatahq-skills
> /plugin install nba-data@sportsdatahq
# Add the MCP server
$ claude mcp add dunkapi https://mcp.dunkapi.com/mcp?key=YOUR_API_KEY --transport streamable-http
# Then ask Claude a stable first question
$ claude "Using DunkAPI, show tonight's NBA games with every sportsbook's spread and total. Cite the tools used."Claude Desktop config
Use this when your MCP client accepts a Streamable HTTP URL.
{
"mcpServers": {
"dunkapi": {
"url": "https://mcp.dunkapi.com/mcp?key=YOUR_API_KEY"
}
}
}First useful prompts
“Using DunkAPI, show tonight's NBA games with every sportsbook's spread and total. Cite the tools used.”
“Using DunkAPI, build a shot chart by zone for one player this season and compare points per shot to expected. Cite the tools used.”
“Using DunkAPI, pull one player's points prop lines for his last five games next to what he scored. Cite the tools used.”
24 MCP tools
The same basketball data is available through REST and MCP. Credits are charged per tool call.
list_teams1crTeam ids, abbreviations and colours for a season
search_players1crFind players by name
list_games2crGames with scores by season, date, range or team
get_schedule2crUpcoming games with the median line across sportsbooks
get_standings2crStandings from every final game: overall, conference, home, away, last 10
get_injuries2crThe latest injury report: status, injury and expected return (NBA, WNBA)
get_ratings2crOur team Elo ratings, ranked
get_game5crOne game: both box scores, every player's line, each book's line, win probability
get_player5crProfile, per-season averages and shooting splits, last 10 games
get_player_games5crA player's full game log
get_leaders5crSeason leaders per game, by percentage or in total
get_team_stats5crPace, offensive, defensive and net rating, and the four factors
get_odds5crEvery sportsbook's moneyline, spread and total for a game (5) or a day (10), with results against the line
get_plays10crPlay-by-play with shot locations, zones, expected points and win probability
get_shot_chart10crShot profile by zone for a player, team or defence, with every shot's x/y
get_line_movement10crSnapshots of each sportsbook's line before tip-off
get_player_props10crPlayer prop lines by sportsbook: the closing line (one pre-game capture per line before October 2026)
get_prop_history10crA player's prop lines against the result, game by game
get_prop_movement10crHow one player's prop line moved before a game, every capture by sportsbook
get_market_odds10crOpening and closing lines by sportsbook for the half and quarter markets (history from May 2023)
get_alt_lines10crAlternate spreads and totals by sportsbook: every point on each book's ladder, opening and closing, NBA, WNBA and men's college from 2023-24
get_game_probabilities5crWhat the market thinks of a game: average implied and fair probability for the moneyline, spreads and totals
get_prop_probabilities10crWhat the market thinks of a game's player props: average implied and fair probability for each player and line
get_prop_backtest25crHow often a kind of player prop hit against what the market implied, by your filters, since May 2023
Basketball skills
Previews, research and the sport's own metrics, every number from a live call.
One-page report: records, ratings, pace and efficiency (offensive, defensive, net rating, four factors), injuries, the line and what it implies.
Compares minutes, shots and usage per teammate in games the player missed against games he played, with sample sizes.
Lines up pace, offensive and defensive rating per 100 possessions and the four factors for both teams, plus our ratings and the posted total as market information.
Shows lines by sportsbook, the player's record against his line with sample size and minutes context, movement and no-margin probability. Never says which side to take.
Reports attempts, makes and expected points per shot by zone, so shooting results can be set against shot location. NBA and WNBA only (college shots carry no expected points).
Any sport
Modeling, backtesting, calibration, Elo and charts. Odds are treated as information about the market, never as advice to bet.
Walk-forward only; refuses in-sample testing. Reports sample size, an interval and a per-season breakdown.
Covers pulls through any sport's SportsDataHQ MCP server.
Works for team sports and for tennis, golf, UFC and cricket player or fighter ratings.
Enforces shift(1) before any rolling calculation.
Covers model vs market gap, fair (no-margin) probability, closing-line comparison as a measure of model quality, and how large a sample must be before a gap means anything. Odds are information only: no stake sizing, no wagering advice.
Always walk-forward; refuses k-fold. Works for any sport.
Translates the question into conditions, calls your sport's SportsDataHQ MCP tools, retries with adjusted filters when results look wrong, and reports counts with sample size.
Odds are treated as information about the market, never as an instruction to wager.
Logs probability, outcome, Brier score, log loss, calibration and closing-line comparison, with sample size and intervals.
Verifies and corrects predicted probabilities against outcomes, with sample size and intervals.
Use when the user says 'compare', 'over the last N games', 'this season', 'career', 'trend', or names a player whose id you do not have yet.
Routes the request to the right two or three skills so not all of them load. Single-skill requests (for example 'devig these odds') can go straight to odds-market-analysis without this router.
Renders output from another skill as matplotlib/seaborn code or a terminal chart.
Gives the time-ordered (walk-forward) method with per-season results, baselines and intervals, and redirects k-fold on time-ordered data.
Skills for other sports
- 31 Claude skills for hockey analytics from PuckAPI
- 21 Claude skills for football analytics from EndzoneAPI
- 18 Claude skills for MMA analytics from FighterAPI
- 19 Claude skills for soccer analytics from StrikerAPI
- 18 Claude skills for tennis analytics from AcesAPI
- 19 Claude skills for golf analytics from BirdieAPI
- 20 Claude skills for baseball analytics from FastballAPI
- 19 Claude skills for cricket analytics from YorkerAPI
Open source methodology. Production-ready data.
The skills are free forever. When you need real data, DunkAPI is ready. Start with 500 free credits every month.