MCP Hub
Back to servers

BALLDONTLIE

MCP (Model Context Protocol) Server. Comprehensive sports data and analytics API covering NBA, NFL, MLB, NHL, and 6+ other major leagues

Stars
5
Forks
3
Tools
256
Updated
Jan 4, 2026
Validated
Jan 9, 2026

BALLDONTLIE Sports MCP Server

A Model Context Protocol (MCP) server that provides access to comprehensive sports data from the BALLDONTLIE API, including NBA, WNBA, NFL, MLB, EPL, NHL, NCAAF, NCAAB, MMA, CS2, League of Legends, Dota 2, FIFA World Cup 2026, La Liga, Serie A, UEFA Champions League, Bundesliga, and Ligue 1 statistics, player information, game data, and more.

Features

  • 250+ Sports Endpoints: Complete access to all BALLDONTLIE API endpoints
  • 18 Major Sports/Leagues: NBA, WNBA, NFL, MLB, EPL, NHL, NCAAF, NCAAB, MMA, CS2, League of Legends, Dota 2, FIFA World Cup 2026, La Liga, Serie A, UEFA Champions League, Bundesliga, Ligue 1
  • Comprehensive Data: Teams, players, games, statistics, standings, injuries, betting odds, and advanced analytics
  • Authentication: Seamless API key forwarding to backend
  • Pagination: Full support for cursor-based pagination
  • Error Handling: Proper error forwarding and handling
  • TypeScript: Full type safety and IntelliSense support

Installation

npm install @balldontlie/mcp-server

Quick Start

1. Get API Key

Sign up at BALLDONTLIE to get your free API key.

2. Configure MCP Client

Option A: Use Hosted Remote Server (Recommended)

Add to your MCP client configuration (e.g., Claude Desktop) to use the hosted server:

{
  "mcpServers": {
    "balldontlie-api": {
      "url": "https://mcp.balldontlie.io/mcp",
      "transport": "http",
      "headers": {
        "Authorization": "<YOUR_BALLDONTLIE_API_KEY>"
      }
    }
  }
}

Replace <YOUR_BALLDONTLIE_API_KEY> with your actual API key from BALLDONTLIE.

Option B: Run from Source

Clone and run from source code:

git clone https://github.com/balldontlie-api/mcp-server.git
cd mcp-server
npm install
npm run build
npm start

Configure your MCP client to connect to the local server:

{
  "mcpServers": {
    "balldontlie-api": {
      "url": "http://localhost:3000/mcp",
      "transport": "http",
      "headers": {
        "Authorization": "<YOUR_BALLDONTLIE_API_KEY>"
      }
    }
  }
}

3. Use in Your MCP Client

The server will automatically provide all available tools. You can ask your AI assistant things like:

  • "Get the current NBA standings"
  • "Show me LeBron James' season stats"
  • "What are today's NFL games?"
  • "Get Manchester United's recent EPL matches"
  • "Show me A'ja Wilson's WNBA season stats"
  • "What are the current WNBA standings?"
  • "Show me the NCAAB tournament bracket"
  • "Get betting odds for tonight's NBA games"

Environment Variables

VariableDefaultDescription
PORT3000Server port when running locally
BACKEND_API_URLhttps://api.balldontlie.ioBALLDONTLIE API base URL
API_TIMEOUT30000Request timeout in milliseconds
LOG_LEVELinfoLogging level (error, warn, info, debug)
NODE_ENVdevelopmentEnvironment (development, production, test)
ENABLE_DEBUGfalseEnable debug logging
ENABLE_TRACINGfalseEnable DataDog APM tracing (requires DD_AGENT_HOST)
DD_AGENT_HOST-DataDog agent hostname for APM tracing
DD_PROFILING_ENABLEDfalseEnable DataDog profiling
SERVICE_VERSION1.0.0Service version for tracing

Available Tools

NBA (23 tools)

