{"repo":"etweisberg/mlb-mcp","free":true,"listed":false,"github":"https://github.com/etweisberg/mlb-mcp","clone":"git clone https://github.com/etweisberg/mlb-mcp.git","description":"MCP server for advanced baseball analytics (statcast, fangraphs, baseball reference, mlb stats API)","language":"Python","stars":32,"topics":["baseball-analytics","baseball-data","baseball-statistics","fangraphs","mcp","mcp-client","mcp-server","mlb-stats-api","statcast"],"license":null,"category":"mcp-servers","readme_excerpt":"MLB Stats MCP Server A Python project that creates a Model Context Protocol (MCP) server for accessing MLB statistics data through the MLB Stats API and pybaseball library for statcast, fangraphs, and baseball reference statistics. This server provides structured API access to baseball statistics that can be used with MCP-compatible clients. Project Structure - mlb stats mcp/ - Main package directory - server.py - Core MCP server implementation - tools/ - MCP tool implementations - mlb statsapi tools.py - MLB StatsAPI tool definitions - statcast tools.py - Statcast data tool definitions - pybaseball plotting tools.py - Additional pybaseball tools provided for generating matplotlib plots and returning base64 encoded images - pybaseball supp tools.py - Supplemental pybaseball functions for interfacing with fangraphs, baseball reference, and other data sources - utils/ - Utility modules - logging config.py - Logging configuration - images.py - functions related to handling plot images - tests/ - Test suite for verifying server functionality - pyproject.toml - Project configuration and dependencies - .pre-commit-config.yaml - Pre-commit hooks configuration - .github/ - GitHub Actions workflows Tools Setup 1. Install uv if you haven't already: 2. Create and activate a virtual environment: 3. Install dependencies: Installing via Smithery To install MLB Stats Server for Claude Desktop automatically via Smithery: Running Tests The project includes comprehensive pytest tests for the M","default_branch":null,"files":null,"tree":[],"storefront":"/r/etweisberg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/etweisberg/mlb-mcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}