
一款模型上下文协议(MCP)服务器,通过基于FastMCP的接口提供对MLB统计数据和棒球数据的全面访问。
概览
一款模型上下文协议(MCP)服务器,通过基于FastMCP的接口提供对MLB统计数据和棒球数据的全面访问。 该MCP服务器作为AI应用与MLB数据源之间的桥梁,实现棒球统计数据、比赛信息、球员数据等无缝集成到AI工作流程和应用中。 - 面向所有MLB球队,支持联盟、赛季和日期灵活筛选,并支持日期范围,包括传统和剑拔统计数据(WAR、wOBA、wRC+);以及各种名单类型(包括比分表、线分统计和比赛实况)和计分操作——功能、奖项获得者及阵容信息 所有MLB/统计数据/比赛/球员/球队等功能都以MCP工具形式开放,而非RESTful HTTP端点。这些工具通过MCP协议的/mcp/端点访问。如需查看可用工具及其描述,请在服务器运行时访问/tools/。
概述(AI 翻译)
一款模型上下文协议(MCP)服务器,通过基于FastMCP的接口提供对MLB统计数据和棒球数据的全面访问。
概述
该MCP服务器作为AI应用与MLB数据源之间的桥梁,实现棒球统计数据、比赛信息、球员数据等无缝集成到AI工作流程和应用中。
特色
MLB数据访问
- 所有MLB球队当前排名,并可灵活筛选联盟、赛季和日期
- 比赛日程及结果,支持日期范围
- 球员统计,包括传统和剑标统计(WAR、wOBA、wRC+)
- 球队信息及各种名单类型名单
- 实时比赛数据,包括比分表、比分和比赛解说
- 比赛精彩片段及得分动作
- 球员和球队搜索功能
- 草案信息及获奖者
- 比赛节奏统计及首发阵容信息
MCP工具
所有MLB/统计数据/比赛/球员/球队等功能都以MCP工具形式开放,而非RESTful HTTP端点。这些工具可通过MCP协议的/mcp/端点访问。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MLB API MCP Server
A Model Context Protocol (MCP) server that provides comprehensive access to MLB statistics and baseball data through a FastMCP-based interface.
Overview
This MCP server acts as a bridge between AI applications and MLB data sources, enabling seamless integration of baseball statistics, game information, player data, and more into AI workflows and applications.
Features
MLB Data Access
- Current standings for all MLB teams with flexible filtering by league, season, and date
- Game schedules and results with date range support
- Player statistics including traditional and sabermetric stats (WAR, wOBA, wRC+)
- Team information and rosters with various roster types
- Live game data including boxscores, linescores, and play-by-play
- Game highlights and scoring plays
- Player and team search functionality
- Draft information and award recipients
- Game pace statistics and lineup information
MCP Tools
All MLB/statistics/game/player/team/etc. functionality is exposed as MCP tools, not as RESTful HTTP endpoints. These tools are accessible via the /mcp/ endpoint using the MCP protocol. For a list of available tools and their descriptions, visit /tools/ when the server is running.
Key MCP Tools
get_mlb_standings- Current MLB standings with league and season filtersget_mlb_schedule- Game schedules for specific dates, ranges, or teamsget_mlb_team_info- Detailed team informationget_mlb_player_info- Player biographical informationget_mlb_boxscore- Complete game boxscoresget_mlb_linescore- Inning-by-inning game scoresget_mlb_game_highlights- Video highlights for gamesget_mlb_game_scoring_plays- Play-by-play data with event filteringget_mlb_game_pace- Game duration and pace statisticsget_mlb_game_lineup- Detailed lineup information for gamesget_multiple_mlb_player_stats- Traditional player statisticsget_mlb_sabermetrics- Advanced sabermetric statistics (WAR, wOBA, etc.)get_mlb_roster- Team rosters with various roster typesget_mlb_search_players- Search players by nameget_mlb_search_teams- Search teams by nameget_mlb_players- All players for a sport/seasonget_mlb_teams- All teams for a sport/seasonget_mlb_draft- Draft information by yearget_mlb_awards- Award recipientsget_current_date- Current dateget_current_time- Current time
安装
npx -y @smithery/cli install @guillochon/mlb-api-mcp --client claude