ToolDescriptionParameters
nba_get_teamsGet all NBA teamsdivision, conference
nba_get_team_by_idGet specific NBA teamid (required)
nba_get_playersGet NBA players with filterssearch, first_name, last_name, team_ids, player_ids, pagination
nba_get_player_by_idGet specific NBA playerid (required)
nba_get_active_playersGet active NBA playersSame as nba_get_players
nba_get_gamesGet NBA gamesdates, seasons, team_ids, postseason, start_date, end_date, pagination
nba_get_game_by_idGet specific NBA gameid (required)
nba_get_statsGet NBA statisticsdates, seasons, team_ids, player_ids, game_ids, postseason, pagination
nba_get_season_averagesGet season averagesseason (required), category (required), type (required), player_ids, season_type
nba_get_advanced_statsGet advanced statisticsSame as nba_get_stats
nba_get_box_scoresGet box scoresdates, seasons, team_ids, game_ids, postseason, pagination
nba_get_live_box_scoresGet live box scoresSame as nba_get_box_scores
nba_get_standingsGet team standingsseason, conference, division
nba_get_leadersGet statistical leadersseason, stat_type, per_page
nba_get_player_injuriesGet player injuriesplayer_ids, team_ids, pagination
nba_get_betting_oddsGet betting odds for gamesdates, game_ids, pagination
nba_get_lineupsGet game lineupsgame_ids (required), pagination
nba_get_player_propsGet player prop betting oddsgame_id (required), player_id, prop_type
nba_get_contracts_by_teamGet player contracts by teamteam_id (required), season
nba_get_contracts_by_playerGet player contractsplayer_id (required), seasons, pagination
nba_get_contracts_aggregateGet aggregated contract dataplayer_id (required)
nba_get_playsGet play-by-play datagame_id (required)

NFL (17 tools)

ToolDescriptionParameters
nfl_get_teamsGet all NFL teamsdivision, conference
nfl_get_team_by_idGet specific NFL teamid (required)
nfl_get_playersGet NFL playerssearch, first_name, last_name, team_ids, player_ids, position, pagination
nfl_get_player_by_idGet specific NFL playerid (required)
nfl_get_active_playersGet active NFL playersSame as nfl_get_players
nfl_get_gamesGet NFL gamesdates, seasons, team_ids, weeks, postseason, start_date, end_date, pagination
nfl_get_game_by_idGet specific NFL gameid (required)
nfl_get_statsGet NFL statisticsdates, seasons, team_ids, player_ids, game_ids, weeks, postseason, pagination
nfl_get_season_statsGet season statisticsseason, player_ids, team_ids, postseason, pagination
nfl_get_standingsGet team standingsseason, conference, division
nfl_get_player_injuriesGet player injuriesplayer_ids, team_ids, pagination
nfl_get_advanced_rushing_statsGet advanced rushing statsseason, week, player_ids, team_ids, position, pagination
nfl_get_advanced_passing_statsGet advanced passing statsSame as rushing
nfl_get_advanced_receiving_statsGet advanced receiving statsSame as rushing
nfl_get_betting_oddsGet betting odds for gamesseason, week, game_ids, pagination
nfl_get_team_rosterGet team roster/depth chartid (required), season
nfl_get_player_propsGet player prop betting oddsgame_id (required), player_id, prop_type, vendors

MLB (14 tools)

ToolDescriptionParameters
mlb_get_teamsGet all MLB teamsdivision, league
mlb_get_team_by_idGet specific MLB teamid (required)
mlb_get_playersGet MLB playerssearch, first_name, last_name, team_ids, player_ids, position, active, pagination
mlb_get_player_by_idGet specific MLB playerid (required)
mlb_get_active_playersGet active MLB playersSame as mlb_get_players
mlb_get_gamesGet MLB gamesdates, seasons, team_ids, postseason, start_date, end_date, pagination
mlb_get_game_by_idGet specific MLB gameid (required)
mlb_get_statsGet MLB statisticsdates, seasons, team_ids, player_ids, game_ids, postseason, pagination
mlb_get_season_statsGet season statisticsseason, player_ids, team_ids, postseason, pagination
mlb_get_team_season_statsGet team season statsseason, team_ids, postseason, pagination
mlb_get_standingsGet team standingsseason, league, division
mlb_get_player_injuriesGet player injuriesplayer_ids, team_ids, pagination
mlb_get_player_splitsGet player splits by categoryplayer_id (required), season (required)
mlb_get_player_versusGet player vs player matchupsplayer_id (required), opponent_team_id (required)

EPL (17 tools)

