Skip to content

Comprehensive MLB data skill pairing ESPN scores and rosters with pitch-level analytics and history back to 1901.

CCM score
57 of 100
skills.sh installs
822
GitHub stars
274
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers scores, standings, rosters, schedules, box scores, play-by-play, injuries, transactions, news, and league leaders
  • Includes pitch-level velocity, spin, plate coordinates, exit velocity, and launch angle via the MLB Stats API
  • Maps ESPN and MLB team abbreviations and game ids so records from both sources can be joined
  • Designed for MLB queries only; minor league, college, and other sports route to dedicated skills

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.

Details

Repository
github.com/machina-sports/sports-skills
Categories
Data Science & Analytics, Social Media
First seen
Jun 3, 2026

Questions

What does the mlb-data skill do for MLB questions?

The mlb-data skill answers MLB questions with scores, standings, rosters, schedules, game summaries, injuries, leaders and news from ESPN and the official MLB Stats API. It also covers pitch-level velocity, spin and exit velocity, career splits and schedules back to 1901. It uses no API keys and needs no configuration.

How do I install the mlb-data skill?

Run npx -y skills add machina-sports/sports-skills --skill mlb-data -y in your project to install it. Once installed, the agent can pull live MLB scores, standings, box scores and pitch-level data on request.

Does the mlb-data skill need an API key or account?

No, the mlb-data skill needs no API keys or accounts, since it reads public ESPN and MLB Stats API endpoints. It only requires the sports-skills CLI, which the skill installs with pip if it is missing, on Python 3.10 or newer.

Where does mlb-data stand in the Data Science and Analytics category?

The mlb-data skill is listed in the Data Science and Analytics category on Claude Marketplaces, alongside azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. It is the skill to use for MLB statistics, while other leagues go to their own data skills.

More from machina-sports/sports-skills

All 18