sachiniyer/pybaseball-mcp
3.1
If you are the rightful owner of pybaseball-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A Model Context Protocol (MCP) server that exposes MLB Statcast data via `pybaseball`.
pybaseball-mcp
If you are here, you probably want to use something like https://github.com/etweisberg/mlb-mcp instead.
A Model Context Protocol (MCP) server that exposes MLB Statcast data via pybaseball.
Quick Install & Run
Prereqs: Python 3.10+ and uv.
- Install dependencies
uv sync
- Use with your MCP client (stdio command)
- Command:
cd <dir with repo > && uv run pybaseball-mcp
Dev
- Tests:
uv run pytest -q - Lint/format:
uv run ruff check .anduv run ruff format . - Type check:
uv run basedpyright
To use the MCP Inspector browser UI
uv add 'mcp[cli]'(one time)uv run mcp dev src/pybaseball_mcp/fast_server.py- Open the printed localhost URL.