A Model Context Protocol (MCP) server that provides access to live and historical NBA data. Query game scores, player statistics, team standings, and historical performance data.
- Live Game Data: Get real-time scores and game status for today's games
- Historical Games: Query games by specific date
- Player Statistics: Current season stats including points, rebounds, assists, and more
- Team Standings: Current NBA team standings with wins, losses, and rankings
- Historical Data: Access player and team statistics from previous seasons
- Team Analytics: Advanced team metrics and performance data
npm install
npm run buildAdd this server to your MCP client configuration. For Claude Desktop, add to your config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"nba": {
"command": "node",
"args": ["/absolute/path/to/nba-mcp-ts/build/index.js"]
}
}
}Get today's NBA games with live scores and game status.
Parameters: None
Example:
Get today's NBA games
Get NBA games for a specific date.
Parameters:
date(string, required): Date in YYYY-MM-DD format
Example:
Get NBA games from 2024-10-13
Get current season player statistics.
Parameters:
playerName(string, optional): Filter by player namelimit(number, optional): Max number of players to return (default: 50)
Examples:
Get stats for LeBron James
Get top 20 player stats
Get current NBA team standings.
Parameters: None
Example:
Show me the current NBA standings
Get historical player statistics for a specific season.
Parameters:
playerId(string, required): NBA player IDseason(string, required): Season in YYYY-YY format
Example:
Get LeBron James stats from 2020-21 season
Get team statistics for a specific season.
Parameters:
season(string, optional): Season in YYYY-YY format (default: current season)
Example:
Get team stats for 2023-24 season
# Watch mode for development
npm run watch
# Build
npm run buildThis server uses the official NBA Stats API to fetch data. The API provides comprehensive statistics and game information for all NBA games and players.
MIT