Claude skills for baseball analytics.
Free Claude skills that turn Claude into a baseball analyst: game previews with starters' arsenals, run differential and our Elo, plus modeling and calibration skills, all on the FastballAPI MCP server.
# Install the skills as a Claude Code plugin
> /plugin marketplace add sports-data-hq/sportsdatahq-skills
> /plugin install mlb-data@sportsdatahq
# Add the MCP server
$ claude mcp add fastballapi https://mcp.fastballapi.com/mcp?key=YOUR_API_KEY --transport streamable-http
# Then ask Claude a stable first question
$ claude "Using FastballAPI, show today's MLB games with each sportsbook's moneyline and run total. Cite the tools used."Claude Desktop config
Use this when your MCP client accepts a Streamable HTTP URL.
{
"mcpServers": {
"fastballapi": {
"url": "https://mcp.fastballapi.com/mcp?key=YOUR_API_KEY"
}
}
}First useful prompts
“Using FastballAPI, show today's MLB games with each sportsbook's moneyline and run total. Cite the tools used.”
“Using FastballAPI, break down one starting pitcher's pitch mix and whiff rate by pitch type this season. Cite the tools used.”
“Using FastballAPI, pull a pitcher's strikeout prop lines for his last five starts next to his actual strikeouts. Cite the tools used.”
23 MCP tools
The same baseball data is available through REST and MCP. Credits are charged per tool call.
list_teams1crTeam ids, abbreviations and colours for a season
search_players1crFind players by name
get_games2crGames with runs, hits and errors by season, date, range or team
get_schedule2crUpcoming games with the median line across sportsbooks
get_standings2crStandings from every final game, with run differential and Pythagorean record
get_injuries2crThe latest injury report
get_ratings2crOur team Elo ratings, ranked
get_game5crOne game: every batting and pitching line, each book's line, win probability
get_player5crSeason batting (AVG, OBP, SLG, OPS, RE24) and pitching (ERA, WHIP, K/9)
get_player_games5crA player's full batting and pitching game log
get_leaders5crSeason leaders among qualified batters and pitchers
get_team_stats5crRuns for and against, team batting and opponents' batting
get_pitch_mix5crA pitcher's arsenal: usage, velocity, whiff rate per pitch type
get_odds5crEvery sportsbook's moneyline, run line and total for a game (5) or a day (10)
get_plate_appearances10crPlate-appearance play-by-play with base-out state, batted ball, win probability, RE24
get_pitches10crPitch-by-pitch: count, type, velocity, location, result
get_spray_chart10crWhere a batter or team hits the ball, by trajectory and field
get_line_movement10crSnapshots of each sportsbook's line before first pitch
get_player_props10crPlayer prop lines by sportsbook: the closing line (one pre-game capture per line before October 2026)
get_prop_history10crA player's prop lines against the result, game by game
get_prop_movement10crHow one player's prop line moved before a game, every capture by sportsbook
get_market_odds10crOpening and closing lines by sportsbook for the first-5-innings and first-inning markets (history from May 2023)
get_alt_lines10crAlternate run lines and totals by sportsbook: every point on each book's ladder, opening and closing, from 2023
Baseball skills
Previews, research and the sport's own metrics, every number from a live call.
Reports balls in play by trajectory and by field (left, center, right) with hit rates and counts, for a season or the postseason.
One-page report: records and run differential, offense and run prevention, our Elo, the starters' arsenals when known, the line and what it implies.
Compares pitch usage, average and top velocity and whiff rate by pitch type across seasons or games, with pitch counts.
Compares results against steadier rates (BABIP computed from plate appearances, strikeout and walk rates, home runs per plate appearance) with sample sizes.
Builds a week view from the schedule, opponents' offence and run prevention, recent form of named players, injuries and the market's total.
Orders a game's plate appearances by change in our home win probability and run value, with the base-out state.
Any sport
Modeling, backtesting, calibration, Elo and charts. Odds are treated as information about the market, never as advice to bet.
Walk-forward only; refuses in-sample testing. Reports sample size, an interval and a per-season breakdown.
Covers pulls through any sport's SportsDataHQ MCP server.
Works for team sports and for tennis, golf, UFC and cricket player or fighter ratings.
Enforces shift(1) before any rolling calculation.
Covers model vs market gap, fair (no-margin) probability, closing-line comparison as a measure of model quality, and how large a sample must be before a gap means anything. Odds are information only: no stake sizing, no wagering advice.
Always walk-forward; refuses k-fold. Works for any sport.
Translates the question into conditions, calls your sport's SportsDataHQ MCP tools, retries with adjusted filters when results look wrong, and reports counts with sample size.
Odds are treated as information about the market, never as an instruction to wager.
Logs probability, outcome, Brier score, log loss, calibration and closing-line comparison, with sample size and intervals.
Verifies and corrects predicted probabilities against outcomes, with sample size and intervals.
Use when the user says 'compare', 'over the last N games', 'this season', 'career', 'trend', or names a player whose id you do not have yet.
Routes the request to the right two or three skills so not all of them load. Single-skill requests (for example 'devig these odds') can go straight to odds-market-analysis without this router.
Renders output from another skill as matplotlib/seaborn code or a terminal chart.
Gives the time-ordered (walk-forward) method with per-season results, baselines and intervals, and redirects k-fold on time-ordered data.
Skills for other sports
- 31 Claude skills for hockey analytics from PuckAPI
- 21 Claude skills for football analytics from EndzoneAPI
- 18 Claude skills for MMA analytics from FighterAPI
- 19 Claude skills for soccer analytics from StrikerAPI
- 19 Claude skills for basketball analytics from DunkAPI
- 18 Claude skills for tennis analytics from AcesAPI
- 19 Claude skills for golf analytics from BirdieAPI
- 19 Claude skills for cricket analytics from YorkerAPI
Open source methodology. Production-ready data.
The skills are free forever. When you need real data, FastballAPI is ready. Start with 500 free credits every month.