MLB Stats API
liveSportsOfficial MLB statistics — schedule, scores, rosters, player stats, standings, box scores, live game feed. No auth.
Tools
mlb_teamsList all MLB teams from the official MLB Stats API. Returns each team with id, name, abbreviation, location, league, division, and home venue.
No parameters required.
Try it
mlb_standingsMLB division standings and team records, from the official MLB stats feed.
No parameters required.
Try it
mlb_scheduleMLB 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.
No parameters required.
Try it
mlb_rosterActive roster for an MLB team from the official MLB Stats API. Returns each player with id, name, jersey number, and position abbreviation.
No parameters required.
Try it
mlb_playerPlayer 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_stat
No parameters required.
Try it
mlb_player_statsAn MLB player's season batting or pitching statistics, from the official MLB stats feed.
No parameters required.
Try it
mlb_matchupMLB 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 au
No parameters required.
Try it
mlb_player_game_logMLB 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 star
No parameters required.
Try it
mlb_probable_pitchersMLB 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 t
No parameters required.
Try it
mlb_boxscoreMLB 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),
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/mlb-stats/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/mlb-stats/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"mlb_teams","arguments":{}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("mlb_teams", {});// Or ask in plain English:
const answer = await px.ask("official mlb statistics — schedule, scores, rosters, player stats, standings, box scores, live game feed");