The scope is deliberately narrow — schedules, results, one team's last game, and player-ID lookup — and every one of them comes back as structured data instead of a scraped page. Fuzzy name matching is the quiet convenience: you can ask about a player without getting the spelling exactly right.
An MCP wrapper around the MLB Stats API, built on the `mlb-statsapi` Python library. It answers the questions a baseball conversation actually starts with: who plays when, what happened yesterday, and how a specific team's last game went.
- Game schedules for a date range, optionally narrowed to one team
- Daily game results with scores, winning and losing teams, and the winning pitcher
- A single team's most recent game in detail, including scoring plays and highlights
- Player IDs looked up by last name, first name, or both, with fuzzy matching so a near-miss spelling still resolves
No account and no key — the MLB Stats API is public. Python 3.10 or newer and the `uv` package manager; the README gives `brew install uv` on macOS and a PowerShell one-liner on Windows. Install with `pip install mcp_mlb_statsapi`, then run it as `python -m mcp_mlb_statsapi`. The package is `mcp_mlb_statsapi` 0.2.0, MIT licensed; running from source uses `uv --directory … run mcp_mlb_statsapi`.
One command — pip install mcp_mlb_statsapi
