What dependencies does the server require?
Python, `uv` (package manager), and libraries including `mcp[cli]`, `mlb-statsapi`, `httpx`, `pytest`, `pytest-asyncio`, and `matplotlib` (for plotting).
@etweisberg
Basic information
MCP server for advanced baseball analytics (statcast, fangraphs, baseball reference, mlb stats API)
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mlb-mcp": {
"command": "uv",
"args": [
"venv"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
A Python project that implements a Model Context Protocol (MCP) server for accessing Major League Baseball statistics. It combines the MLB Stats API and the pybaseball library (Statcast, FanGraphs, Baseball Reference) to provide structured baseball data to MCP-compatible clients like Claude Desktop.
Install uv, create a virtual environment (uv venv), activate it, and install dependencies (uv pip install -e .). Set the ANTHROPIC_API_KEY environment variable and optionally configure logging. Then add the server to your MCP client (e.g., Claude Desktop) using the provided JSON configuration.
MLB_STATS_LOG_LEVEL, MLB_STATS_LOG_FILE).Python, `uv` (package manager), and libraries including `mcp[cli]`, `mlb-statsapi`, `httpx`, `pytest`, `pytest-asyncio`, and `matplotlib` (for plotting).
Run `uv venv && source .venv/bin/activate && uv pip install -e .` in the project directory. Alternatively, install via Smithery with `npx -y @smithery/cli install @etweisberg/mlb-mcp --client claude`.
Add an entry to `claude_desktop_config.json` with the `command` set to your `uv` path, `args` pointing to `python -m mlb_stats_mcp.server`, and `env` for logging and API key.
Set the environment variables `MLB_STATS_LOG_LEVEL` (e.g., DEBUG, INFO) and `MLB_STATS_LOG_FILE` (path to log file). If the log file is not set, logs go to stdout.
The server provides tools for the MLB Stats API, Statcast data, and supplemental `pybaseball` functions for FanGraphs and Baseball Reference statistics.

A good sequence diagram can solve almost any communication problem in engineering. Volley lets your agent write them as plain text, with the real request and response payloads on every arrow. It checks its own syntax wi

Couples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep

The article (der, die, das) of 90,000 German nouns, compounds included, plus a checker that finds wrong articles in German text (“mit der Zug” → dem). Uses dictionary data, not AI guessing. Free, no login.

Your AI assistant logs your meals and workouts, then plans your week from what you did. iPhone, Android and Garmin.

LoadOptimizer plans truck, container and pallet loads with a real optimization engine, straight from your AI assistant. Describe the order in plain language, for example "plan 36 Euro pallets on a standard 13.6 m trailer
Comments