
An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

An MCP server that gives AI assistants access to MLB player, team, leaderboard, and Statcast statistics with video highlight links via the pybaseball library.
MLB Stats MCP Server is cataloged as an MCP server attributed to jweingardt12. An MCP server that gives AI assistants access to MLB player, team, leaderboard, and Statcast statistics with video highlight links via the pybaseball library. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MLB Stats MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes; the server handles full team names, abbreviations, cities, and historical teams, supporting all 30 current MLB teams with common variations.
It uses sampling strategies such as every seventh day for team season stats and adaptive sampling for statcast_count, plus caching.
README.md · 1937297b3380 · Fetched 2026-11-13 13:49:30 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server that provides comprehensive MLB baseball statistics with video highlights through the pybaseball library.
This MCP server enables AI assistants to access real-time MLB statistics, historical data, and video highlights. It provides eight powerful tools for querying baseball data, from individual player performance to team statistics and advanced Statcast metrics.
get_player_statsGet detailed Statcast data for any MLB player with optional date filtering.
name (required): Player name (e.g., "Mike Trout", "Ronald Acuña Jr.")start_date (optional): Start date in YYYY-MM-DD formatend_date (optional): End date in YYYY-MM-DD formatplayer_statcastGet comprehensive Statcast data for a specific player with advanced pitch-type and result filtering.
player_name (required): Player name (e.g., "Aaron Judge", "Mike Trout")start_date (optional): Start date in YYYY-MM-DD format (defaults to current season)end_date (optional): End date in YYYY-MM-DD format (defaults to current season)pitch_type (optional): Filter by pitch type - 'FF' (4-seam), 'SL' (slider), 'CH' (changeup), 'CU' (curveball), 'SI' (sinker), 'FC' (cutter), 'FS' (splitter)result_type (optional): Filter by result - 'home_run', 'hit', 'single', 'double', 'triple', 'batted_ball'min_exit_velocity (optional): Minimum exit velocity in mphmin_distance (optional): Minimum distance in feetget_team_statsRetrieve comprehensive team batting or pitching statistics for any season.
team (required): Team name or abbreviation (e.g., "Yankees", "NYY", "Red Sox")year (required): Season year (1871-present)stat_type (optional): "batting" (default) or "pitching"get_leaderboardAccess statistical leaderboards for any MLB stat category.
stat (required): Statistic abbreviation (e.g., "HR", "AVG", "ERA", "K")season (required): Season yearleaderboard_type (optional): "batting" or "pitching"limit (optional): Number of results (default: 10)statcast_leaderboardQuery advanced Statcast data with filtering, sorting, and video highlight links.
start_date (required): Start date in YYYY-MM-DD formatend_date (required): End date in YYYY-MM-DD formatresult (optional): Filter by outcome (e.g., "home_run", "single", "double")min_ev (optional): Minimum exit velocity filtermin_pitch_velo (optional): Minimum pitch velocity filterpitch_type (optional): Filter by pitch type - 'FF' (4-seam), 'SL' (slider), 'CH' (changeup), 'CU' (curveball), 'SI' (sinker), 'FC' (cutter), 'FS' (splitter)player_name (optional): Filter by batter name (e.g., "Aaron Judge", "Mike Trout")sort_by (optional): Sort metric:
"exit_velocity" (default) - Hardest hit balls"distance" - Longest hits"launch_angle" - Optimal launch angles"pitch_velocity" - Fastest pitches"spin_rate" - Highest spin rates"xba" - Highest expected batting average"xwoba" - Highest expected weighted on-base average"barrel" - Barrel rate (perfect contact)limit (optional): Number of results (default: 10)order (optional): Sort order - "desc" (default) or "asc"group_by (optional): Group results by "team" for team-wide rankingsteam_season_statsGet fast team season averages for Statcast metrics. Optimized for queries like "which team hits the ball hardest?".
year (required): Season year (e.g., 2025)stat (optional): Metric to analyze
"exit_velocity" (default) - Average exit velocity"distance" - Average and max distance"launch_angle" - Average launch angle"barrel_rate" - Percentage of barrels (perfect contact)"hard_hit_rate" - Percentage of balls hit 95+ mph"sweet_spot_rate" - Percentage hit at optimal launch angles (8-32°)min_result_type (optional): Filter by result type
"batted_ball" - All balls in play"home_run" - Home runs only"hit" - All hits (singles, doubles, triples, home runs)team_pitching_statsGet fast team pitching averages for Statcast metrics. Optimized for queries like "which team has the best pitching staff?".
year (required): Season year (e.g., 2025)stat (optional): Metric to analyze
"velocity" (default) - Average and max pitch velocity"spin_rate" - Average and max spin rate"movement" - Pitch break (horizontal, vertical, total)"whiff_rate" - Swing-and-miss percentage"chase_rate" - Swings at pitches outside the zone"zone_rate" - Percentage of pitches in strike zone"ground_ball_rate" - Ground balls per balls in play"xera" - Expected ERA based on quality of contactpitch_type (optional): Filter to specific pitch type
"FF" - 4-seam fastball"SL" - Slider"CH" - Changeup"CU" - Curveball"SI" - Sinker"FC" - Cutter"FS" - Splitterstatcast_countCount Statcast events matching specific criteria. Optimized for multi-year queries like "how many 475+ ft home runs since 2023?"
start_date (required): Start date in YYYY-MM-DD formatend_date (required): End date in YYYY-MM-DD formatresult_type (optional): Type to count - 'home_run' (default), 'hit', 'batted_ball', or specific like 'double'player_name (optional): Filter by batter name (e.g., "Aaron Judge", "Mike Trout")pitch_type (optional): Filter by pitch type - 'FF' (4-seam), 'SL' (slider), 'CH' (changeup), 'CU' (curveball), 'SI' (sinker), 'FC' (cutter), 'FS' (splitter)min_distance (optional): Minimum distance in feet (e.g., 475)max_distance (optional): Maximum distance in feetmin_exit_velocity (optional): Minimum exit velocity in mphmax_exit_velocity (optional): Maximum exit velocity in mphEvery result from statcast_leaderboard includes detailed metrics and video access points:
{
"rank": 1,
"player": "Ronald Acuña Jr.",
"date": "2024-07-20",
"exit_velocity": 113.7,
"launch_angle": 23.0,
"distance": 456.0,
"result": "home_run",
"pitch_velocity": 95.2,
"pitch_type": "FF",
"spin_rate": 2450,
"xba": 0.920,
"xwoba": 1.823,
"barrel": true,
"description": "Ronald Acuña Jr. homers (13) on a fly ball to center field.",
"video_links": {
"game_highlights_url": "https://www.mlb.com/gameday/745890/video",
"film_room_search": "https://www.mlb.com/video/search?q=Ronald+Acuna+Jr.+2024-07-20",
"game_pk": "745890",
"api_highlights_endpoint": "https://statsapi.mlb.com/api/v1/schedule?gamePk=745890&hydrate=game(content(highlights(highlights)))"
}
}
The server intelligently handles team names:
New team aggregation feature for statcast_leaderboard:
Deploy to Railway for a hosted HTTP MCP endpoint that Smithery can connect to:
Procfile and deploy automaticallyhttps://<your-railway-domain>/mcpManual Start Command (if needed): If Railway doesn't auto-detect the Procfile, set this Start Command in Railway Settings:
uv run fastmcp run src/mlb_mcp/server.py:mcp --transport http --host 0.0.0.0 --port $PORT
# Clone the repository
git clone https://github.com/yourusername/mlb_mcp.git
cd mlb_mcp
# Install dependencies with uv
uv sync
# Run the server (stdio mode for local testing)
uv run python -m mlb_mcp.server
# Or run with HTTP transport for local HTTP testing
MCP_TRANSPORT=http MCP_PORT=8000 uv run python -m mlb_mcp.server
Add to your Claude Desktop configuration (uses stdio transport):
{
"mcpServers": {
"mlb-stats": {
"command": "uv",
"args": ["run", "python", "-m", "mlb_mcp.server"],
"cwd": "/path/to/mlb_mcp"
}
}
}
Query: "How many fastballs has Aaron Judge hit for a home run this season?"
Tool: player_statcast("Aaron Judge", "2024-04-01", "2024-10-31", "FF", "home_run")
OR
Tool: statcast_count("2024-04-01", "2024-10-31", "home_run", player_name="Aaron Judge", pitch_type="FF")
Query: "Show me Shohei Ohtani's stats against sliders this season"
Tool: player_statcast("Shohei Ohtani", "2024-04-01", "2024-10-31", "SL")
Query: "Show Aaron Judge's hardest hit balls on fastballs"
Tool: statcast_leaderboard("2024-04-01", "2024-10-31", player_name="Aaron Judge", pitch_type="FF", sort_by="exit_velocity", limit=10)
Query: "Show me the longest home runs from yesterday"
Tool: statcast_leaderboard("2024-07-20", "2024-07-20", "home_run", None, None, "distance", 10)
Query: "What were the hardest hit balls on 99+ mph pitches last week?"
Tool: statcast_leaderboard("2024-07-14", "2024-07-20", None, 0, 99.0, "exit_velocity", 10)
Query: "Show me the fastest pitches thrown yesterday"
Tool: statcast_leaderboard("2024-07-20", "2024-07-20", None, None, None, "pitch_velocity", 10)
Query: "What pitches had the highest spin rate today?"
Tool: statcast_leaderboard("2024-07-20", "2024-07-20", None, None, None, "spin_rate", 10)
Query: "Show me the best quality contact this week"
Tool: statcast_leaderboard("2024-07-14", "2024-07-20", None, None, None, "barrel", 10)
Query: "Get Mike Trout's stats for this season"
Tool: get_player_stats("Mike Trout", "2024-04-01", "2024-10-01")
Query: "How are the Red Sox doing this year?"
Tool: get_team_stats("Red Sox", 2024, "batting")
Query: "Who's leading the league in home runs?"
Tool: get_leaderboard("HR", 2024, "batting", 10)
Query: "Which team has the hardest hit home runs this season?"
Tool: statcast_leaderboard("2024-04-01", "2024-10-01", "home_run", None, None, "exit_velocity", 10, "desc", "team")
Query: "Show me teams with the longest average home run distance this month"
Tool: statcast_leaderboard("2024-07-01", "2024-07-31", "home_run", None, None, "distance", 10, "desc", "team")
Query: "Which teams have the highest average pitch velocity?"
Tool: statcast_leaderboard("2024-07-20", "2024-07-20", None, None, None, "pitch_velocity", 10, "desc", "team")
Query: "What team averages the hardest hit balls in 2025?"
Tool: team_season_stats(2025, "exit_velocity")
Query: "Which team has the highest barrel rate this season?"
Tool: team_season_stats(2025, "barrel_rate")
Query: "Show me teams with the highest hard-hit rate on home runs only"
Tool: team_season_stats(2025, "hard_hit_rate", "home_run")
Query: "What team hits the ball the farthest on average?"
Tool: team_season_stats(2025, "distance")
Query: "Which team throws the hardest in 2025?"
Tool: team_pitching_stats(2025, "velocity")
Query: "What team has the best slider spin rate?"
Tool: team_pitching_stats(2025, "spin_rate", "SL")
Query: "Which pitching staff gets the most swings and misses?"
Tool: team_pitching_stats(2025, "whiff_rate")
Query: "Show me teams with the highest ground ball rate"
Tool: team_pitching_stats(2025, "ground_ball_rate")
Query: "Which team has the lowest expected ERA based on contact quality?"
Tool: team_pitching_stats(2025, "xera")
Query: "How many home runs hit over 475 ft have been hit since 2023?"
Tool: statcast_count("2023-01-01", "2025-12-31", "home_run", 475)
Query: "Count all 110+ mph batted balls this season"
Tool: statcast_count("2025-04-01", "2025-10-31", "batted_ball", None, 110)
Query: "How many home runs between 400-450 feet were hit last year?"
Tool: statcast_count("2024-04-01", "2024-10-31", "home_run", 400, None, 450)
Query: "Total hits with exit velocity over 100 mph since 2022"
Tool: statcast_count("2022-01-01", "2025-12-31", "hit", None, 100)
PORT env varteam_season_stats and team_pitching_stats: Every 7th day samplingstatcast_count: Adaptive sampling (3 days/month for multi-year, weekly for 6-12 months)team_season_stats for batting metricsteam_pitching_stats for pitching metricsstatcast_count for counting queries across multiple yearsmlb_mcp/
├── src/
│ └── mlb_mcp/
│ ├── __init__.py # Package exports
│ └── server.py # Main MCP server implementation
├── pyproject.toml # Project configuration and dependencies
├── smithery.yaml # Smithery deployment configuration
├── Procfile # Railway start command
└── README.md # This file
Contributions are welcome! Please feel free to submit a Pull Request.
This project uses publicly available MLB data through the pybaseball library. All MLB data is property of MLB Advanced Media.
Built with pybaseball and FastMCP
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MLB Stats MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mlb_mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Runs a free Answer Engine Optimization and AI visibility report for a domain and returns a shareable report plus a structured summary.

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.