Skip to content
DunkAPI
MCP server + basketball skills

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.

json
{
  "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.

Open endpoint docs
list_teams1cr

Team ids, abbreviations and colours for a season

search_players1cr

Find players by name

list_games2cr

Games with scores by season, date, range or team

get_schedule2cr

Upcoming games with the median line across sportsbooks

get_standings2cr

Standings from every final game: overall, conference, home, away, last 10

get_injuries2cr

The latest injury report: status, injury and expected return (NBA, WNBA)

get_ratings2cr

Our team Elo ratings, ranked

get_game5cr

One game: both box scores, every player's line, each book's line, win probability

get_player5cr

Profile, per-season averages and shooting splits, last 10 games

get_player_games5cr

A player's full game log

get_leaders5cr

Season leaders per game, by percentage or in total

get_team_stats5cr

Pace, offensive, defensive and net rating, and the four factors

get_odds5cr

Every sportsbook's moneyline, spread and total for a game (5) or a day (10), with results against the line

get_plays10cr

Play-by-play with shot locations, zones, expected points and win probability

get_shot_chart10cr

Shot profile by zone for a player, team or defence, with every shot's x/y

get_line_movement10cr

Snapshots of each sportsbook's line before tip-off

get_player_props10cr

Player prop lines by sportsbook: the closing line (one pre-game capture per line before October 2026)

get_prop_history10cr

A player's prop lines against the result, game by game

get_prop_movement10cr

How one player's prop line moved before a game, every capture by sportsbook

get_market_odds10cr

Opening and closing lines by sportsbook for the half and quarter markets (history from May 2023)

get_alt_lines10cr

Alternate 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_probabilities5cr

What the market thinks of a game: average implied and fair probability for the moneyline, spreads and totals

get_prop_probabilities10cr

What the market thinks of a game's player props: average implied and fair probability for each player and line

get_prop_backtest25cr

How often a kind of player prop hit against what the market implied, by your filters, since May 2023

24
MCP tools
19
skills
2
skill categories
01

Basketball skills

Previews, research and the sport's own metrics, every number from a live call.

nba-game-preview

One-page report: records, ratings, pace and efficiency (offensive, defensive, net rating, four factors), injuries, the line and what it implies.

nba-minutes-usage-redistribution

Compares minutes, shots and usage per teammate in games the player missed against games he played, with sample sizes.

nba-pace-efficiency-matchup

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.

nba-player-props-research

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.

nba-shot-quality

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).

02

Any sport

Modeling, backtesting, calibration, Elo and charts. Odds are treated as information about the market, never as advice to bet.

backtesting

Walk-forward only; refuses in-sample testing. Reports sample size, an interval and a per-season breakdown.

data-pipeline

Covers pulls through any sport's SportsDataHQ MCP server.

elo-engineering

Works for team sports and for tennis, golf, UFC and cricket player or fighter ratings.

feature-engineering

Enforces shift(1) before any rolling calculation.

market-vs-model

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.

model-building

Always walk-forward; refuses k-fold. Works for any sport.

nl-to-query

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-market-analysis

Odds are treated as information about the market, never as an instruction to wager.

prediction-tracker

Logs probability, outcome, Brier score, log loss, calibration and closing-line comparison, with sample size and intervals.

probability-calibration

Verifies and corrects predicted probabilities against outcomes, with sample size and intervals.

sports-data-preflight

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.

sports-skill-router

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.

visualization

Renders output from another skill as matplotlib/seaborn code or a terminal chart.

walk-forward-validation

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

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.