Pulls everything you'd want from MLB via ESPN's public endpoints: live scores, standings, rosters, schedules, full box scores, play-by-play, win probability charts, injury reports, transactions, depth charts, and team/player stats. Zero configuration, no API keys required. Works through a CLI that avoids Python import hassles. Covers all 30 teams and handles season logic correctly (the MLB season runs April through October, so "current season" in February means last year). Won't help with minor leagues, college ball, or betting odds, but for major league data it's comprehensive and ready to go out of the box.

skills.sh installs
775
GitHub stars
268
last updated
Aug 21, 2026

Install

$ npx -y skills add machina-sports/sports-skills --skill mlb-data --agent claude-code

Installs into .claude/skills of the current project.

Files

MLB Data

Before writing queries, consult references/api-reference.md for endpoints, ID conventions, and data shapes.

Setup

Before first use, check if the CLI is available:

which sports-skills || pip install sports-skills

If pip install fails with a Python version error, the package requires Python 3.10+. Find a compatible Python:

python3 --version  # check version
# If < 3.10, try: python3.12 -m pip install sports-skills
# On macOS with Homebrew: /opt/homebrew/bin/python3.12 -m pip install sports-skills

No API keys required.

Quick Start

Prefer the CLI — it avoids Python import path issues:

sports-skills mlb get_scoreboard
sports-skills mlb get_standings --season=2025
sports-skills mlb get_teams

CRITICAL: Before Any Query

CRITICAL: Before calling any data endpoint, verify:

  • Season year is derived from the system prompt's currentDate — never hardcoded.
  • If only a team name is provided, call get_teams to resolve the team ID before using team-specific commands.

Choosing the Season

Derive the active season from the system prompt's date — not just the calendar year.

Sponsors

Details

Repository
github.com/machina-sports/sports-skills
Categories
Backend & APIs, Data Science & ML, Marketing & SEO, Game Development
First seen
Jun 3, 2026

More from machina-sports/sports-skills

All 18
1adobe avatarappbuilder-action-scaffolderadobe/skillsCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add768skills.sh installs
2databricks avatardatabricks-model-servingdatabricks/databricks-agent-skillsDatabricks Model Serving endpoint lifecycle and ops. Use when asked to: CRUD serving endpoints (CLI or MLflow Deployments client); configure traffic routing for756skills.sh installs
3mvanhorn avatarpp-contact-goatmvanhorn/printing-press-librarySuper LinkedIn for the terminal. Search, enrich, and map warm-intro paths across LinkedIn (stickerdaniel/linkedin-mcp-server subprocess), Happenstance (cookie-f752skills.sh installs
4alirezarezvani avatarperformance-profileralirezarezvani/claude-skillsSystematic performance profiling for Node.js, Python, and Go applications. Identifies CPU, memory, and I/O bottlenecks, generates flamegraphs, analyzes bundle s750skills.sh installs
5zxkane avataraws-mcp-setupzxkane/aws-skillsConfigure AWS MCP servers for documentation search and API access. Use when setting up AWS MCP, configuring AWS documentation tools, troubleshooting MCP connect747skills.sh installs
6brightdata avataragent-onboardingbrightdata/skillsOnboard an agent to Bright Data. Use when a coding agent first encounters Bright Data — for live web work (search, scrape, structured data), for wiring Bright D744skills.sh installs