ESPN API

How to connect ESPN to Cursor

Add the Firecrawl MCP server to Cursor once and it can call the ESPN API and every other provider in Firecrawl Alexandria, with no ESPN integration code.

Open Markdown

To connect ESPN to Cursor, add the Firecrawl MCP server to Cursor, sign in on a Firecrawl team with Alexandria enabled, and ask for ESPN data in plain language. The connection works in Cursor's agent and chat, and you set it up once.

Cursor uses ESPN as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for ESPN.

Cursor is an AI code editor. Its agent uses MCP servers for outside tools, and the Firecrawl MCP server adds web search, scraping and every data provider in Firecrawl Alexandria.

How do I connect ESPN to Cursor?

  1. Install the Firecrawl MCP server

    Open the install dialog in Cursor, check that the URL is Firecrawl's hosted server, then select Install.

    Cursor's Install MCP server dialog with the Firecrawl hosted server URL
  2. Connect your Firecrawl account

    Use the server's sign-in option in Cursor's MCP settings. Firecrawl opens in your browser: sign in, choose a team with Alexandria enabled, and approve access. A green dot next to Firecrawl means it's connected.

    Cursor's MCP list showing Firecrawl connected with its tools enabled
  3. Ask Cursor's agent for the data

    In the agent chat, ask in plain language and mention ESPN or Firecrawl Alexandria. The agent finds the ESPN capability that fits and runs it. For example:

    Use Firecrawl to show ESPN’s NFL scoreboard for regular-season week 4 of 2026 with game status, start time and scores where available.

What can Cursor do with ESPN?

