Spiral gives your agent every tool with one account. Browse the tools →

Windsurf · Sports

How to Use ESPN sports and leagues in Windsurf

Returns the sports and leagues available through ESPN's data source. Use it to discover competitions before researching their games, teams, or standings.

Prompts to try with ESPN sports and leagues in Windsurf

Copy an example into Windsurf, or ask in your own words.

Use ESPN sports and leagues to discover ESPN's soccer competitions and add a searchable competition directory to my personal research app.

ESPN sports and leaguesWindsurf
Try asking
  • Use ESPN sports and leagues to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from ESPN sports and leagues and tell me what changed since last week.

  • Check ESPN sports and leagues and summarize what you find in three bullet points.

  • Pull the newest data from ESPN sports and leagues and give me the result as a table.

How to set up ESPN sports and leagues in Windsurf

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run ESPN sports and leagues

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "espn-com/sports-data/leagues",
        "input": {
          "sport": "<sport>"
        }
      }'

Then paste one of the prompts above: Windsurf finds ESPN sports and leagues on Spiral, shows the price and runs it.

ESPN sports and leagues providers and prices

Spiral runs ESPN sports and leagues through Alexandria. Open a card for today's price, with every fee included.

AlexandriaSports
ESPN · Leagues
espn-com/sports-data/leagues

What can you do with ESPN sports and leagues in Windsurf?

Build a personal sports notebook that connects ESPN games, teams, and athlete records. A coding agent can turn those results into comparison tables and reports in your project.

Prepare a daily sports briefing

Choose supported basketball and football competitions, resolve teams by name, and combine scores, game details, player performances, roster context, injuries, and standings into a personal morning briefing.

Keep a personal season notebook

Follow selected clubs across ESPN competitions. Add current team records, roster and injury changes, game summaries, individual stat lines, and player season totals to explain how each club's season develops.

Research weekend matchups

Select competitions and teams, then compare standings, recent game statistics, current rosters, published injuries, and player season records. Produce a matchup brief that separates measured performance from reported availability.

Compare football programs and players

Discover football competitions, identify teams and athletes, and compare team records, standings, roster composition, and player season statistics for a personal research report.

Questions about ESPN sports and leagues in Windsurf

Can Windsurf use ESPN sports and leagues?

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run ESPN sports and leagues like any built-in tool.

How much does ESPN sports and leagues cost in Windsurf?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.

Do I need an Alexandria account to use ESPN sports and leagues in Windsurf?

No. Spiral runs ESPN sports and leagues on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up ESPN sports and leagues in Windsurf?

About two minutes: add the server, then sign in, then check it.

Does Windsurf wait while ESPN sports and leagues runs?

ESPN sports and leagues runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.

Where does the ESPN data come from?

The source uses ESPN's public site and core JSON APIs. Its coverage is limited to the records ESPN exposes through those sources.

Does ESPN cover international competitions?

Yes. The provider documents US and international coverage, including the Premier League and approximately 219 soccer competitions.

Are the same statistics available for every sport?

The statistics depend on the sport. Documented examples include NFL passing, rushing, and receiving figures and NHL skater and goalie statistics.

How fresh are ESPN's live NFL statistics?

ESPN says it updates NFL live scores and statistics as they are received. Those figures can change as the league reports more accurate data.

Can NFL statistics change after a game ends?

Yes. ESPN documents postgame adjustments and corrections that can appear up to seven days after the game was played.

Get started

Start using ESPN sports and leagues in Windsurf

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Windsurf:

Set up Windsurf

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options