# MLB Stats

> Use this tool when you need to access and analyze comprehensive MLB statistics, solve problems related to player performance evaluation, team comparisons, and sports analytics, and generate data-driven insights through its API interface that takes in queries and returns Statcast data, FanGraphs statistics, and advanced analytics, including visualizations. It provides outputs in the form of JSON data and base64-encoded matplotlib plots, making it ideal for use cases that require detailed baseball data analysis. Use it in contexts where data-driven decision-making is crucial, such as fantasy baseball, sports journalism, or professional team management.

Canonical page: https://skillsregistry.net/skills/etweisberg-mlb-stats  
JSON: https://api.skillsregistry.net/v1/skills/etweisberg-mlb-stats

## Description

A comprehensive MLB statistics MCP server built by Ethan Weisberg that provides access to baseball data through the MLB Stats API and pybaseball library, enabling retrieval of Statcast data, FanGraphs statistics, Baseball Reference records, and advanced analytics. The implementation includes tools for player lookups, team statistics, standings, schedules, prospect data, and specialized plotting functions that generate base64-encoded matplotlib visualizations including strike zone plots, spray charts, and batted ball profiles. Features a Next.js client application with OpenAI integration for AI-powered baseball analysis, making it useful for sports analytics, player performance evaluation, team comparisons, and generating data-driven insights about MLB players and teams.

## Trust

- **Trust score (0–1):** 0.65
- **Verification tier:** scanned
- **Last scanned:** 2026-09-02

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** ai-ml
- **Updated:** 2026-09-02

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/etweisberg-mlb-stats)
- **Repository:** <https://github.com/etweisberg/mlb-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "etweisberg-mlb-stats"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/etweisberg-mlb-stats` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/etweisberg-mlb-stats/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