ESPN public sports data from the anonymous site and core JSON APIs: sport/league discovery, scoreboards by date or week (fixtures, live and final scores with explicit status), event summaries, player box scores (per-period linescores and every player's stat line: NFL passing/rushing/receiving, NHL skaters incl. shots and goalies, NBA, MLB, football (soccer) incl. goalkeepers and team formations), teams, team records and schedules, rosters, standings and league tables, player bios with career statistics, football (soccer) league leaders (top scorers, assists) and a player's season statistics, league injury reports (NFL, NBA, WNBA, MLB, NHL, college football), and site search. Football (soccer) match summaries add key events (goals with scorer and assist, penalties, cards, substitutions), each club's last five results (form) and the head-to-head record when ESPN sends them. US and international coverage as ESPN exposes it: NFL, NBA, MLB, NHL, college sports and ~219 football (soccer) competitions, verified for the Premier League (eng.1), Fußball-Bundesliga (ger.1: Tabelle, Spieltag results, Torschützen), 2. Bundesliga (ger.2), DFB-Pokal (ger.dfb_pokal), Austrian Bundesliga (aut.1, ADMIRAL Bundesliga), LALIGA (esp.1), Serie A (ita.1), Ligue 1 (fra.1), Eredivisie (ned.1), Primeira Liga (por.1), MLS (usa.1), Liga MX (mex.1), UEFA Champions League (uefa.champions), Europa League (uefa.europa) and Conference League (uefa.europa.conf). Gaps: ESPN has no 3. Liga or ÖFB-Cup, lists Austria's 2. Liga (aut.2) and the Swiss Challenge League (sui.2) without clubs or matches, and publishes no Swiss Super League (sui.1) table and no sui.1 results after early August 2025.

Cursor can run any of ESPN's 14 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

  • Boxscore: Player box score (player stats, props auditing) for one game from ESPN's `site.api.espn.com/apis/site/v2/sports/{sport}/{league}/summary?event=`: the event card (status, final score), per-team per-period linescores, and every player's stat line grouped by ESPN's categories with ESPN's stat keys, labels and descriptions preserved: NFL passing/rushing/receiving/defensive/kicking/punting/returns, NHL forwards/defense and goalies (shots on goal = key `shotsTotal`, time on ice, saves, save percentage), NBA points/rebounds/assists/minutes, MLB batting and pitching, football (soccer) match rosters including goalkeepers (saves, goals conceded), each team with ESPN's `formation` (e.g. 4-2-3-1) when it sends one. Categories are read generically, so any league ESPN gives a box score for works. Since 1.3.1 a category with no `name` or `type` is kept and named from `label`, `displayName`, or its first stat key (an NBA or college basketball table has none of those and is named `minutes`). A player row whose `stats` length differs from `keys` is kept: missing cells are null, extra cells are dropped, and `note` names the rows. `upstream_schema_changed` is reserved for a payload that cannot be read. Also the per-team game leaders (e.g. passing/rushing/receiving yards, goals/assists/points). A scheduled game has no player lines (`teams: []` with a `note`); when ESPN reports every player stat as 0 for a match with a non-zero score (some women's soccer competitions) the lines are null with a `note` rather than zeros. An unknown event, or an event of another league, is `not_found`. Costs 5 Firecrawl credits per call.
  • Event: One event's summary from `site.api.espn.com/apis/site/v2/sports/{sport}/{league}/summary?event=`: header (status, start time, competitors, scores, records), venue, attendance, officials, team box-score statistics as ESPN labels them, scoring/key plays (NFL `scoringPlays`; football (soccer) `keyEvents`: goals and penalties with `scorer` then `assist`, cards, substitutions with `on` then `off`, half-time and full-time, ESPN's text kept; the untyped match details when ESPN sends no key events) and the recap headline. Per-player box scores and per-period linescores are the `boxscore` function. When ESPN publishes a final score but all-zero team statistics and no match details (some women's competitions, e.g. Liga MX Femenil), `team_statistics[].statistics` is null and `team_statistics_note`/`key_plays_note` say the data is unavailable rather than zero. ESPN does not validate the league path, so an event that belongs to another league is `not_found` rather than mislabeled. For football (soccer) `form` gives each club's last five matches (oldest first, any competition incl. cups, UEFA and friendlies, scored from that club's side) and `head_to_head` ESPN's previous meetings of the two clubs (newest first) with its series summary; both are omitted when ESPN sends none (seen for a DFB-Pokal tie). An unknown event_id is `not_found`. Costs 5 Firecrawl credits per call.
  • Injuries: NFL, NBA, WNBA, MLB, NHL and college football injury report (who is out, injured reserve, day-to-day, questionable) from `site.api.espn.com/apis/site/v2/sports/{sport}/{league}/injuries` (one keyless request): every team ESPN lists with its injured players, each with athlete_id, name, position, status (Out, Day-To-Day, Questionable, Injured Reserve, IL...), note date, short and long comment, injury type and details when ESPN gives them, and the ESPN player URL, plus the feed timestamp. ESPN omits teams with no injuries from the report (e.g. NHL: 31 of 32 clubs listed), so pass `team` (one or more ESPN team ids or abbreviations, comma-separated, e.g. `MIN,CAR,CBJ` for tonight's clubs): each named team is always returned, a healthy one with an empty list, `count: 0` and a note (one extra request resolves the names against the league's team list; an unknown team is `not_found`). Common abbreviations ESPN does not use resolve for the NBA (WAS, NYK, GSW, UTA, SAS, NOP) and the NFL (WAS, JAC). `status` filters players. Verified for basketball/nba, basketball/wnba, football/nfl, baseball/mlb, hockey/nhl and football/college-football; a league with no listed injuries (offseason, or one ESPN does not report, e.g. soccer) is an empty `teams` list with a `note`. An unknown sport/league, or a league ESPN keeps no injury report for (racing, golf, MMA), is `not_found`. Costs 5 Firecrawl credits per call.
  • Leaders: Football (soccer) league leaders from `site.web.api.espn.com/apis/site/v2/sports/soccer/{league}/statistics[?season=]`: the top scorers (goals, Torschützenliste) and assist leaders ESPN ranks for one competition and season, up to 50 each. Every leader has a rank (1, 2, 2, 4 on ties), athlete_id, name, club (team_id, name, abbreviation), matches played, the value and ESPN's display text ("Matches: 32, Goals: 36"). Verified for eng.1, ger.1, ger.2, ger.dfb_pokal, aut.1, esp.1, ita.1, fra.1, ned.1, por.1, usa.1, uefa.champions, uefa.europa and sui.1 (2025-26). Without `season` ESPN returns the current season. ESPN always echoes its current season, so a requested season is reported as requested and `season.name` is set only for the current one. `limit` keeps the first N per category (default 20, max 50); the result is partial when ESPN lists more. A season or competition ESPN lists no leaders for (season 2030, aut.2) is `not_found`; a sport other than soccer is `invalid_input`. Costs 5 Firecrawl credits per call.
  • Leagues: List the sports ESPN's core API exposes (no `sport`) or every league/competition slug within one sport (`sport`), from `sports.core.api.espn.com/v2/sports[/{sport}/leagues]`. Slugs are the stable identifiers every other function takes as `sport`/`league`. Football (soccer) lists ~219 competitions (eng.1, ger.1, ger.2, ger.dfb_pokal, aut.1, esp.1, ita.1, fra.1, ned.1, por.1, usa.1, mex.1, uefa.champions, uefa.europa, uefa.europa.conf, fifa.world, ...). One request; ESPN pages at 1000 so the list is complete for every sport observed. An unknown sport is `not_found`. Costs 5 Firecrawl credits per call.
  • Player: One athlete's public profile from `site.web.api.espn.com/apis/common/v3/sports/{sport}/{league}/athletes/{athlete_id}` (identity, position, current team, status, age, birth date/place, height, weight, experience, draft, college, headshot) and, unless `include_statistics` is false, career statistics by season from `.../athletes/{athlete_id}/stats`: ESPN's categories with labels, stat names, display names, per-season rows (team, position, values as ESPN prints them) and career totals. Stat names and units are sport-specific and kept verbatim; a player without a statistics page keeps `statistics: null` with a warning. `athlete_id` is ESPN's own athlete id (the number in an espn.com player URL, or from `search`, `roster`, `boxscore`), not MLB.com/MLBAM, Baseball-Reference or another site's id: an id ESPN does not know is `not_found` with a message that says so; resolve a name with `search` first. A football (soccer) player's full line for one competition and season (appearances, minutes, goals, assists, shots, cards, saves) is `player_season_stats`. ESPN's career statistics endpoint answers 404 for many soccer players (goalkeepers included); then `statistics` is null with `statistics_unavailable_reason`, and `season_summary` carries the bio's current-season headline stats (saves, clean sheets, goals against for a goalkeeper). Costs 5 Firecrawl credits per call.
  • Player season stats: One football (soccer) player's statistics for one competition and season from ESPN's core API (`sports.core.api.espn.com/v2/sports/soccer/leagues/{league}[/seasons/{season}]/athletes/{athlete_id}` and the statistics it points to): ESPN's categories (general, offensive, defensive, goalKeeping) with each stat's name, display name, abbreviation, value and display value, 95 to 106 in all: appearances, starts, minutes, goals, assists, shots and shots on target, passes, tackles, fouls, yellow and red cards, saves, clean sheets, goals conceded and more. Also the athlete's name, position and club (team_id) that season. Without `season` ESPN's current season. ESPN sends wins, draws, losses, winPct and the four average ratings as 0 for every player observed; for a player with appearances those values are null with a `note` instead of a false 0. An athlete ESPN does not know, or a league or season without a statistics line for the player (Harry Kane in eng.1 or in the 2010 Bundesliga), is `not_found`; a sport other than soccer is `invalid_input`. The bio is `player`. Costs 5 Firecrawl credits per call.
  • Roster: A team's current roster from `site.api.espn.com/apis/site/v2/sports/{sport}/{league}/teams/{team_id}/roster`, flattened to one player list (NFL unit groups such as offense/defense/practiceSquad become `group`) in a bounded window (`offset`/`limit`, default 100) with `next_offset`: athlete_id, names, jersey, position, age, date of birth, height/weight (raw inches/pounds and display), birthplace, citizenship (soccer), college and experience (NFL), status, injuries, headshot, player URL; plus coaches and season. An unknown team_id is `not_found`. Costs 5 Firecrawl credits per call.
  • Scoreboard: Events for one league on one date (`date`, YYYYMMDD, ESPN's US-Eastern day) or, for week-based leagues such as the NFL and college football, one week (`season` + `seasontype` + `week`), from `site.api.espn.com/apis/site/v2/sports/{sport}/{league}/scoreboard`. Each event carries ESPN's event_id, UTC start time, the status type (STATUS_SCHEDULED / STATUS_IN_PROGRESS / STATUS_FINAL / STATUS_FULL_TIME / STATUS_POSTPONED / ...) with a derived `category`, venue, broadcasts and the competitors: both teams with score (null before kickoff), winner flag and records, or, for racing (`racing/f1`: a Grand Prix weekend is one event whose sessions FP1-FP3, qualifying and race are its competitions), every driver of the final session (the race) with finishing `order`, `winner` and `athlete_id`, plus the circuit as venue and `end_time`. Without `date` ESPN returns its current day/week. `groups` bounds college football (80 = FBS) and `limit` caps the count (partial coverage when hit). An empty list is a legitimate day without events, with a `note`; a competition ESPN lists without a season, calendar or events (aut.2, sui.2) says so in `note`. An unknown league is `not_found`. Costs 5 Firecrawl credits per call.
  • Search: ESPN site search from `site.web.api.espn.com/apis/search/v2`: results grouped by type (player, team, league, article, clips, ...) with ESPN's totals, each item with display name, subtitle, sport, default league slug, web URL and the ids decoded from ESPN's uid (`s:600~t:359` = sport 600, team 359; `s:20~l:28~a:3139477` = NFL athlete). Restrict with `type` (player, team, league, article). A query with no matches returns empty groups. Costs 5 Firecrawl credits per call.

See all 14 capabilities and their inputs on the ESPN API page.

What should I ask Cursor?

Name ESPN or Firecrawl Alexandria in the prompt so Cursor reaches for it. Each example opens in Cursor with the prompt filled in.

Troubleshooting

Why can't Cursor find ESPN?

If Firecrawl's tools in Cursor stop at search, scrape and parse, the connection is keyless and doesn't include Alexandria. Finish the sign-in from Cursor's MCP settings, or add an API key from a team with Alexandria enabled.

Firecrawl shows a red dot in Cursor. What should I do?

Open Cursor's MCP settings, sign in to Firecrawl again, and restart the agent chat so it loads the tools.

Use ESPN in other AI apps

The same Firecrawl account reaches ESPN from other AI apps. Pick one for its setup steps:

Other data providers you can connect to Cursor

Frequently Asked Questions

What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl MCP server brings those tools into Cursor, along with every data provider in Firecrawl Alexandria.

What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, ESPN among them. Each provider returns structured data through documented capabilities. Cursor finds the capability that fits your question and calls it through the Firecrawl MCP server, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

Is there a ESPN MCP server for Cursor?

Cursor reaches ESPN through Firecrawl's hosted MCP server, which serves ESPN and every other Alexandria provider as tools. Add the Firecrawl MCP server once and you don't install or host a separate MCP server for ESPN.

What does connecting ESPN to Cursor unlock?

Cursor can run all 14 of ESPN's capabilities, including Boxscore, Event and Injuries, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to show ESPN’s NFL scoreboard for regular-season week 4 of 2026 with game status, start time and scores where available." In the same conversation, Cursor can combine ESPN with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

Do I need my own ESPN account or API key to use it in Cursor?

No. Cursor calls ESPN through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate ESPN account or API key.

How much does it cost to use ESPN in Cursor?

Each ESPN call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to Cursor, and finding the right capability is free.

Can Cursor use other providers besides ESPN?

Yes. The same Firecrawl MCP server reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

Can I use ESPN in other AI apps?

Yes. Connect Firecrawl to ChatGPT, Claude, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same ESPN capabilities are available there. Keyless connections don't include Alexandria.

//
Get started
//
Ready to build?
Start getting web context for free and scale seamlessly as your project expands. No credit card needed.
Are you an AI agent? See setup options