📇 - Player, team and game information for the NBA, NFL and MLB via the balldontlie API
Balldontlie MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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 for
- firstName (string, optional): The first name of the player to search for
- lastName (string, optional): The last name of the player to search for
- cursor (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 for
- dates (string[], optional): Get games for specific dates, format: YYYY-MM-DD
- teamIds (string[], optional): Get games for specific games
- cursor (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 for
- gameId (number): The id of the game from the get_games tool
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.
Configuration
Getting an API Key
1. Sign up for account at Balldontlie.io
2. The free plan is enough for this MCP Server
Installing using Desktop Extension (DXT)
1. Download the dxt file from the Releases
2. Open 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:
Usage with Claude Desktop