ToolDescriptionParameters
epl_get_teamsGet all EPL teamspagination
epl_get_team_by_idGet specific EPL teamid (required)
epl_get_team_playersGet team playersid (required), pagination
epl_get_team_season_statsGet team season statsid (required), season, stat_types
epl_get_team_stats_leadersGet team stat leadersseason, stat_type, per_page
epl_get_standingsGet EPL standingsseason
epl_get_playersGet EPL playerssearch, team_ids, player_ids, position, pagination
epl_get_player_by_idGet specific EPL playerid (required)
epl_get_player_season_statsGet player season statsid (required), season, stat_types
epl_get_player_stats_leadersGet player stat leadersseason, stat_type, per_page
epl_get_gamesGet EPL gamesdates, seasons, team_ids, weeks, start_date, end_date, pagination
epl_get_game_by_idGet specific EPL gameid (required)
epl_get_game_lineupsGet game lineupsid (required)
epl_get_game_goalsGet game goalsid (required)
epl_get_game_team_statsGet game team statsid (required)
epl_get_game_player_statsGet game player statsid (required)
epl_get_betting_oddsGet betting odds for gamesseason, week, game_ids, pagination
epl_get_player_propsGet player prop betting oddsgame_id (required), player_id, prop_type

NHL (16 tools)

ToolDescriptionParameters
nhl_get_teamsGet all NHL teamsconference, division, pagination
nhl_get_team_by_idGet specific NHL teamid (required)
nhl_get_team_season_statsGet team season statsid (required), season
nhl_get_team_stats_leadersGet team stat leadersseason, stat_type, per_page
nhl_get_playersGet NHL playerssearch, team_ids, player_ids, position, pagination
nhl_get_player_by_idGet specific NHL playerid (required)
nhl_get_player_season_statsGet player season statsid (required), season
nhl_get_player_stats_leadersGet player stat leadersseason, stat_type, per_page
nhl_get_gamesGet NHL gamesdates, seasons, team_ids, season_type, start_date, end_date, pagination
nhl_get_game_by_idGet specific NHL gameid (required)
nhl_get_standingsGet NHL standingsseason, conference, division
nhl_get_box_scoresGet NHL box scoresdates, seasons, team_ids, game_ids, season_type, pagination
nhl_get_betting_oddsGet betting odds for gamesdates, game_ids, pagination
nhl_get_player_propsGet player prop betting oddsgame_id (required), player_id, prop_type
nhl_get_playsGet play-by-play datagame_id (required)
nhl_get_player_injuriesGet currently injured NHL players-

WNBA (14 tools)

ToolDescriptionParameters
wnba_get_teamsGet all WNBA teamsconference
wnba_get_team_by_idGet specific WNBA teamid (required)
wnba_get_playersGet WNBA playerssearch, first_name, last_name, team_ids, player_ids, pagination
wnba_get_player_by_idGet specific WNBA playerid (required)
wnba_get_active_playersGet active WNBA playersSame as wnba_get_players
wnba_get_gamesGet WNBA gamesdates, seasons, team_ids, season_type, start_date, end_date, pagination
wnba_get_game_by_idGet specific WNBA gameid (required)
wnba_get_player_statsGet player game statisticsgame_ids, dates, seasons, player_ids, team_ids, pagination
wnba_get_team_statsGet team game statisticsgame_ids, dates, seasons, team_ids, pagination
wnba_get_player_season_statsGet player season statsplayer_ids, team_ids, season, season_type, pagination
wnba_get_team_season_statsGet team season statsteam_ids, season, season_type, pagination
wnba_get_standingsGet WNBA standingsseason, conference
wnba_get_player_injuriesGet player injuriesplayer_ids, team_ids, pagination
wnba_get_playsGet play-by-play datagame_id (required)

NCAAF (17 tools)

ToolDescriptionParameters
ncaaf_get_conferencesGet all NCAAF conferences-
ncaaf_get_conference_by_idGet specific NCAAF conferenceid (required)
ncaaf_get_teamsGet all NCAAF teamsconference, pagination
ncaaf_get_team_by_idGet specific NCAAF teamid (required)
ncaaf_get_playersGet NCAAF playerssearch, first_name, last_name, team_ids, player_ids, position, pagination
ncaaf_get_active_playersGet active NCAAF playersSame as ncaaf_get_players
ncaaf_get_player_by_idGet specific NCAAF playerid (required)
ncaaf_get_standingsGet NCAAF standingsseason, conference_id, pagination
ncaaf_get_gamesGet NCAAF gamesdates, seasons, team_ids, weeks, start_date, end_date, pagination
ncaaf_get_game_by_idGet specific NCAAF gameid (required)
ncaaf_get_rankingsGet NCAAF rankingsseason, week, pagination
ncaaf_get_playsGet play-by-play datagame_id (required)
ncaaf_get_player_statsGet player game statisticsgame_ids, dates, seasons, player_ids, team_ids, weeks, pagination
ncaaf_get_team_statsGet team game statisticsgame_ids, dates, seasons, team_ids, weeks, pagination
ncaaf_get_player_season_statsGet player season statsseason (required), player_ids, team_ids, pagination
ncaaf_get_team_season_statsGet team season statsseason (required), team_ids, pagination
ncaaf_get_betting_oddsGet betting odds for gamesseason, week, game_ids, pagination

