BusinessMCP
MLB Stats Server logo

MLB Stats Server

Free forever

etweisberg · Analytics

2.1k installs

Connect in 1 click

The MLB Stats Server gives any AI agent direct, structured access to Major League Baseball data across three of the most widely used sources in the sport: Statcast, FanGraphs, and Baseball Reference. Instead of scraping box scores or hand-copying tables, agents can query pitch-level Statcast metrics (exit velocity, spin rate, launch angle), advanced FanGraphs sabermetrics (WAR, wRC+, FIP), and the deep historical record keeping of Baseball Reference — all through one consistent MCP interface rather than three separate scraping jobs or API integrations.

This server is built for teams working on baseball-adjacent products: fantasy baseball tools that need up-to-date player splits, sports betting and predictive-modeling projects that lean on Statcast granularity, sports media and content workflows that auto-generate recaps or player comparisons, and scouting or front-office analytics that blend modern sabermetrics with decades of historical performance. Because the underlying stats span from single-game logs to career-long trends, the same server supports both real-time-ish 'what happened this week' questions and long-horizon 'how does this compare to 1998' research.

When hosted through BusinessMCP, the MLB Stats Server isn't a standalone integration you manage on your own — it's connected once and exposed through your single unified MCP endpoint at /api/mcp, authenticated with your Bearer mcph_* key. That means the same Claude, GPT, or Gemini agent that pulls MLB Statcast and FanGraphs data can, in the same session, reach into your product database, ad platforms, or internal tools without you wiring up separate credentials or SDKs for each. BusinessMCP is model-agnostic by design, so whichever LLM your team or your customers standardize on, the baseball data layer behaves identically.

Beyond raw access, BusinessMCP's business-intelligence dashboard turns this server's traffic into something you can actually observe: which stat queries your agents run most, how MLB data usage trends alongside other connected sources, and where baseball analytics fits into your broader AI-agent activity. For teams already storing derived stats or historical snapshots in Postgres, BigQuery, Snowflake, or SQLite, pairing the MLB Stats Server with a hosted database MCP server lets agents cross-reference live baseball data against your own warehouse — for example, joining Statcast exit-velocity trends with an internal player-valuation table — without leaving the same MCP session or juggling multiple auth flows.

Because the connection is cookieless and GDPR-friendly like the rest of the BusinessMCP platform, this works cleanly whether the consuming agent is an internal analyst tool, a customer-facing fantasy sports assistant, or an automated content pipeline generating game recaps. You configure the MLB Stats Server once inside your BusinessMCP workspace, and every downstream agent — regardless of vendor — gets the same reliable path into Statcast, FanGraphs, and Baseball Reference data alongside whatever else you've unified on your hosted MCP server.

$ npx mcphosting-cli add etweisberg-mlb

Just say it in a thread

No configs, no docs. Once connected, these are the kinds of messages your agents act on.

"Fetch season or career statistics for a specified mlb player across statcast, fangraphs, or baseball reference — and give me the highlights."

"Retrieve pitch-level statcast metrics such as exit velocity, spin rate, and launch angle for a player, team, or date range for me, then post a summary in the thread."

"Pull advanced sabermetric statistics like war, wrc+, and fip for players or teams from fangraphs and flag anything that needs my approval."

What teams use it for

  • Powering a fantasy baseball assistant that pulls live player splits and Statcast metrics on demand
  • Feeding sports betting or predictive models with pitch-level exit velocity, spin rate, and launch angle data
  • Auto-generating game recaps or player comparison articles for sports media using FanGraphs and Baseball Reference data
  • Supporting scouting and front-office analytics workflows that blend modern sabermetrics with historical performance records
  • Cross-referencing live MLB data against an internal player-valuation warehouse via a paired database MCP server

Agent-callable tools

get_player_stats

Fetch season or career statistics for a specified MLB player across Statcast, FanGraphs, or Baseball Reference.

query_statcast_data

Retrieve pitch-level Statcast metrics such as exit velocity, spin rate, and launch angle for a player, team, or date range.

get_fangraphs_metrics

Pull advanced sabermetric statistics like WAR, wRC+, and FIP for players or teams from FanGraphs.

search_players

Look up MLB players by name, team, or position to resolve identifiers for further stat queries.

get_team_stats

Retrieve aggregated team-level performance statistics for a given season or game range.

get_game_log

Return a player's or team's game-by-game statistical log for a specified time period.

compare_players

Generate a side-by-side statistical comparison between two or more MLB players across selected metrics.

get_historical_records

Query Baseball Reference for historical records, career milestones, and long-term performance trends.

Your data stays yours

Credentials live in your vault. We route requests — we never store, log, or train on your data.

Works with every AI

Connect once — portable across Claude, GPT, Gemini, and every local agent you run.

Frequently asked questions

What baseball data sources does this MCP server cover?

It queries Statcast for pitch-level and batted-ball metrics, FanGraphs for advanced sabermetrics like WAR and wRC+, and Baseball Reference for historical box scores and career stats.

How does this fit into BusinessMCP's unified setup?

Once connected, the MLB Stats Server is exposed through your single hosted MCP endpoint at /api/mcp, so any Claude, GPT, or Gemini agent can query it using the same Bearer mcph_* key as your other connected tools.

Can I combine MLB stats with my own database?

Yes — pair this server with a hosted database MCP server like Postgres, BigQuery, or SQLite so agents can join live baseball data with your internal tables in the same session.

Give your AI team the MLB Stats Server skill

Free forever plan, no credit card. Connected and working in under five minutes.

Connect MLB Stats Server free