Integration

SportsDataIO MLB integration

SportsDataIO MLB serves Major League Baseball data: games and scores (live or final) by date, schedules, standings, team and player profiles, injuries, depth charts, starting lineups, transactions, box scores and play-by-play, player and team game and season stats with splits (home and away, batter vs pitcher, team hitting vs starting pitcher), fantasy points, projections, DFS slates and ownership projections, RotoBaller premium news, player headshots, and betting data: pre-game, period and in-game odds with line movement, betting events, markets, results, player props, futures, splits and trends. Authentication is a SportsDataIO API key (free trial or paid subscription) sent in the Ocp-Apim-Subscription-Key header; a free trial key returns scrambled scores, stats and odds (moved 5 to 20 percent), while schedules, teams and players are accurate. Not included: XML output, the historical betting props and futures archives, and the routes the documentation no longer lists, nor the games-in-progress check, which answers a bare true or false.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in SportsDataIO MLB.Built from the 88 SportsDataIO MLB tools below, on the connection you add once.

What you can do with SportsDataIO MLB

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Betting market, 3 operations

  • get_betting_marketGet betting marketGETReturns full line movement for a given BettingMarket.
  • get_betting_markets_by_eventGet betting markets by eventGETReturns the markets of all available types (e.g. Player Props, Team Props) and available outcomes for a given BettingEventID.
  • get_betting_market_sportsbook_groupGet betting market sportsbook groupGETReturns full line movement for a given BettingMarket.

Betting futures by season, 2 operations

  • get_betting_futures_by_seasonGet betting futures by seasonGETReturns available Futures markets for the given season. Does not include line movement.
  • get_betting_futures_by_season_sportsbook_groupGet betting futures by season sportsbook groupGETReturns available Futures markets for the given season. Does not include line movement. A Sportsbook Group must be specified as a URL parameter.

Betting markets by game id, 2 operations

  • get_betting_markets_by_gameGet betting markets by gameGETReturns the markets of all available types (e.g. Player Props, Team Props) and available outcomes for a given GameID.
  • get_betting_markets_by_game_sportsbook_groupGet betting markets by game sportsbook groupGETReturns the markets of all available types (e.g. Player Props, Team Props) and available outcomes for a given GameID. A Sportsbook Group must be specified as a URL parameter.

Betting markets by market type, 2 operations

  • get_betting_markets_by_market_typeGet betting markets by market typeGETReturns Markets and available outcomes for a given event and market type requested.
  • get_betting_markets_by_market_type_sportsbook_groupGet betting markets by market type sportsbook groupGETReturns Markets and available outcomes for a given event and market type requested.

Betting player props by game id, 2 operations

  • get_betting_player_props_by_gameGet betting player props by gameGETThis works in the same way as get_betting_markets_by_market_type but is prefiltered to the Player Props type only.
  • get_betting_player_props_by_game_sportsbook_groupGet betting player props by game sportsbook groupGETThis works in the same way as get_betting_markets_by_market_type but is prefiltered to the Player Props type only.

Box score, 2 operations

  • get_box_score_live_and_finalGet box score live and finalGETFull statistical information for a specified game, down to the team and player stat level, delivered live during the game, called per individual game.
  • get_box_scores_by_date_live_and_finalGet box scores by date live and finalGETFull statistical information for a specified game, down to the team and player stat level, delivered live during the game, called for all games on a given date.

Player, 2 operations

  • get_player_details_by_activeGet player details by activeGETFull player bio and details, including injury notes, for all active players.
  • get_players_details_by_teamGet players details by teamGETFull player bio and details, including injury notes, for all available players by team.

Team, 2 operations

  • get_team_profiles_by_activeGet team profiles by activeGETFull team information: team name and city, league and division, and colors. Also contains basic fantasy info such as IDs as well as full stadium data.
  • get_team_profiles_by_seasonGet team profiles by seasonGETList of teams playing in a specified season, with their profile info.

Active sportsbook, 1 operation

  • get_sportsbooks_by_activeGet sportsbooks by activeGETA list of all available sportsbooks with their associated unique IDs.

All team, 1 operation

  • get_team_profiles_allGet team profiles allGETFull team information: team name and city, league and division, and colors. Also contains basic fantasy info such as IDs as well as full stadium data.

Alternate market game odds by date, 1 operation

  • get_period_game_odds_by_dateGet period game odds by dateGETReturns the non-full-game odds (spread, moneyline, total) for games on a given date. Non-full-game means first five innings, for example, rather than full game.

Alternate market game odds line movement, 1 operation

  • get_period_game_odds_line_movementGet period game odds line movementGETReturns the non-full-game odds (moneyline, spread, total) for one game, given its GameID, with the full line movement. Non-full-game means the first inning or the first five innings, for example, rather than the full game.

