etweisberg/mlb-mcp — MCP server for advanced baseball analytics (statcast, fangraphs, baseball reference, mlb stats API)
Description and use
**Brief Summary**
etweisberg/mlb-mcp is an open‑source Model Context Protocol (MCP) server that aggregates advanced baseball data from Statcast, FanGraphs, Baseball‑Reference, and the MLB Stats API. It provides a uniform, Python‑based API/SDK/CLI that lets AI assistants and other services query real‑time and historical baseball metrics through a single, standards‑compliant endpoint.
**Value**
- **Unified data access:** Eliminates the need for developers to stitch together multiple baseball data sources; everything is exposed via the MCP standard.
- **AI‑ready interface:** By speaking the Model Context Protocol, the server lets LLM‑based agents retrieve and act on live sports data without custom scraping or ad‑hoc wrappers.
- **Extensible tooling:** The same MCP server can be deployed as a backend for dashboards, betting models, fantasy‑league bots, or any analytics pipeline that needs reliable baseball statistics.
**Practical Adoption Path**
- **Prototype:** Clone the repo, install the Python dependencies, and run the provided Docker compose file to spin up a local MCP server.
- **Integration:** Connect your AI agent or application using the supplied SDK (or a generic MCP client) and start issuing queries such as
GET /statcast/pitchorGET /fangraphs/player. - **Customization:** Extend the server with additional endpoints or cache layers if you need proprietary data sources or higher throughput.
- **Production deployment:** Deploy the containerized service behind a load balancer, enable TLS, and configure API keys for the underlying data providers.
**Production Readiness**
- **Activity & adoption:** Recent commits (last updated 2026‑07‑12), 28 GitHub stars, 9 forks, and multiple topics indicate an engaged community.
- **Stability:** The codebase is Python‑centric, well‑documented, and includes a CLI for health checks, making automated testing and CI pipelines straightforward.
- **Risk considerations:** No glaring licensing or security red flags have been found, but a final review of third‑party API terms and maintainers’ responsiveness is recommended before a large‑scale rollout.
Overall, etweisberg/mlb-mcp is a mature, production‑ready OSS component for anyone looking to plug AI assistants or analytics services into a comprehensive, standards‑based baseball data backend.
Problem
etweisberg/mlb-mcp helps connect AI assistants to real tools and data through a standard protocol.
Outcome
High for an OSS candidate: recent activity, adoption, and ecosystem signals are strong enough for a serious pilot.
Workflow
- connect AI agents to tools
- ship Model Context Protocol servers
- standardize integrations
Evidence
MCP server for advanced baseball analytics (statcast, fangraphs, baseball reference, mlb stats API)
- Record date: 2026-09-10T17:20:53.534Z