# ESPN Sports Data, Live Scores & Odds — MCP Server & API (`shawn1905/espn-sports-mcp-server`) Actor

Real-time ESPN live scores, betting odds, boxscores, injuries, standings, rosters, schedules, rankings, and news across NFL, NBA, MLB, NHL, EPL, UCL, UFC, NCAA, and more. Dual-mode: Remote MCP Server (Standby) + Batch API.

- **URL**: https://apify.com/shawn1905/espn-sports-mcp-server.md
- **Developed by:** [FENG LI](https://apify.com/shawn1905) (community)
- **Categories:** MCP servers, AI, Automation
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 espn read queries

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## ESPN Sports Data, Live Scores & Betting Odds — MCP Server & API

Fast, zero-proxy, **dual-mode** ESPN Sports Data **Remote MCP Server (Apify Standby)** and **Batch API** covering **16 major sports leagues** (plus any custom ESPN `<sport>/<league>` path).

Built for **Claude Desktop, Claude Code, Cursor, OpenAI Agents, LangChain, CrewAI, n8n, and Make.com**.

***

### Supported Leagues (16 Built-In Shortcuts + Custom Paths)

| Sport | League Shortcuts |
| --- | --- |
| **Football** | `nfl`, `ncaaf` |
| **Basketball** | `nba`, `wnba`, `ncaab`, `ncaaw` |
| **Baseball & Hockey** | `mlb`, `nhl` |
| **Soccer** | `epl`, `ucl`, `laliga`, `bundesliga`, `seriea`, `mls` |
| **Combat & Motorsport** | `ufc`, `f1` |
| **Custom** | Any valid ESPN path such as `soccer/fra.1`, `tennis/atp`, `golf/pga` |

***

### 10 Built-In MCP Tools (Also Available in Batch Mode)

| Tool | Tier | What It Returns |
| --- | --- | --- |
| `list_supported_leagues` | **Free** | Lists all supported league codes and custom path syntax |
| `get_scoreboard` | Read (`$0.004`) | Live scores, clock/period, status, venue, broadcasts, and inline betting odds |
| `get_standings` | Read (`$0.004`) | Conference & division standings with W/L, PCT, GB, streak, points |
| `get_teams` | Read (`$0.004`) | All teams in a league with ESPN `teamId`, abbreviation, colors, and logo |
| `get_news` | Read (`$0.004`) | Latest league headlines, summaries, publish timestamps, and URLs |
| `get_rankings` | Read (`$0.004`) | Official AP Top 25, Coaches Poll, and CFP rankings (`ncaaf`, `ncaab`, `ncaaw`) |
| `search_espn` | Read (`$0.004`) | Cross-sport search for athletes, teams, and news |
| `get_game_summary` | Detail (`$0.008`) | Full boxscore stats, team leaders, betting odds/pickcenter, injury reports, and recent key plays |
| `get_team_roster` | Detail (`$0.008`) | Active roster with jersey, position, age, height/weight, experience, and injuries |
| `get_team_schedule` | Detail (`$0.008`) | Full season schedule with opponents, home/away flags, results, and `eventId`s |

***

### Transparent Pay-Per-Event Pricing (No Start Fee)

| Event | Price | Notes |
| --- | --- | --- |
| `list_supported_leagues` | **Free** | Never charged |
| `tool-read` | **`$0.004` / call** | Scoreboard, standings, teams, news, rankings, search |
| `tool-detail` | **`$0.008` / call** | Game summary (boxscore/odds/injuries/plays), team roster, team schedule |

- **No Actor start fee.**
- **Fair billing guarantee**: Validation errors and upstream ESPN errors are **never charged**.

***

### Connect as a Remote MCP Server (Standby Mode)

Point any Streamable HTTP MCP client (Claude Desktop, Cursor, Claude Code, Windsurf, LangChain, n8n AI Agent) to your Apify Standby URL at `/mcp`:

```json
{
  "mcpServers": {
    "espn-sports": {
      "url": "https://<your-actor-standby-url>.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

***

### Batch Mode Input Examples (n8n, Make, Apify API)

#### Live NBA Scoreboard & Betting Odds

```json
{
  "action": "scoreboard",
  "league": "nba",
  "limit": 15
}
```

#### Deep Game Summary (Boxscore, Odds, Injuries & Recent Plays)

```json
{
  "action": "game_summary",
  "league": "nba",
  "eventId": "401910029"
}
```

# Actor input Schema

## `action` (type: `string`):

ESPN data endpoint to query.

## `league` (type: `string`):

Shortcut (nfl, nba, wnba, mlb, nhl, ncaaf, ncaab, epl, ucl, laliga, bundesliga, seriea, mls, ufc, f1) or raw ESPN path like 'soccer/fra.1'.

## `date` (type: `string`):

Optional date filter for scoreboard (e.g. '20261123' or range '20261120-20261123'). Defaults to current games.

## `eventId` (type: `string`):

ESPN event ID returned by scoreboard or team_schedule (e.g. '401910029').

## `teamId` (type: `string`):

ESPN team ID (e.g. '13') or team abbreviation (e.g. 'LAL', 'KC').

## `season` (type: `integer`):

Optional season year for standings or team_schedule (e.g. 2026).

## `query` (type: `string`):

Player, team, or topic to search across ESPN.

## `limit` (type: `integer`):

Maximum number of items to return (used for scoreboard, news, search).

## Actor input object example

```json
{
  "action": "scoreboard",
  "league": "nba",
  "limit": 25
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("shawn1905/espn-sports-mcp-server").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("shawn1905/espn-sports-mcp-server").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call shawn1905/espn-sports-mcp-server --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,shawn1905/espn-sports-mcp-server"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1e6uFg8w71jP1CB0h/builds/ADFA6OsXm0LNG1cgM/openapi.json