NCAAB (18 tools)

ToolDescriptionParameters
ncaab_get_conferencesGet all NCAAB conferences-
ncaab_get_conference_by_idGet specific NCAAB conferenceid (required)
ncaab_get_teamsGet all NCAAB teamsconference, pagination
ncaab_get_team_by_idGet specific NCAAB teamid (required)
ncaab_get_playersGet NCAAB playerssearch, first_name, last_name, team_ids, player_ids, position, pagination
ncaab_get_player_by_idGet specific NCAAB playerid (required)
ncaab_get_active_playersGet active NCAAB playersSame as ncaab_get_players
ncaab_get_standingsGet NCAAB standingsseason, conference_id, pagination
ncaab_get_gamesGet NCAAB gamesdates, seasons, team_ids, weeks, start_date, end_date, pagination
ncaab_get_game_by_idGet specific NCAAB gameid (required)
ncaab_get_rankingsGet NCAAB rankingsseason, week, pagination
ncaab_get_playsGet play-by-play datagame_id (required)
ncaab_get_player_statsGet player game statisticsgame_ids, dates, seasons, player_ids, team_ids, weeks, pagination
ncaab_get_team_statsGet team game statisticsgame_ids, dates, seasons, team_ids, weeks, pagination
ncaab_get_player_season_statsGet player season statsseason (required), player_ids, team_ids, pagination
ncaab_get_team_season_statsGet team season statsseason (required), team_ids, pagination
ncaab_get_bracketsGet tournament bracketsseason, pagination
ncaab_get_betting_oddsGet betting odds for gamesdates, game_ids, pagination

MMA (12 tools)

ToolDescriptionParameters
mma_get_leaguesGet all MMA leagues (UFC, etc.)-
mma_get_league_by_idGet specific MMA leagueid (required)
mma_get_eventsGet MMA eventsdate, year, pagination
mma_get_event_by_idGet specific MMA eventid (required)
mma_get_fightersGet MMA fighterssearch, fighter_ids, pagination
mma_get_fighter_by_idGet specific MMA fighterid (required)
mma_get_fightsGet MMA fightsfight_ids, fighter_ids, event_ids, pagination
mma_get_fight_by_idGet specific MMA fightid (required)
mma_get_rankingsGet MMA fighter rankings-
mma_get_fight_statsGet detailed fight statisticsfight_ids, fighter_ids, event_ids, pagination
mma_get_fight_stat_by_idGet specific fight statisticsid (required)
mma_get_betting_oddsGet MMA betting oddsevent_id, fight_id

CS2 (16 tools)

ToolDescriptionParameters
cs2_get_teamsGet all CS2 teamssearch, pagination
cs2_get_team_by_idGet specific CS2 teamid (required)
cs2_get_playersGet CS2 playerssearch, team_id, active, pagination
cs2_get_player_by_idGet specific CS2 playerid (required)
cs2_get_tournamentsGet all CS2 tournamentssearch, pagination
cs2_get_tournament_by_idGet specific CS2 tournamentid (required)
cs2_get_tournament_teamsGet teams in a tournamenttournament_id (required)
cs2_get_team_map_poolGet team map pool stats (ALL-STAR tier)team_id (required)
cs2_get_rankingsGet CS2 team rankings (ALL-STAR tier)-
cs2_get_matchesGet CS2 matches (GOAT tier)team_ids, tournament_ids, dates, pagination
cs2_get_match_by_idGet specific CS2 match (GOAT tier)id (required)
cs2_get_match_mapsGet maps for matches (GOAT tier)match_ids (required)
cs2_get_match_map_statsGet round-by-round map stats (GOAT tier)match_map_id (required)
cs2_get_player_match_statsGet player stats for match (GOAT tier)match_id (required)
cs2_get_player_match_map_statsGet player stats for specific map (GOAT tier)match_map_id (required)
cs2_get_player_accuracy_statsGet player accuracy by body part (GOAT tier)player_id (required)

League of Legends (16 tools)