Betting event, 1 operation

  • get_betting_events_by_seasonGet betting events by seasonGETThe list of current BettingEvents for the given season, from which Betting Market data can be gathered via get_betting_markets_by_event.

Betting events by date, 1 operation

  • get_betting_events_by_dateGet betting events by dateGETThe list of current BettingEvents for the given date, from which Betting Market data can be gathered via get_betting_markets_by_event.

Betting market result, 1 operation

  • get_betting_results_by_marketGet betting results by marketGETReturns all outcomes under this market which have a result type associated. Will return empty list if resulting has not yet processed for the given game.

Betting markets by event, 1 operation

  • get_betting_markets_by_event_sportsbook_groupGet betting markets by event sportsbook groupGETReturns the markets and available outcomes for a given BettingEventID. A Sportsbook Group must be specified as a URL parameter.

Betting metadata, 1 operation

  • get_betting_metadataGet betting metadataGETReturns the list of MarketTypes, BetTypes, PeriodTypes, OutcomeTypes, and ResultTypes to map the IDs to descriptive names.

Betting results by market, 1 operation

  • get_betting_results_by_market_sportsbook_groupGet betting results by market sportsbook groupGETProvide a market ID that supports resulting (i.e. has a ResultType) and this endpoint will return a result: for markets with a ResultType.

Betting splits by game id, 1 operation

  • get_betting_splits_by_gameGet betting splits by gameGETList of Money and Bet Percentage splits for each market and their respective outcome types available in this game.

Betting splits by market id, 1 operation

  • get_betting_splits_by_betting_marketGet betting splits by betting marketGETList of Money and Bet Percentage splits for each outcome type available in this market. This specific endpoint will return the movement from this market as well as the most recent.

Box score final, 1 operation

  • get_box_score_finalGet box score finalGETFull statistical information for a specified game, down to the team and player stat level, delivered after the game is complete.

Box scores delta, 1 operation

  • get_box_scores_delta_by_dateGet box scores delta by dateGETThis method returns all box scores for a given date, but only returns player stats that have changed in the last X minutes as specified in your API call.

Box scores final, 1 operation

  • get_box_scores_by_date_finalGet box scores by date finalGETFull statistical information for a specified date for each game that took place, down to the team and player stat level, delivered after the game is complete.

Current season, 1 operation

  • get_season_currentGet season currentGETYear of the current season. This value changes at the start of the new league year. For leagues that run over two years, this is the year the season starts, not ends.

Depth chart, 1 operation

  • get_depth_chartsGet depth chartsGETReturns Depth Charts for all active MLB teams.

Dfs slate ownership projections by slate id, 1 operation

  • get_dfs_slate_ownership_projections_by_slateGet dfs slate ownership projections by slateGETSlate Ownership Projections for a specific slate. Projections are for Guaranteed Prize Pool (GPP) format ownership.

Dfs slates by date, 1 operation

  • get_dfs_slates_by_dateGet dfs slates by dateGETReturns DFS Slates which have not yet started for which we have DFS projections.

Fantasy game stats by date, 1 operation

  • get_fantasy_points_by_dateGet fantasy points by dateGETReturns a simple list of fantasy points and stats for each player for a given date.

Free agent, 1 operation

  • get_player_details_by_free_agentsGet player details by free agentsGETFull player bio and details, including injury notes, for all available free agents unattached to a team.

Game, 1 operation

  • get_schedulesGet schedulesGETReturns the full schedule of games for the given season: teams, date and start time, stadium, broadcast channel, status, inning, pre-game lines, weather forecast and gameday information such as probable and current pitchers.

Game odds by date, 1 operation

  • get_pre_game_odds_by_dateGet pre game odds by dateGETReturns full game odds (spread, moneyline, total) for games on a given date. Only returns the most recently seen odds, not inclusive of line movement.

Game odds line movement, 1 operation

  • get_pre_game_odds_line_movementGet pre game odds line movementGETReturns the full-game pre-game odds (moneyline, spread, total) for one game, given its GameID, with the full line movement. Meant for historical data and line movement.

Games by date, 1 operation

  • get_games_by_date_live_and_finalGet games by date live and finalGETFull scores and gameday info delivered live and post-game. Live data includes innings, scores, pitch count etc. Gameday info includes referee, weather, TV channel etc.

Games by date final, 1 operation

  • get_games_by_date_finalGet games by date finalGETFull scores and gameday info, including weather, referee, infotainment odds, as well as all of the innings scores and full-time score, delivered as the game ends.

Headshot, 1 operation

  • get_headshotsGet headshotsGETUSA Today/IMAGN cropped action headshots for all active NFL players, delivered shortly after the season starts.

Hitter vs pitcher, 1 operation

  • get_batter_vs_pitcher_statsGet batter vs pitcher statsGETStat records for a given hitter and a given pitcher, called by PlayerId in both cases.

