An MCP Server implementation that integrates the Balldontlie API, to provide information about players, teams and games for the NBA, NFL and MLB
An MCP Server implementation that integrates the Balldontlie API, to provide information about players, teams and games for the NBA, NFL and MLB.
get_teams
league
(enum ['NBA', 'NFL', 'MLB']): The sports league to get teams forget_players
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 paginationget_games
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 paginationget_game
league
(enum ['NBA', 'NFL', 'MLB']): The sports league to get the game forgameId
(number): The id of the game from the get_games toolTo install balldontlie-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @mikechao/balldontlie-mcp --client claude
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"
}
}
}
}
mcpServers:
balldontlie:
command: sh
args:
- "-c"
- "BALLDONTLIE_API_KEY=your-api-key-here npx -y balldontlie-mcp"
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.
This library is not officially associated with balldontlie.io. It is a third-party implementation of the balldontlie api with a MCP Server.