ToolDescriptionParameters
lol_get_teamsGet all professional LOL teamssearch, pagination
lol_get_playersGet LOL playerssearch, team_id, pagination
lol_get_championsGet all LOL champions-
lol_get_itemsGet all LOL in-game items-
lol_get_spellsGet all LOL summoner spells-
lol_get_rune_pathsGet LOL rune paths-
lol_get_runesGet all LOL runes-
lol_get_tournamentsGet LOL tournaments (ALL-STAR tier)pagination
lol_get_tournament_teamsGet teams in a tournament (ALL-STAR tier)tournament_id (required)
lol_get_tournament_rosterGet tournament roster (ALL-STAR tier)tournament_id (required), team_id (required)
lol_get_champion_statsGet champion aggregate stats (ALL-STAR tier)-
lol_get_matchesGet LOL matches (GOAT tier)tournament_id, team_id, pagination
lol_get_match_mapsGet games within a match (GOAT tier)match_id (required)
lol_get_player_match_map_statsGet player stats for games (GOAT tier)match_map_id, player_id, pagination
lol_get_team_match_map_statsGet team stats for games (GOAT tier)match_map_id, team_id, pagination
lol_get_player_overall_statsGet player career stats (GOAT tier)player_id, pagination

Dota 2 (14 tools)

ToolDescriptionParameters
dota_get_teamsGet all professional Dota 2 teamssearch, pagination
dota_get_playersGet Dota 2 playerssearch, team_id, pagination
dota_get_heroesGet all Dota 2 heroes-
dota_get_itemsGet all Dota 2 in-game items-
dota_get_abilitiesGet all Dota 2 hero abilities-
dota_get_tournamentsGet Dota 2 tournaments (ALL-STAR tier)pagination
dota_get_tournament_teamsGet teams in a tournament (ALL-STAR tier)tournament_id (required)
dota_get_tournament_rosterGet tournament roster (ALL-STAR tier)tournament_id (required), team_id (required)
dota_get_hero_statsGet hero aggregate stats (ALL-STAR tier)-
dota_get_matchesGet Dota 2 matches (GOAT tier)tournament_id, team_id, pagination
dota_get_match_mapsGet games within a match (GOAT tier)match_id (required)
dota_get_player_match_map_statsGet player stats for games (GOAT tier)match_map_id, player_id, pagination
dota_get_team_match_map_statsGet team stats for games (GOAT tier)match_map_id, team_id, pagination
dota_get_player_overall_statsGet player career stats (GOAT tier)player_id, pagination

FIFA World Cup 2026 (6 tools)

ToolDescriptionParameters
fifa_get_teamsGet all FIFA World Cup 2026 participating nations-
fifa_get_stadiumsGet all FIFA World Cup 2026 host stadiums-
fifa_get_group_standingsGet group stage standings (Requires ALL-STAR tier)-
fifa_get_matchesGet all matches including group and knockout (GOAT tier)-
fifa_get_betting_oddsGet betting odds for matches (Requires GOAT tier)-
fifa_get_futures_oddsGet futures betting odds (e.g., tournament winner, GOAT)-

La Liga (11 tools)

ToolDescriptionParameters
laliga_get_teamsGet all La Liga teamsseason (required)
laliga_get_rostersGet team rostersteam_id (required), season, pagination
laliga_get_playersGet La Liga playersseason (required), team_ids, search, pagination
laliga_get_standingsGet La Liga standingsseason (required)
laliga_get_matchesGet La Liga matchesseason, team_ids, dates, start_date, end_date, pagination
laliga_get_match_eventsGet match events (goals, cards, etc.)match_ids, pagination
laliga_get_match_lineupsGet match lineupsmatch_ids, pagination
laliga_get_player_match_statsGet player match statisticsmatch_ids, player_ids, pagination
laliga_get_team_match_statsGet team match statisticsmatch_ids, team_ids, pagination
laliga_get_betting_oddsGet betting odds for matchesmatch_ids, dates, pagination
laliga_get_player_propsGet player prop betting oddsmatch_id (required), player_id, prop_type

Serie A (11 tools)

ToolDescriptionParameters
seriea_get_teamsGet all Serie A teamsseason (required)
seriea_get_rostersGet team rostersteam_id (required), season, pagination
seriea_get_playersGet Serie A playersseason (required), team_ids, search, pagination
seriea_get_standingsGet Serie A standingsseason (required)
seriea_get_matchesGet Serie A matchesseason, team_ids, dates, start_date, end_date, pagination
seriea_get_match_eventsGet match events (goals, cards, etc.)match_ids, pagination
seriea_get_match_lineupsGet match lineupsmatch_ids, pagination
seriea_get_player_match_statsGet player match statisticsmatch_ids, player_ids, pagination
seriea_get_team_match_statsGet team match statisticsmatch_ids, team_ids, pagination
seriea_get_betting_oddsGet betting odds for matchesmatch_ids, dates, pagination
seriea_get_player_propsGet player prop betting oddsmatch_id (required), player_id, prop_type