In game odds by date, 1 operation

  • get_in_game_odds_by_date_sportsbook_groupGet in game odds by date sportsbook groupGETReturns in-play game odds (spread, moneyline, total) for games on a given date. Only returns the most recently seen odds, not inclusive of line movement.

In game odds line movement, 1 operation

  • get_in_game_odds_line_movement_sportsbook_groupGet in game odds line movement sportsbook groupGETReturns the in-play odds (moneyline, spread, total) for one game, given its GameID, with the full line movement, for the given sportsbook group. Meant for historical data and line movement.

In game odds line movement with resulting, 1 operation

  • get_in_game_odds_line_movement_with_results_sportsbook_groupGet in game odds line movement with results sportsbook groupGETReturns the in-play odds (moneyline, spread, total) for one game, given its GameID, with the full line movement, for the given sportsbook group, plus resulting: the lines of markets with a ResultType are graded as won or lost.

Injured player, 1 operation

  • get_player_details_by_injuredGet player details by injuredGETThis endpoint provides all currently injured MLB players, along with injury details.

Live game odds by date, 1 operation

  • get_in_game_odds_by_dateGet in game odds by dateGETReturns in-play game odds (spread, moneyline, total) for games on a given date. Only returns the most recently seen odds, not inclusive of line movement.

Live game odds line movement, 1 operation

  • get_in_game_odds_line_movementGet in game odds line movementGETReturns the in-play odds (moneyline, spread, total) for one game, given its GameID, with the full line movement. Meant for historical data and line movement.

Matchup trend, 1 operation

  • get_betting_trends_by_matchupGet betting trends by matchupGETReturns trends data for a given pairing of teams. Will return data even if the teams are not set to play this season.

Play by play, 1 operation

  • get_play_by_play_live_and_finalGet play by play live and finalGETEach invididual play, its type and outcome, complete with player and team stats down to the play level, delivered live in real-time, called by game.

Play by play delta, 1 operation

  • get_play_by_play_deltaGet play by play deltaGETReturns the play-by-play of every game on the given date, but only the plays that changed in the last given number of minutes. A live feed, not final.

Play by play final, 1 operation

  • get_play_by_play_finalGet play by play finalGETEach invididual play, its type and outcome, complete with player and team stats down to the play level, delivered final (after the game ends), called by game.

Player game projection stats by date, 1 operation

  • get_projected_player_game_stats_by_dateGet projected player game stats by dateGETSportsDataIO's proprietary projections, including DFS salary information and injuries, for fantasy players, called by date.

Player game stats by date, 1 operation

  • get_player_game_stats_by_date_live_and_finalGet player game stats by date live and finalGETReturns the box score statistical record for all involved players across a given date, updated live as the game takes place.

Player game stats by date final, 1 operation

  • get_player_game_stats_by_date_finalGet player game stats by date finalGETReturns the box score statistical record for all involved players across all teams' games on a given date after each game has concluded.

Player game stats by season, 1 operation

  • get_player_game_logs_by_seasonGet player game logs by seasonGETSpecify a season, a player, and number of games (either an integer or all ) to see all of their box score logs. Refreshed after their most recent game is complete.

Player season away stat, 1 operation

  • get_player_season_stats_by_awayGet player season stats by awayGETAll players' stats for the season taken only from their road games.

Player season home stat, 1 operation

  • get_player_season_stats_by_homeGet player season stats by homeGETAll players' stats for the season taken only from their home games.

Player season projection stat, 1 operation

  • get_projected_player_season_stats_with_adpGet projected player season stats with adpGETSportsDataIO's proprietary projections, including average draft position, for all active players for the season.

Player season split stat, 1 operation

  • get_player_season_split_statsGet player season split statsGETAll players' split stats for the season. Split stats are available for left, right, and switch-handed pitchers and hitters.

Player season stat, 1 operation

  • get_player_season_statsGet player season statsGETReturns all season-long stats (i.e. the season total, not each individual game record) for all players for a given season.

Player season stats by team, 1 operation

  • get_player_season_stats_by_teamGet player season stats by teamGETReturns all season-long stats (i.e. the season total, not each individual game record) for a given team's players in a given season.

Player season stats split by team, 1 operation

  • get_player_season_stats_split_by_teamGet player season stats split by teamGETAll a given team's players' split stats for the season. Split stats are available for left, right, and switch-handed pitchers and hitters.

Players basic, 1 operation

  • get_player_profiles_by_teamGet player profiles by teamGETA more stripped-down list of players on a given team, for simple applications.

Players by active, 1 operation

  • get_player_profiles_by_activeGet player profiles by activeGETA stripped-down list of all active players (players currently on a team), with biographical information, team, jersey number, position, bat hand and throw hand. A lighter alternative to get_player_details_by_active.

