MLB Stats API

live Sports

Official MLB statistics — schedule, scores, rosters, player stats, standings, box scores, live game feed. No auth.

8 tools
0ms auth
free tier 50 calls/day

Tools

schedule

Game schedule by date / season / team.

Parameters
Name Type Description
date opt string
start_date opt string
end_date opt string
season opt string
team_id opt number
sport_id opt number
Try it
standings

Standings by league / division.

Parameters
Name Type Description
league_id opt string
season opt string
date opt string
standings_type opt string
Try it
get_team required: team_id

Team profile.

Parameters
Name Type Description
team_id req number
Try it
team_roster required: team_id

Players on a team.

Parameters
Name Type Description
team_id req number
roster_type opt string
season opt string
Try it
get_player required: player_id

Player profile.

Parameters
Name Type Description
player_id req number
Try it
player_stats required: player_id

Season / career stats.

Parameters
Name Type Description
player_id req number
group opt string
season opt string
stats opt string
Try it
get_boxscore required: game_pk

Box score for a game.

Parameters
Name Type Description
game_pk req number
Try it
get_game_feed required: game_pk

Live game feed (play-by-play).

Parameters
Name Type Description
game_pk req number
Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/mlb-stats/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
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":"schedule","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("schedule", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("official mlb statistics — schedule, scores, rosters, player stats, standings, box scores, live game feed");