BALLDONTLIE

BALLDONTLIE

Official
balldontlie-api

Provides access to comprehensive sports data from 18+ major leagues including NBA, NFL, MLB, NHL, and esports through the BALLDONTLIE API. Offers 250+ endpoints for teams, players, games, statistics, and betting odds.

Comprehensive sports data and analytics API covering NBA, NFL, MLB, NHL, and 6+ other major leagues

7478 views5Remote

What it does

  • Query player statistics and information across 18 leagues
  • Fetch game schedules and results
  • Access team standings and rankings
  • Retrieve injury reports and player status
  • Get betting odds and advanced analytics
  • Browse historical game data with pagination

Best for

Sports analysts building data dashboardsFantasy sports applicationsSports betting research and analysisSports journalism and content creation
250+ sports endpoints18 major leagues and esportsRemote hosted option available

About BALLDONTLIE

BALLDONTLIE is an official MCP server published by balldontlie-api that provides AI assistants with tools and capabilities via the Model Context Protocol. BALLDONTLIE — Comprehensive sports data & analytics API for NBA, NFL, MLB, NHL and 6+ major leagues. Fast, reliable stat It is categorized under developer tools, analytics data.

How to install

You can install BALLDONTLIE in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server supports remote connections over HTTP, so no local installation is required.

License

BALLDONTLIE is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

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

README truncated. View full README on GitHub.

Alternatives

Related Skills

Browse all skills
usage-export

Export OpenClaw usage data to CSV for analytics tools like Power BI. Hourly aggregates by activity type, model, and channel.

1
mcp-developer

Use when building MCP servers or clients that connect AI systems with external tools and data sources. Invoke for MCP protocol compliance, TypeScript/Python SDKs, resource providers, tool functions.

1
ccxt-typescript

CCXT cryptocurrency exchange library for TypeScript and JavaScript developers (Node.js and browser). Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors. Use when working with crypto exchanges in TypeScript/JavaScript projects, trading bots, arbitrage systems, or portfolio management tools. Includes both REST and WebSocket examples.

1
dotnet-backend

.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET Core, Entity Framework Core, EF Core, .NET Core, minimal API, Web API, gRPC, authentication .NET, Identity, JWT .NET, authorization, LINQ, async/await C#, background service, IHostedService, SignalR, SQL Server, PostgreSQL .NET, dependency injection, middleware .NET.

109
supabase-developer

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

87
python-expert

Senior Python developer expertise for writing clean, efficient, and well-documented code. Use when: writing Python code, optimizing Python scripts, reviewing Python code for best practices, debugging Python issues, implementing type hints, or when user mentions Python, PEP 8, or needs help with Python data structures and algorithms.

40