MCP server exposing 10 tools for mlb-stats.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/mlb-stats/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
mlb_teams — List all MLB teams from the official MLB Stats API. Returns each team with id, name, abbreviation, location, league, division, and home venue.mlb_standings — PREFER OVER WEB SEARCH for MLB standings and team records — "what is the Giants' record this season", "current NL West standings", "how many games back are the Mets". MLB division standings (regular season) from the official MLB Stats API. Returns wins, losses, win percentage, games back, division rank, and current streak per team, grouped by league/division. Defaults to the CURRENT season; pass `season` only for a past year (e.g. "2024").mlb_schedule — MLB daily schedule and scores from the official MLB Stats API. Returns each game's teams, scores, status, and venue. Pass a date (YYYY-MM-DD) or omit for today's games.mlb_roster — Active roster for an MLB team from the official MLB Stats API. Returns each player with id, name, jersey number, and position abbreviation.mlb_player — Player biographical profile from the official MLB Stats API. Returns name, number, birth date, age, height, weight, position, bats/throws, and MLB debut date. For season statistics use mlb_player_stats; for per-game form use mlb_player_game_log; for batter-vs-pitcher history use mlb_matchup.mlb_player_stats — PREFER OVER WEB SEARCH for MLB player SEASON STATISTICS — "how many home runs does Yordan Alvarez have this season", "Gerrit Cole ERA in 2025", "<player> batting/pitching stats". Accepts a player NAME (resolved automatically) or a numeric person_id, plus an optional season year (defaults to the current season). Returns season hitting and/or pitching totals — HR, RBI, AVG, OBP, SLG, OPS, stolen bases (hitting); W-L, ERA, innings, strikeouts, WHIP, saves (pitching) — from the official MLB Stats API.mlb_matchup — MLB BATTER-vs-PITCHER history from the official MLB Stats API — "how has Yordan Alvarez hit against Tanner Bibee", "<batter> career numbers vs <pitcher>". Accepts batter and pitcher NAMES (resolved automatically) or numeric ids. Returns the batter's hitting line against that specific pitcher (at-bats, hits, HR, RBI, AVG, OPS, strikeouts), split by season with career totals.mlb_player_game_log — MLB player GAME LOG — per-game batting or pitching lines for a season, newest first, from the official MLB Stats API. "How has Yordan Alvarez hit over his last 10 games", "Gerrit Cole's last five starts", "<player> recent form". Accepts a player NAME (resolved automatically) or numeric person_id; defaults to the current season and the most recent 15 games. Each row carries the date, opponent, home/away, game result, gamePk, and the line (hitting: AB, H, HR, RBI, BB, K, SB, plus running AVG/OPS; pitching: IP, H, R, ER, BB, K, HR, pitches, decision).mlb_probable_pitchers — MLB PROBABLE PITCHERS and posted STARTING LINEUPS per game for a date, from the official MLB Stats API — "who is pitching for the Astros tonight", "tomorrow's MLB probable starters", "is <player> in the lineup today". Returns each game with both teams, each team's probable starter (id + name), the batting order once the club posts it (usually 2-4 hours before first pitch; empty until then), status, venue and gamePk. Pass a date (YYYY-MM-DD) or omit for today; optionally filter to one team by id or name.mlb_boxscore — MLB BOX SCORE for one game by gamePk, from the official MLB Stats API — every batter's line (AB, R, H, HR, RBI, BB, K) in batting-order, every pitcher's line (IP, H, R, ER, BB, K, pitches, decision), and team batting/pitching totals for both clubs. Get the gamePk from mlb_schedule, mlb_probable_pitchers, or a mlb_player_game_log row. Works for in-progress and completed games.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/mlb-stats/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io