MLB Stats API

live Sports

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

5 tools
0ms auth
free tier 50 calls/day

Tools

get_teams

List 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
get_standings

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. Pass

No parameters required.

Try it
get_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.

No parameters required.

Try it
get_roster

Active 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
get_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.

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.

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":"get_teams","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("get_teams", {});
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");