mlb-mcp
Active·★ 27·Updated 2026-03-29
★ Trending★ API Integration★ Data Processing
MCP server for advanced baseball analytics (statcast, fangraphs, baseball reference, mlb stats API) with client demo
This project implements a Model Context Protocol (MCP) server for accessing MLB statistics via the MLB Stats API and pybaseball library. It provides structured tools for statcast, fangraphs, baseball reference data, and includes plotting capabilities. Designed for integration with MCP-compatible clients like Claude Desktop.
#baseball-analytics#baseball-data#baseball-statistics#fangraphs#mcp#mcp-client#mcp-server#mcp-servers
01
Features
01Access MLB Stats API for live player and team data
02Query Statcast data for advanced metrics
03Generate matplotlib plots (base64 encoded) from pybaseball
04Retrieve fangraphs and baseball reference statistics
05Configurable logging and easy deployment via uv
02
Compatibility
macOS
macOS
Verified via docs
Linux
Linux
Verified via docs
Windows
Windows
Verified via docs
03
Quick start
1
$ uv venv
2
$ source .venv/bin/activate
3
$ uv pip install -e .
04
Use cases
↳Integrate live baseball stats into AI assistants like Claude Desktop
↳Analyze player performance using Statcast and advanced metrics
↳Create automated visual reports of baseball data
05
Alternatives
FunASR★ 16.6k
Industrial-grade speech recognition toolkit: 170x realtime, 50+ languages, speaker diarization, emotion detection, streaming, and OpenAI-compatible API.
thunderbit-mcp-server★ 13
AI-powered web scraping and structured data extraction. CLI + MCP server + Claude Code plugin for the Thunderbit Open API.
Related searches
Comments
Log in to leave a comment
- OOakley NguyenMay 15, 2026
Works well for building AI-assisted baseball analysis tools.
- AAspen MartinezMay 6, 2026
Good for sports analytics applications that need granular baseball statistics.
- Justice LeeMar 24, 2026
Statcast, FanGraphs, and Baseball Reference all in one MCP server — serious baseball data.
- PPhoenix ThompsonMar 5, 2026
Advanced metrics are available, not just basic box score stats.