MCP server
NBA data for AI agents, over MCP
DunkAPI is a hosted MCP server: one URL gives Claude, ChatGPT, Cursor or your own agent 16 read-only basketball data tools. 500 free credits, no card.
Connect in one step
Claude Code
claude mcp add --transport http dunkapi "https://mcp.dunkapi.com/mcp?key=YOUR_API_KEY"Claude Desktop, Cursor and other clients
{
"mcpServers": {
"dunkapi": {
"url": "https://mcp.dunkapi.com/mcp",
"headers": { "x-api-key": "YOUR_API_KEY" }
}
}
}In ChatGPT, add it as a custom connector (developer mode) with the server URL https://mcp.dunkapi.com/mcp?key=YOUR_API_KEY. Listing tools works without a key; calling one needs it.
Ask it things like
- “Who led the NBA in points per game last season among players with 60 games, and what were their shooting splits?”
- “Show every book's spread and total for tonight's games, and the median line for each.”
- “Which teams had the best net rating after the All-Star break last season?”
- “Chart Stephen Curry's made and missed threes by distance for the 2015-16 season.”
16 tools
Credits per call. The same tools are REST endpoints; see the docs.
Team ids, abbreviations and colours for a season
Find players by name
Games with scores by season, date, range or team
Upcoming games with the median line across sportsbooks
Standings from every final game: overall, conference, home, away, last 10
The latest injury report: status, injury and expected return (NBA, WNBA)
Our team Elo ratings, ranked
One game: both box scores, every player's line, each book's line, win probability
Profile, per-season averages and shooting splits, last 10 games
A player's full game log
Season leaders per game, by percentage or in total
Pace, offensive, defensive and net rating, and the four factors
Every sportsbook's moneyline, spread and total for a game (5) or a day (10), with results against the line
Play-by-play with shot locations, zones, expected points and win probability
Shot profile by zone for a player, team or defence, with every shot's x/y
Daily snapshots of each sportsbook's line before tip-off
Questions
What is the DunkAPI MCP server?
A hosted Model Context Protocol server at https://mcp.dunkapi.com/mcp. Add that URL to Claude, ChatGPT, Cursor or any MCP client and the assistant can call 16 read-only basketball data tools directly: no scraping, no local install.
Do I need to run anything locally?
No. It is a remote server over Streamable HTTP. Your client connects to one URL and sends your API key as an x-api-key header or a ?key= parameter.
What does it cost?
Every account starts with 500 free credits and no card. Tools cost 1 to 10 credits a call, a call that returns no data is refunded, and plans start at $19/month for 10,000 credits.
Is it the same data as the REST API?
Yes. Every MCP tool is also a REST endpoint with the same arguments and response, so an agent prototype and production code read identical data.
Which clients work?
Anything that speaks MCP over Streamable HTTP: Claude Code, Claude Desktop, ChatGPT (connectors), Cursor, Cline, Windsurf and agent frameworks with an MCP client. It is also listed on the official MCP Registry, Smithery and Glama.