UEFA Champions League (12 tools)

ToolDescriptionParameters
ucl_get_teamsGet all UCL teamsseason (required)
ucl_get_rostersGet team rostersteam_id (required), season, pagination
ucl_get_playersGet UCL playersseason (required), team_ids, search, pagination
ucl_get_standingsGet UCL standingsseason (required)
ucl_get_matchesGet UCL matchesseason, team_ids, dates, start_date, end_date, pagination
ucl_get_match_eventsGet match events (goals, cards, etc.)match_ids, pagination
ucl_get_match_lineupsGet match lineupsmatch_ids, pagination
ucl_get_player_match_statsGet player match statisticsmatch_ids, player_ids, pagination
ucl_get_team_match_statsGet team match statisticsmatch_ids, team_ids, pagination
ucl_get_betting_oddsGet betting odds for matchesmatch_ids, dates, pagination
ucl_get_player_propsGet player prop betting oddsmatch_id (required), player_id, prop_type
ucl_get_futures_oddsGet futures betting odds-

Bundesliga (11 tools)

ToolDescriptionParameters
bundesliga_get_teamsGet all Bundesliga teamsseason (required)
bundesliga_get_rostersGet team rostersteam_id (required), season, pagination
bundesliga_get_playersGet Bundesliga playersseason (required), team_ids, search, pagination
bundesliga_get_standingsGet Bundesliga standingsseason (required)
bundesliga_get_matchesGet Bundesliga matchesseason, team_ids, dates, start_date, end_date, pagination
bundesliga_get_match_eventsGet match events (goals, cards, etc.)match_ids, pagination
bundesliga_get_match_lineupsGet match lineupsmatch_ids, pagination
bundesliga_get_player_match_statsGet player match statisticsmatch_ids, player_ids, pagination
bundesliga_get_team_match_statsGet team match statisticsmatch_ids, team_ids, pagination
bundesliga_get_betting_oddsGet betting odds for matchesmatch_ids, dates, pagination
bundesliga_get_player_propsGet player prop betting oddsmatch_id (required), player_id, prop_type

Ligue 1 (11 tools)

ToolDescriptionParameters
ligue1_get_teamsGet all Ligue 1 teamsseason (required)
ligue1_get_rostersGet team rostersteam_id (required), season, pagination
ligue1_get_playersGet Ligue 1 playersseason (required), team_ids, search, pagination
ligue1_get_standingsGet Ligue 1 standingsseason (required)
ligue1_get_matchesGet Ligue 1 matchesseason, team_ids, dates, start_date, end_date, pagination
ligue1_get_match_eventsGet match events (goals, cards, etc.)match_ids, pagination
ligue1_get_match_lineupsGet match lineupsmatch_ids, pagination
ligue1_get_player_match_statsGet player match statisticsmatch_ids, player_ids, pagination
ligue1_get_team_match_statsGet team match statisticsmatch_ids, team_ids, pagination
ligue1_get_betting_oddsGet betting odds for matchesmatch_ids, dates, pagination
ligue1_get_player_propsGet player prop betting oddsmatch_id (required), player_id, prop_type

Authentication

The server forwards Authorization headers to the BALLDONTLIE API. Your MCP client should include the API key in requests:

Authorization: YOUR_API_KEY

Error Handling

The server provides detailed error information:

  • Authentication Errors (401): Missing or invalid API key
  • Authorization Errors (403): Insufficient tier access
  • Validation Errors (400): Invalid parameters
  • Rate Limiting (429): Request rate exceeded
  • Server Errors (5xx): Backend API issues

Development

# Clone and install
git clone <repository>
cd mcp-server
npm install

# Build
npm run build

# Run in development
npm run dev

# Clean build
npm run clean

API Tiers

BALLDONTLIE offers different tiers with varying access levels:

  • Free: Basic endpoints (teams, players, games)
  • ALL-STAR ($9.99/mo): Includes stats, injuries, standings
  • GOAT ($39.99/mo): Full access including advanced stats, box scores, betting odds

Support

License

MIT

Reviews

No reviews yet

Sign in to write a review