Skip to content
FastballAPI
MCP server + baseball skills

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.

json
{
  "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.

Open endpoint docs
list_teams1cr

Team ids, abbreviations and colours for a season

search_players1cr

Find players by name

get_games2cr

Games with runs, hits and errors by season, date, range or team

get_schedule2cr

Upcoming games with the median line across sportsbooks

get_standings2cr

Standings from every final game, with run differential and Pythagorean record

get_injuries2cr

The latest injury report

get_ratings2cr

Our team Elo ratings, ranked

get_game5cr

One game: every batting and pitching line, each book's line, win probability

get_player5cr

Season batting (AVG, OBP, SLG, OPS, RE24) and pitching (ERA, WHIP, K/9)

get_player_games5cr

A player's full batting and pitching game log

get_leaders5cr

Season leaders among qualified batters and pitchers

get_team_stats5cr

Runs for and against, team batting and opponents' batting

get_pitch_mix5cr

A pitcher's arsenal: usage, velocity, whiff rate per pitch type

get_odds5cr

Every sportsbook's moneyline, run line and total for a game (5) or a day (10)

get_plate_appearances10cr

Plate-appearance play-by-play with base-out state, batted ball, win probability, RE24

get_pitches10cr

Pitch-by-pitch: count, type, velocity, location, result

get_spray_chart10cr

Where a batter or team hits the ball, by trajectory and field

get_line_movement10cr

Snapshots of each sportsbook's line before first pitch

get_player_props10cr

Player prop lines by sportsbook: the closing line (one pre-game capture per line before October 2026)

get_prop_history10cr

A player's prop lines against the result, game by game

get_prop_movement10cr

How one player's prop line moved before a game, every capture by sportsbook

get_market_odds10cr

Opening and closing lines by sportsbook for the first-5-innings and first-inning markets (history from May 2023)

get_alt_lines10cr

Alternate run lines and totals by sportsbook: every point on each book's ladder, opening and closing, from 2023

23
MCP tools
20
skills
2
skill categories
01

Baseball skills

Previews, research and the sport's own metrics, every number from a live call.

mlb-batter-spray-profile

Reports balls in play by trajectory and by field (left, center, right) with hit rates and counts, for a season or the postseason.

mlb-game-preview

One-page report: records and run differential, offense and run prevention, our Elo, the starters' arsenals when known, the line and what it implies.

mlb-pitcher-skill-change

Compares pitch usage, average and top velocity and whiff rate by pitch type across seasons or games, with pitch counts.

mlb-regression-candidates

Compares results against steadier rates (BABIP computed from plate appearances, strikeout and walk rates, home runs per plate appearance) with sample sizes.

mlb-streaming-planner

Builds a week view from the schedule, opponents' offence and run prevention, recent form of named players, injuries and the market's total.

mlb-win-prob-swings

Orders a game's plate appearances by change in our home win probability and run value, with the base-out state.

02

Any sport

Modeling, backtesting, calibration, Elo and charts. Odds are treated as information about the market, never as advice to bet.

backtesting

Walk-forward only; refuses in-sample testing. Reports sample size, an interval and a per-season breakdown.

data-pipeline

Covers pulls through any sport's SportsDataHQ MCP server.

elo-engineering

Works for team sports and for tennis, golf, UFC and cricket player or fighter ratings.

feature-engineering

Enforces shift(1) before any rolling calculation.

market-vs-model

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.

model-building

Always walk-forward; refuses k-fold. Works for any sport.

nl-to-query

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-market-analysis

Odds are treated as information about the market, never as an instruction to wager.

prediction-tracker

Logs probability, outcome, Brier score, log loss, calibration and closing-line comparison, with sample size and intervals.

probability-calibration

Verifies and corrects predicted probabilities against outcomes, with sample size and intervals.

sports-data-preflight

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.

sports-skill-router

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.

visualization

Renders output from another skill as matplotlib/seaborn code or a terminal chart.

walk-forward-validation

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

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.