mlb-data US Sports
Run on Machina
Coming soon
MLB data via ESPN public endpoints and the official MLB Stats API — scores, standings, rosters, schedules, game summaries, injuries, leaders, and news, plus an analytics backend: pitch-level velocity/spin/exit-velocity, career splits by stat group, league leaders, and schedules to 1901. Zero config, no API keys.
Commands
| Command | Description |
|---|---|
get_scoreboard |
Live/recent MLB scores |
get_standings |
Standings by league and division |
get_teams |
All 30 MLB teams |
get_team_roster |
Full roster for a team |
get_team_schedule |
Schedule for a specific team |
get_game_summary |
Detailed box score and scoring plays |
get_leaders |
MLB statistical leaders |
get_news |
MLB news articles |
get_play_by_play |
Full play-by-play for a game |
get_win_probability |
Win probability chart data |
get_schedule |
Schedule for a specific date or season |
get_injuries |
Injury reports across all teams |
get_transactions |
Recent transactions |
get_depth_chart |
Depth chart for a team |
get_team_stats |
Team statistical profile |
get_player_stats |
Player statistical profile |
find_mlb_player |
Search MLB's player registry by name |
get_mlbstats_schedule |
Games via the MLB Stats API — history to 1901, carries gamePk ids |
get_mlbstats_player_stats |
Season/career/year-by-year splits by stat group via MLB Stats API |
get_mlbstats_play_by_play |
Pitch-level PBP — velocity, spin, plate coords, exit velo, launch angle |
get_mlbstats_boxscore |
Full box score with per-player batting/pitching via MLB Stats API |
get_mlbstats_standings |
Standings by division via MLB Stats API |
get_mlbstats_leaders |
League leaders for any stat category via MLB Stats API |
Example Prompts
- What are today's MLB scores?
- Show me the AL East standings
- Who's on the Yankees roster?
- Show me the full box score for last night's Dodgers game
- Who's on the IL for the Yankees?
Quick Start
# CLI
sports-skills mlb-data get_scoreboard
# Python
from sports_skills import mlb_data
mlb_data.get_scoreboard()