balldontlie-mcp
The balldontlie-mcp server integrates the Balldontlie API to provide sports data for NBA, NFL, and MLB leagues. With this server, you can:
Retrieve lists of teams for a specified league
Fetch player lists with optional filters for name and pagination
Obtain game lists with filters for dates, teams, seasons, and pagination
Access specific game details using game ID and league
Generate interactive league schedules within Claude Desktop for a given date range
Enables access to MLB information through the Balldontlie API, allowing retrieval of team data, player profiles, and game statistics including specific games or games filtered by dates and teams.
Provides access to NBA information through the Balldontlie API, allowing retrieval of team data, player profiles, and game statistics including specific games or games filtered by dates and teams.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@balldontlie-mcp show me today's NBA games"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Balldontlie MCP Server
An MCP Server implementation that integrates the Balldontlie API, to provide information about players, teams and games for the NBA, NFL and MLB.
Tools
get_teams
Gets the list of team from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)
Inputs:
league(enum ['NBA', 'NFL', 'MLB']): The sports league to get teams for
get_players
Gets the list of players from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)
Inputs:
league(enum ['NBA', 'NFL', 'MLB']): The sports league to get players forfirstName(string, optional): The first name of the player to search forlastName(string, optional): The last name of the player to search forcursor(number, optional): Cursor for pagination
get_games
Gets the list of games from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)
Inputs:
league(enum ['NBA', 'NFL', 'MLB']): The sports league to get games fordates(string[], optional): Get games for specific dates, format: YYYY-MM-DDteamIds(string[], optional): Get games for specific gamescursor(number, optional): Cursor for pagination
get_game
Get a specific game from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)
Inputs:
league(enum ['NBA', 'NFL', 'MLB']): The sports league to get the game forgameId(number): The id of the game from the get_games tool
Related MCP server: mlb-api-mcp
Prompts
schedule_generator
Given a league (NBA, MLB, NFL), a starting date and ending date generates an interactive schedule in Claude Desktop.

Sample queries
With this MCP Server installed you can ask Claude or other LLM questions like the following.
Show me today's baseball games.
Can you find football players with the last name Purdy?
How many NBA players have the last name Ming?Configuration
Getting an API Key
Sign up for account at Balldontlie.io
The free plan is enough for this MCP Server
Installing using Desktop Extension (DXT)
Download the
dxtfile from the ReleasesOpen it with Claude Desktop or Go to File -> Settings -> Extensions and drag the .DXT file to the window to install it
Installing via Smithery
To install balldontlie-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @mikechao/balldontlie-mcp --client claudeUsage with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcp-servers": {
"balldontlie": {
"command": "npx",
"args": [
"-y",
"balldontlie-mcp"
],
"env": {
"BALLDONTLIE_API_KEY": "YOUR API KEY HERE"
}
}
}
}Usage with LibreChat
mcpServers:
balldontlie:
command: sh
args:
- -c
- BALLDONTLIE_API_KEY=your-api-key-here npx -y balldontlie-mcpLicense
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Disclaimer
This library is not officially associated with balldontlie.io. It is a third-party implementation of the balldontlie api with a MCP Server.
Hosted deployment
A hosted deployment is available on Fronteir AI.
Available Tools
4 toolsget_gameB
Get a specific game from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)
Inputs: league (required), gameId (required).
get_gamesB
Gets the list of games from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)
Inputs: league (required), dates, seasons, teamIds, +1 more.
get_playersA
Gets the list of players from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)
Inputs: league (required), firstName, lastName, cursor.
get_teamsA
Gets the list of team from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)
Inputs: league (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct resource: a single game, list of games, players, or teams. There is no overlap in functionality.
All tools follow a consistent verb_noun pattern with get_ prefix and snake_case. No deviations.
Four tools are well-scoped for a sports data server covering three leagues. Not too many or too few.
The server provides only read operations. Missing single-player and single-team retrieval, and no filtering or search capabilities are indicated in descriptions.
Maintenance
Related MCP Connectors
The official MCP Server for the Mux API
A simple MCP server built with FastMCP and python
MCP server for the Vulners.com API
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP Server that enables interaction with MLB scores and statistics via the SportsData.io MLB V3 Scores API, allowing users to access baseball data through natural language queries.-
- AlicenseBqualityDmaintenancePython MCP server that provides comprehensive access to MLB statistics and baseball data through a FastAPI-based interface. Acts as a bridge between AI applications and MLB data sources, enabling seamless integration of baseball statistics, game information, player data, and more.2459MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server for accessing college basketball statistics through the SportsData.io CBB v3 Stats API, enabling AI agents to retrieve and analyze college basketball data through natural language interactions.-
- AlicenseAqualityDmaintenanceMCP server for NBA live data and stats, providing read-only tools to query live scores, box scores, player info, standings, and more from NBA.com.1516 npm1MIT