# Mlb Stats (npm · @pipeworx/mcp-mlb-stats)

MLB Stats API MCP — official MLB statistics (keyless).

- Trust score: 84/100 (high trust)
- Change this week: +3
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-05

## Components

- remote · `gateway.pipeworx.io`: 78/100, [markdown](https://verifymcp.io/servers/pipeworx-io-mlb-stats/mlb-stats-mcp.md), [page](https://verifymcp.io/servers/pipeworx-io-mlb-stats/mlb-stats-mcp)
- npm · `@pipeworx/mcp-mlb-stats`: 84/100 (this document), [markdown](https://verifymcp.io/servers/pipeworx-io-mlb-stats/pipeworx-mcp-mlb-stats.md), [page](https://verifymcp.io/servers/pipeworx-io-mlb-stats/pipeworx-mcp-mlb-stats)

## Channel facts

- Registry: `npm`
- Package: `@pipeworx/mcp-mlb-stats`
- Version: `0.4.1`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-05.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - No production dependencies, so there is no dependency health to assess.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to pipeworx-io/mcp-mlb-stats).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 2 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 73/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 1494 tokens (~149/item across 10 items; 10 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 23/100
  - Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 10 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 11 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### How do I install the Mlb Stats MCP server?

Mlb Stats runs locally as an npm package, launched with npx -y @pipeworx/mcp-mlb-stats. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add pipeworx-io-mlb-stats -- npx -y @pipeworx/mcp-mlb-stats
```

### Cursor

```json
{
  "mcpServers": {
    "pipeworx-io-mlb-stats": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-mlb-stats"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "pipeworx-io-mlb-stats": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-mlb-stats"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add pipeworx-io-mlb-stats -- npx -y @pipeworx/mcp-mlb-stats
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "pipeworx-io-mlb-stats": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@pipeworx/mcp-mlb-stats"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add pipeworx-io-mlb-stats --command npx --arg -y --arg @pipeworx/mcp-mlb-stats
```

### Hermes

```yaml
mcp_servers:
  pipeworx-io-mlb-stats:
    command: "npx"
    args: ["-y", "@pipeworx/mcp-mlb-stats"]
```

### Netclaw

```json
{
  "McpServers": {
    "pipeworx-io-mlb-stats": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "@pipeworx/mcp-mlb-stats"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add pipeworx-io-mlb-stats -t stdio -c npx -a -y @pipeworx/mcp-mlb-stats
```

### Other

```json
{
  "mcpServers": {
    "pipeworx-io-mlb-stats": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-mlb-stats"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-05 (score 84, +1)

No change was recorded against any check on this day. Stability & Change Management went from 20 to 23. That category is still filling its 30-day observation window: 6 days of observed history at the previous scan, 7 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-04 (score 83, +15)

- [security improvement] Malware scan: unverified → pass

### 2026-11-03 (score 68, −13)

- [security regression] Malware scan: pass → unverified
- [functional improvement] Stability: unverified → 0.17
- [functional] Package version: 0.4.0 → 0.4.1

### 2026-10-29 (score 81)

First indexed and scored.

## MCP tools (10)

### `mlb_teams` (~41 tokens)

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` (~173 tokens)

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").

Input parameters:

- `league_id` (string): Comma-separated league IDs (103=AL, 104=NL). Default "103,104" (both).
- `season` (string): Season year, e.g. "2024". Omit for the current season — only pass this for a past year.

### `mlb_schedule` (~66 tokens)

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.

Input parameters:

- `date` (string): Date in YYYY-MM-DD. Omit to get today's schedule.

### `mlb_roster` (~59 tokens)

Active roster for an MLB team from the official MLB Stats API. Returns each player with id, name, jersey number, and position abbreviation.

Input parameters:

- `team_id` (number|string, required): MLB team id (e.g. 147 for the Yankees).

### `mlb_player` (~99 tokens)

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.

Input parameters:

- `person_id` (number|string, required): MLB person/player id (e.g. 660271).

### `mlb_player_stats` (~220 tokens)

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.

Input parameters:

- `group` (string): Optional "hitting" or "pitching". Omit to get whichever the player has (both for two-way players).
- `player` (string, required): Player NAME (e.g. "Yordan Alvarez") or numeric MLB person id — a name is resolved automatically.
- `season` (number|string): Season year, e.g. 2025. Defaults to the current season.

### `mlb_matchup` (~166 tokens)

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.

Input parameters:

- `batter` (string, required): Batter NAME (e.g. "Yordan Alvarez") or numeric MLB person id.
- `pitcher` (string, required): Pitcher NAME (e.g. "Tanner Bibee") or numeric MLB person id.
- `season` (number|string): Optional season year to limit to; omit for full career.

### `mlb_player_game_log` (~274 tokens)

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

Input parameters:

- `group` (string): Optional "hitting" or "pitching". Defaults to hitting for position players and pitching for pitchers.
- `last` (number|string): How many most-recent games to return (default 15, max 200). The full-season count is always reported in games_in_season.
- `player` (string, required): Player NAME (e.g. "Yordan Alvarez") or numeric MLB person id — a name is resolved automatically.
- `season` (number|string): Season year, e.g. 2025. Defaults to the current season.

### `mlb_probable_pitchers` (~186 tokens)

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.

Input parameters:

- `date` (string): Date in YYYY-MM-DD. Omit for today's games.
- `team` (string): Optional team filter — MLB team id (e.g. 117) or name ("Astros", "Houston Astros", "HOU").

### `mlb_boxscore` (~153 tokens)

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.

Input parameters:

- `game_pk` (number|string, required): MLB gamePk (e.g. 824147) — from mlb_schedule / mlb_probable_pitchers / mlb_player_game_log.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/pipeworx-io-mlb-stats/pipeworx-mcp-mlb-stats#diagnostics

## Score history

- 2026-11-05: 84
- 2026-11-04: 83
- 2026-11-03: 68
- 2026-11-02: 81
- 2026-11-01: 81
- 2026-10-31: 81
- 2026-10-30: 81
- 2026-10-29: 81

## Common questions

### What is the Mlb Stats MCP server?

Mlb Stats is an MCP server listed in the public MCP registry as io.github.pipeworx-io/mlb-stats. MLB Stats API MCP, official MLB statistics (keyless). This page covers its npm package (@pipeworx/mcp-mlb-stats).

### Is the Mlb Stats MCP server safe to use?

Mlb Stats scores 84 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the Mlb Stats MCP server expose?

Mlb Stats exposes 10 tools: mlb_teams, mlb_standings, mlb_schedule, mlb_roster, mlb_player, and 5 more. Their descriptions and schemas cost roughly 1,437 tokens of context every time the server is loaded.

### Is the Mlb Stats MCP server still maintained?

Mlb Stats is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the Mlb Stats MCP server under?

Mlb Stats declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- npm package: https://www.npmjs.com/package/@pipeworx/mcp-mlb-stats
- Socket report: https://socket.dev/npm/package/@pipeworx/mcp-mlb-stats
- Repository: https://github.com/pipeworx-io/mcp-mlb-stats
- Website: https://pipeworx.io/packs/mlb-stats
- Changelog RSS feed: https://verifymcp.io/servers/pipeworx-io-mlb-stats/pipeworx-mcp-mlb-stats.xml
- Changelog JSON feed: https://verifymcp.io/servers/pipeworx-io-mlb-stats/pipeworx-mcp-mlb-stats.json
- HTML version of this page: https://verifymcp.io/servers/pipeworx-io-mlb-stats/pipeworx-mcp-mlb-stats
