# ESPN Sports MCP Server - NFL NBA MLB NHL Scores (`red.cars/espn-sports-mcp-server`) Actor

Connect Claude, ChatGPT, Cursor and other AI assistants to ESPN sports data through MCP. Live scores, standings, rosters, schedules, news and search across NFL, NBA, MLB, NHL, WNBA, MLS, EPL and more.

- **URL**: https://apify.com/red.cars/espn-sports-mcp-server.md
- **Developed by:** [AutomateLab](https://apify.com/red.cars) (community)
- **Categories:** Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 get_scoreboards

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 MCP — Live Scores, Standings, News for AI Agents

Connect Claude, ChatGPT, Cursor, or any MCP client to ESPN sports data. One tool call returns live scores, standings, rosters, schedules, news, and search results across 14 leagues: NFL, NBA, MLB, NHL, WNBA, MLS, EPL, La Liga, Serie A, Bundesliga, Ligue 1, Champions League, NCAAF, and NCAAB.

**Compared to mrbridge/espn-mcp-server (95 users, $0.02 per tool call): this server charges $0.01 per tool call — 50% less for the same ESPN data.** Compared to nexgendata/sports-mcp-server (5 users, $0.02 per tool call), it is also 50% less per call. All data comes from ESPN's public API. No proxy needed, no login, no rate-limit stress at agent scale.

### Tools

| Tool | What it returns | Price |
|---|---|---|
| `get_scoreboard` | Live scores and games for a league on a date: teams, scores, status, venue, broadcast, odds | $0.01 |
| `get_game_summary` | One game: status, scoreline, venue, broadcast, team leaders, last play | $0.01 |
| `get_standings` | League standings: rank, wins, losses, win %, points for/against | $0.01 |
| `get_teams` | All teams in a league with ids and abbreviations | $0.01 |
| `get_team_roster` | Full roster: name, position, jersey, height, weight, experience | $0.01 |
| `get_news` | Latest news articles for a league with links | $0.01 |
| `get_schedule` | Scheduled games for a league on a date | $0.01 |
| `search_sports` | Search athletes, teams, and events by keyword | $0.01 |

### Input

| Field | Type | Description |
|---|---|---|
| `tool` | string | MCP tool to call (dropdown) |
| `params` | object | Tool parameters, for example `{"league": "nfl"}` |

League codes: `nfl`, `nba`, `mlb`, `nhl`, `wnba`, `mls`, `epl`, `laliga`, `seriea`, `bundesliga`, `ligue1`, `ucl`, `ncaaf`, `ncaab`.

### Output

The `OUTPUT` key-value store field holds the JSON result. MCP clients receive the same JSON as the tool response. Example `get_scoreboard` result: `games` with event id, name, date, status, competitor scores, venue, broadcast, and odds; `count`; season info.

### Pricing

Pay per event: $0.005 actor start + $0.01 per tool call. A typical agent session with 10 tool calls costs $0.105. No subscription, no minimum.

### Use cases

- Morning sports briefing: agent pulls scores for every league you follow
- Fantasy research: roster and standings lookups inside your chat
- Betting research: odds, scores, and schedules on demand
- News monitoring: latest league headlines for a digest
- Discord or Slack bots: answer "who won last night" without a human

### FAQ

**How does this connect to Claude Desktop or Cursor?** Use the MCP config for this Actor in your client. The server runs on Apify infrastructure and exposes MCP at the `/mcp` path.

**Which leagues are covered?** NFL, NBA, MLB, NHL, WNBA, MLS, EPL, La Liga, Serie A, Bundesliga, Ligue 1, UEFA Champions League, NCAAF, and NCAAB.

**Is an ESPN API key needed?** No. The server reads ESPN's public site API, which needs no key.

**How does pricing compare?** $0.01 per tool call, half of the $0.02 leader. The actor start event is $0.005.

**What if a tool returns an error for my league?** Check the league code against the list above. Soccer leagues use single codes, for example `epl`, not "premier league".

**Can I pass a date?** Yes, as YYYYMMDD, for example `{"league": "nba", "date": "20261104"}`. Without a date, `get_scoreboard` returns today.

# Actor input Schema

## `tool` (type: `string`):

MCP tool to call

## `params` (type: `object`):

Tool parameters as JSON object

## Actor input object example

```json
{
  "tool": "get_scoreboard",
  "params": {
    "league": "nfl"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Tool result JSON, also stored in the OUTPUT field of the default key-value store.

# 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 = {
    "tool": "get_scoreboard",
    "params": {
        "league": "nfl"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("red.cars/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 = {
    "tool": "get_scoreboard",
    "params": { "league": "nfl" },
}

# Run the Actor and wait for it to finish
run = client.actor("red.cars/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 '{
  "tool": "get_scoreboard",
  "params": {
    "league": "nfl"
  }
}' |
apify call red.cars/espn-sports-mcp-server --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,red.cars/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/Ot0SxTUc4wshlmX6b/builds/Kf1aYPhue2y4mUoNf/openapi.json