Players by free agent, 1 operation

  • get_player_profiles_by_free_agentsGet player profiles by free agentsGETA stripped-down list of all free agents (players not currently on a team), with biographical information, position, bat hand and throw hand. A lighter alternative to get_player_details_by_free_agents.

Pre game odds by date, 1 operation

  • get_pregame_and_period_odds_by_date_sportsbook_groupGet pregame and period odds by date sportsbook groupGETReturns the full-game and non-full-game odds (spread, moneyline, total) for games on a given date. Only returns the most recently seen odds, not inclusive of line movement.

Pre game odds line movement, 1 operation

  • get_pregame_and_period_odds_line_movement_sportsbook_groupGet pregame and period odds line movement sportsbook groupGETReturns the full-game and non-full-game odds (moneyline, spread, total) for one game, given its GameID, with the full line movement, for the given sportsbook group. Meant for historical data and line movement.

Pre game odds line movement with resulting, 1 operation

  • get_pregame_period_line_movement_with_results_sportsbook_groupGet pregame period line movement with results sportsbook groupGETReturns the full-game and non-full-game odds (moneyline, spread, total) for one game, given its GameID, with the full line movement, for the given sportsbook group, plus resulting: the lines of markets with a ResultType are graded as won or lost.

Roto baller premium new, 1 operation

  • get_premium_newsGet premium newsGETRotoBaller's Premium News feed, with the latest updated stories in greater detail.

Roto baller premium news by date, 1 operation

  • get_premium_news_by_dateGet premium news by dateGETRotoBaller's Premium News feed, with the latest updated stories in greater detail called by date.

Schedules basic, 1 operation

  • get_schedules_basicGet schedules basicGETA lightweight schedule of the games in the given season, without gameday information: home and away teams, date and start time, stadium and game status.

Scores basic, 1 operation

  • get_games_basic_by_date_live_and_finalGet games basic by date live and finalGETA slimmed-down score list for every game on the given date, live and final: inning, runs, hits and errors, without gameday information such as weather.

Scores basic final, 1 operation

  • get_games_basic_by_date_finalGet games basic by date finalGETA slimmed-down score endpoint, giving just the innings scores and final score, for simple applications. Delivered after the game ends.

Stadium, 1 operation

  • get_stadiumsGet stadiumsGETReturns all stadiums in the league with capacity, surface, latitude/longitude, city and state (and where applicable country.)

Standing, 1 operation

  • get_standingsGet standingsGETIncludes regular season standings in division and league, from which postseason seeding can be derived.

Starting lineups by date, 1 operation

  • get_starting_lineups_by_dateGet starting lineups by dateGETReturns both projected and confirmed starting lineups for all games on a given date.

Team game stats by date, 1 operation

  • get_team_game_stats_by_date_live_and_finalGet team game stats by date live and finalGETReturns each team's box score stats (aggregated from all of its players) for every game on the given date, live during the games and final after them.

Team game stats by date final, 1 operation

  • get_team_game_stats_by_date_finalGet team game stats by date finalGETReturns the box score statistical record team-wide (aggregated from all players) for all games on a given date after the game has concluded.

Team game stats by season, 1 operation

  • get_team_game_logs_by_seasonGet team game logs by seasonGETGame by game log of total team statistics.

Team hitters vs pitcher, 1 operation

  • get_team_hitting_vs_starting_pitcherGet team hitting vs starting pitcherGETFor a given game, returns a team's hitting record versus the projected or confirmed starting pitcher for the game in question.

Team season stat, 1 operation

  • get_team_season_statsGet team season statsGETReturns all season-long stats (i.e. the season total, not each individual game record) for all teams (aggregated from all players) for a given season.

Team trend, 1 operation

  • get_betting_trends_by_teamGet betting trends by teamGETDescribes recent team trends and performance against betting data in recent sets of games.

Transactions by date, 1 operation

  • get_transactionsGet transactionsGETA list of transactions, such as assignments, placement on the injury list, player trades etc., delivered by date.

Upcoming dfs slate ownership projection, 1 operation

  • get_dfs_slate_ownership_projections_upcomingGet dfs slate ownership projections upcomingGETReturns DFS Slates which have not yet started for which we have DFS Ownership projections.

Use SportsDataIO MLB from Claude Code, Cursor or Codex

Connect SportsDataIO MLB in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its SportsDataIO MLB operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect SportsDataIO MLB

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect SportsDataIO MLB once

    Add your SportsDataIO MLB connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

SportsDataIO MLB integration FAQ

What can you do with the SportsDataIO MLB integration?

LiveContext exposes 88 operations on SportsDataIO MLB, covering betting market, betting futures by season, betting markets by game id and betting markets by market type.

Popular integrations

Browse the whole catalog