Skip to content
MCP server

DunkAPI

NBA play-by-play, shot charts, standings and sportsbook player props

Install
Pricing
Freemium
Platforms
API, Web
Runs
Remotely
Version
1.1.6
Listing updated
1 day ago

About DunkAPI

DunkAPI is a freemium MCP server for sports data. It runs as a hosted remote server, so there is nothing to install locally.

Play-by-play records carry shot locations, zone, expected points and win probability, which supports questions about shots at the rim or lineup trends. The data starts with the 2003-04 NBA season and extends to the WNBA and men's and women's Division I college basketball through the same tools.

A separate group of tools handles betting lines: moneylines, spreads and totals by sportsbook, opening and closing numbers, line movement snapshots, and player prop lines for points, rebounds, assists and threes, with results against each line. Prop coverage starts in May 2023 for the NBA and WNBA, and women's college has no props.

Standings, injuries, team Elo and box scores round it out. A key is needed to call tools; 500 free credits come each month.

Install

Run in a terminal

claude mcp add --transport http dunkapi https://mcp.dunkapi.com/mcp

Add to Settings → Connectors → Add custom connector

https://mcp.dunkapi.com/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "dunkapi": {
      "url": "https://mcp.dunkapi.com/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "dunkapi": {
      "type": "http",
      "url": "https://mcp.dunkapi.com/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "dunkapi": {
      "serverUrl": "https://mcp.dunkapi.com/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "dunkapi": {
      "type": "http",
      "url": "https://mcp.dunkapi.com/mcp"
    }
  }
}

Tools this server provides (18)

Taken from the project documentation; the running server may differ.

list_teams
Team ids and colours
search_players
Find players by name
list_games
Games with scores
get_schedule
Upcoming games with median lines
get_standings
Standings
get_injuries
Latest injury report
get_ratings
Team Elo ratings
get_game
Box scores, lines and win probability
get_player
Profile and averages
get_player_games
Game log
get_leaders
Season leaders
get_team_stats
Pace and efficiency ratings
get_odds
Sportsbook moneyline, spread and total
get_plays
Play-by-play with shot locations
get_shot_chart
Shot profile by zone
get_line_movement
Line snapshots before tip-off
get_player_props
Player prop lines by sportsbook
get_prop_history
Prop lines against results

What it does

Shot locations
Every shot with x/y, zone and expected points.
Odds by book
Moneyline, spread and total per sportsbook.
Line movement
Snapshots of lines before tip-off.
Prop history
A player's prop lines against results.
Team ratings
Elo, pace and four-factor stats.
Four leagues
NBA, WNBA, men's and women's college.

Good for

  • Chart a team's shot profile by zone
  • Check how often a player cleared a points line
  • Compare closing spreads across sportsbooks
  • Read the latest injury report

Pricing

Freemium, from $19 a month

500 free credits a month; Starter $19/mo (10,000), Pro $49/mo (30,000), Scale $149/mo (125,000)

DunkAPI FAQ

Which leagues are included?

NBA by default, plus WNBA, NCAAM and NCAAW.

Since when are props tracked?

From May 2023 for the NBA and WNBA.

Are there props for women's college?

No.

Is it free?

500 credits a month are free; paid plans start at $19.

Is DunkAPI free?

DunkAPI has a free plan, with paid plans for more usage or features. Paid plans start at $19 a month.

How do I add DunkAPI to Claude Code?

Run this command in your terminal: claude mcp add --transport http dunkapi https://mcp.dunkapi.com/mcp

What are the best alternatives to DunkAPI?

The closest alternatives to DunkAPI are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.

Alternatives to DunkAPI

  1. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.7K GitHub stars
    • Analytics and data
  2. Hosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat

    • 8 tools
    • Remote
    • Freemium
    • 8.1K GitHub stars
    • Marketing and SEO
  3. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  4. World Monitor

    MCP server

    Live geopolitical intelligence dashboard with an API and MCP server for agents

    • Remote
    • Freemium
    • Analytics and data
  5. CompanyData

    MCP server

    Search and enrich company records from official registers via the CompanyData API

    • 3 tools
    • Remote
    • Paid
    • 3 GitHub stars
    • Analytics and data
  6. ChartAnt

    MCP server

    Remote MCP server returning charts, maps and dashboards as hosted PNG links

    • 51 tools
    • Remote
    • Freemium
    • Design and media