LABSCO SUMMARY
Four questions about baseball, no signup.
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.
What it is
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.
What you get
- 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
Requirements
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.
Setup effort
One command — pip install mcp_mlb_statsapi
USE CASES
01
Catching up on last night
Ask for the day's results and get scores, both teams and the winning pitcher in one pass rather than a box-score page per game.
02
Following one team
Filter the schedule to that team, then pull their most recent game with its scoring plays.
03
Resolving a player you only half-remember
Search by last name and let fuzzy matching handle the spelling, then use the returned ID for follow-up queries.
BEFORE YOU INSTALL
What to know first
Requires
Python 3.10 or later
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
TERMINAL
pip install mcp_mlb_statsapiMCP Clients
Claude Desktop
CLAUDE DESKTOP · JSON
{
"mcpServers": {
"mcp_mlb_statsapi": {
"command": "<YOUR_PYTHON_EXECUTABLE_PATH>/python",
"args": [
"-m",
"mcp_mlb_statsapi"
]
}
}
}<YOUR_PYTHON_EXECUTABLE_PATH> is the folder of the Python interpreter you ran pip install mcp_mlb_statsapi with, so the command is that interpreter's full path.