
alex-rimerman/statcast-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
이 저장소는 public이며, Baseball의 Statcast MCP를 개발할 수 있게 합니다.
개요
MCP (Model Context Protocol) 서버는 쿼리 할 수 있습니다. 플레이어, 게임, 통계, 리더 보드 및 더 많은 것에 대한 AI 조수 요청 - 코딩 필요 없음. pybaseball에 내장 된이 서버는 AI 조수가 데이터에 직접 액세스합니다. , , . 일단 연결되면, 단지 AI 조수에 자연스럽게 이야기하십시오: - "Alon Judge가 7 월 2024에서 명중 했습니까?" - "저 Gerrit Cole의 피치 비소" - "Who는 2024에서 가장 높은 출구 속도가 있었습니까?" - "2023의 끝에서 NL 서점은 무엇입니까?" - "가장 가치있는 히터 - xBA를 실제 BA로 비교하십시오" - "모든 Yankees 라인업과 다섯 스타터를위한 확장 된 통계" (사용 예상 ) - "매장에서 가장 빠른 플레이 플레이어는 4 월 2024에서 가장 빠른 플레이 플레이어가됩니다." AI는 올바른 데이터 쿼리에 대한 질문을 자동으로 번역합니다.
개요(AI 번역)
MCP (Model Context Protocol) 서버는 일반 영어를 사용하여 **MLB Statcast 데이터를 쿼리 할 수 있습니다. 플레이어, 게임, 통계, 리더 보드 및 더 많은 것에 대한 AI 조수 요청 - 코딩 필요 없음.
pybaseball에 내장 된이 서버는 Baseball Savant, FanGraphs 및 Baseball Reference에서 데이터를 직접 액세스 할 수 있습니다.
당신은 무엇을 할 수 있습니까?
일단 연결되면, 단지 AI 조수에 자연스럽게 이야기하십시오:
-
- “Alon Judge가 7 월 2024에서 히트 했습니까?”*
-
- “저 Gerrit Cole의 피치 비소이 시즌”*
-
- “2024에서 가장 높은 출구 속도가 있었습니까?”*
-
- “2023의 끝에 NL 서있는 것은 무엇입니까?”*
-
- “나의 가장 가치있는 히터를 구합니다 - 실제 BA에 XBA를 비교”*
- “전체 얀케스 라인업 및 5 스타터의 통계” (사용
expected_stats_batch]) -
- “지금 야구에서 가장 빠른 선수는?”*
-
- "7 월 4, 2024 "*의 Yankees-Red Sox 게임에서 모든 피치를 보여줍니다
AI는 올바른 데이터 쿼리에 대한 질문을 자동으로 번역합니다.
예제: 신속한 & 응답
다음은 Statcast MCP를 사용할 때 전형적인 거래소가 보이는 것입니다.
** 작품 **
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Statcast MCP Server
A MCP (Model Context Protocol) server that lets you query MLB Statcast data using plain English. Ask your AI assistant about players, games, stats, leaderboards, and more — no coding required.
Built on pybaseball, this server gives AI assistants direct access to data from Baseball Savant, FanGraphs, and Baseball Reference.
What Can You Ask?
Once connected, just talk to your AI assistant naturally:
- “How did Aaron Judge hit in July 2024?”
- “Show me Gerrit Cole’s pitch arsenal this season”
- “Who had the highest exit velocity in 2024?”
- “What were the NL standings at the end of 2023?”
- “Find me the most undervalued hitters — compare xBA to actual BA”
- “Expected stats for the whole Yankees lineup and their five starters” (use
expected_stats_batchwith comma-separated names) - “Who are the fastest players in baseball right now?”
- “Show me every pitch from the Yankees-Red Sox game on July 4, 2024”
The AI translates your questions into the right data queries automatically.
Example: Prompt & Response
Here’s what a typical exchange looks like when you use the Statcast MCP:
Prompt
“What were Gerrit Cole’s arsenal statistics in 2023?”
Response
| Pitch Type | Usage | Pitches | PA | BA | SLG | Whiff% | K% | Run Val/100 |
|---|---|---|---|---|---|---|---|---|
| 4-Seam Fastball | 52.9% | 1,737 | 427 | .202 | .333 | 23.0% | 28.3% | +1.7 |
| Slider | 20.8% | 683 | 175 | .186 | .251 | 32.7% | 29.1% | +1.4 |
| Curveball | 12.1% | 396 | 97 | .215 | .269 | 24.4% | 27.8% | +1.4 |
| Cutter | 7.0% | 231 | 65 | .262 | .377 | 31.1% | 23.1% | +1.6 |
| Changeup | 7.1% | 233 | 54 | .235 | .510 | 28.6% | 13.0% | −1.3 |
His 4-seam fastball was his primary weapon (52.9% usage) with a .202 BA against and +1.7 run value per 100 pitches. The changeup was his only negative pitch (−1.3 run value).
Another prompt
“Who had the highest exit velocity in 2024?”
Response
The AI calls statcast_batter_exitvelo_barrels(year=2024) and returns the leaderboard — Aaron Judge led with a 97.0 mph average exit velocity and 21.8% barrel rate, followed by [other top hitters]…
Available Tools
| Tool | What It Does |
|---|---|
player_lookup |
Find any player’s ID, years active, and database links (default 10 rows; up to 5000 if many fuzzy matches) |
statcast_search |
Pitch-by-pitch data for a date range (optionally filtered by team); default 100 pitch rows, up to 5000 |
statcast_batter |
Every pitch a specific batter saw in a date range (default 100 rows, up to 5000) |
statcast_batter_pitch_arsenal |
Batting stats by pitch type (BA, SLG, wOBA vs fastballs, sliders, etc.) |
설치
npx @modelcontextprotocol/inspector statcast-mcp설정
{
"mcpServers": {
"statcast": {
"command": "statcast-mcp"
}
}
}