# Sports Scores MCP Server - Scores, Odds, Standings & Injuries (`rjmacarthy/sports-scores-mcp-server`) Actor

MCP server for AI agents (Claude, Cursor, n8n): live scores with betting odds, team schedules, standings, injuries, box scores and news for NFL, NBA, MLB, NHL, college, soccer, ATP/WTA tennis, F1, golf and UFC from ESPN. Compact JSON, $0.01 per call, no API key.

- **URL**: https://apify.com/rjmacarthy/sports-scores-mcp-server.md
- **Developed by:** [rj](https://apify.com/rjmacarthy) (community)
- **Categories:** MCP servers, AI, News
- **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 $10.00 / 1,000 tool calls

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

## Sports Scores MCP Server - Scores, Odds, Standings & Injuries

Give your AI agent live sports data. This MCP server answers questions about **scores, betting odds, team schedules, standings, injury reports, box scores and news** across the NFL, NBA, WNBA, MLB, NHL, college football and basketball, MLS, the Premier League, LaLiga, Bundesliga, Serie A, Ligue 1, the Champions and Europa League, **ATP/WTA tennis (with set scores), F1, PGA/LPGA golf and UFC**, using ESPN's public JSON API. Every answer is compact JSON (at most 20 rows), so your agent's token bill stays small. There is one flat price of **$0.01 per tool call**. You need no API key and no proxy, and a cold start takes about 2 seconds.

### What your agent can ask

- "What were the NBA scores last night, and who covered the spread?"
- "When do the Lakers play next?"
- "Show me the Premier League table."
- "Who is on the Chiefs' injury report this week?"
- "Give me the box score of the Knicks-76ers game on January 15, 2025."
- "Who is winning at the ATP Finals today?" / "Who leads the PGA event?"
- "What are the latest NFL headlines?"

### Tools

| Tool | What it returns | Arguments |
|---|---|---|
| `get_scores` | Every game or match in a league on one date (US Eastern day): status, score, winner, betting line (spread, over/under) and venue. Tennis rows carry set scores and golf/F1 rows carry the top 5 of the leaderboard. | `league`, `date` (today / yesterday / tomorrow / `20250115`), `team` (optional filter), `limit` (1-20) |
| `get_team_schedule` | A team's season schedule, with results so far and upcoming games | `league`, `team` (ESPN abbreviation, e.g. `lal`, `kc`), `season`, `which` (`upcoming` / `past` / `all`), `limit` |
| `get_standings` | A league table or conference standings: rank, W-L-T, win %, points, games behind, streak | `league`, `season`, `group` (e.g. `Western`, `AFC East`), `limit` |
| `get_injuries` | The current injury report, most recent updates first: player, position, status, injury and expected return | `league` (nfl, nba, wnba, mlb, nhl), `team`, `limit` |
| `get_game_details` | A box score: score, team stats, top performers, betting lines and scoring plays | `league`, `gameId` (the `id` from `get_scores`) |
| `get_news` | The latest ESPN headlines, with a description and a link | `league`, `limit` |

**League keys:** `nfl, nba, wnba, mlb, nhl, ncaaf, ncaab, ncaaw, mls, epl, laliga, bundesliga, seriea, ligue1, ucl, uel, atp, wta, f1, pga, lpga, ufc`. Any raw ESPN `sport/league` path also works, such as `soccer/ned.1` (Eredivisie).

#### Example calls

```json
{ "name": "get_scores", "arguments": { "league": "nba", "date": "20250115" } }
{ "name": "get_scores", "arguments": { "league": "nfl", "date": "today", "team": "KC" } }
{ "name": "get_team_schedule", "arguments": { "league": "nba", "team": "lal", "which": "upcoming", "limit": 5 } }
{ "name": "get_standings", "arguments": { "league": "nba", "group": "Western" } }
{ "name": "get_injuries", "arguments": { "league": "nfl", "team": "kc" } }
{ "name": "get_game_details", "arguments": { "league": "nba", "gameId": "401705127" } }
{ "name": "get_news", "arguments": { "league": "epl", "limit": 5 } }
```

Example answer from `get_scores` (trimmed):

```json
{"league":"nba","date":"20250115","count":11,"total":11,"games":[{"type":"game","id":"401705127","name":"New York Knicks at Philadelphia 76ers","startTime":"2025-01-16T00:00:00.000Z","status":"final","statusDetail":"Final/OT","home":{"team":"Philadelphia 76ers","abbrev":"PHI","score":119},"away":{"team":"New York Knicks","abbrev":"NY","score":125},"winner":"New York Knicks","odds":null,"venue":"Xfinity Mobile Arena","url":"https://www.espn.com/nba/game/_/gameId/401705127/knicks-76ers"}]}
```

An empty answer, such as a day with no games, still counts as a normal answer and includes a `hint` (for example "try another date"). Mistakes come back as an error that is **not charged**: an unknown league, a bad date or an unknown team, plus ESPN outages.

### How to connect

Endpoint: `https://rjmacarthy--sports-scores-mcp-server.apify.actor/mcp` (Streamable HTTP)
Header: `Authorization: Bearer <YOUR_APIFY_TOKEN>` (your token is under Apify Console → Settings → API & Integrations)

**Claude Desktop / Claude Code** (`claude_desktop_config.json` or `.mcp.json`):

```json
{
  "mcpServers": {
    "sports-scores": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://rjmacarthy--sports-scores-mcp-server.apify.actor/mcp",
               "--header", "Authorization: Bearer YOUR_APIFY_TOKEN"]
    }
  }
}
```

Or in Claude Code: `claude mcp add --transport http sports-scores https://rjmacarthy--sports-scores-mcp-server.apify.actor/mcp --header "Authorization: Bearer YOUR_APIFY_TOKEN"`

**Cursor** (`~/.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "sports-scores": {
      "url": "https://rjmacarthy--sports-scores-mcp-server.apify.actor/mcp",
      "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
    }
  }
}
```

The same URL and header work in any MCP client that supports Streamable HTTP, including n8n's MCP Client node, ChatGPT connectors and the OpenAI Agents SDK.

### Pricing

| Event | Price | When |
|---|---|---|
| `tool-call` | **$0.01** | Once per answered tool call |

There is nothing else to pay: no per-row fee and no proxy surcharge. Failed calls are free. **Example:** an agent that checks scores, standings and injuries 100 times a day spends $1.00 a day, and 1,000 tool calls cost $10.

### Data you can get

| Area | Fields |
|---|---|
| Games | ESPN game id, teams and abbreviations, score, status and detail (e.g. `Final/OT`, `Q3 4:12`), winner, betting line, spread, over/under, venue, ESPN link |
| Tennis | Tournament, round, draw (singles/doubles), players with country and seed, set scores with tiebreaks, winner |
| Golf / F1 / UFC | Event, session, venue, number of competitors, top 5 of the leaderboard |
| Standings | Group, rank, team, W/L/T (draws), win %, table points (soccer, hockey), games behind, streak, record |
| Injuries | Team, player, position, status (Out, Questionable, ...), injury, expected return date, ESPN note, last update |
| Box scores | Score, team stats, top performer per category, betting lines (moneyline), scoring plays (up to 20), recap headline |
| News | Headline, description, publish time, link |

### Use cases

- **Sports chatbots and assistants:** answer "what's the score?" and "when do they play next?" in real time.
- **Betting research agents:** spreads, totals and moneylines next to injury reports and recent results.
- **Fantasy sports helpers:** injury statuses, expected return dates and box-score leaders.
- **Newsletters and content agents:** last night's results, the latest table and headlines in one pass.
- **n8n and Make automations:** a morning sports digest built from a few cheap tool calls.

### Normal (non-MCP) runs

You can also run the Actor like any other Actor. It runs **one** tool with your input and saves its rows to the dataset, at one `tool-call` charge per run. This is handy for scheduled jobs and for trying it out:

```json
{ "tool": "get_scores", "league": "nba", "date": "20250115" }
{ "tool": "get_standings", "league": "epl" }
{ "tool": "get_injuries", "league": "nfl", "team": "kc" }
{ "tool": "get_team_schedule", "league": "nba", "team": "lal", "limit": 10 }
```

Each row gets `tool`, `league`, `type` (game, match, event, standing, injury or article) and `scrapedAt`. The dataset has views for Games, Standings, Injuries and News. `get_game_details` is available over MCP only.

### Tips and limits

- **Dates follow ESPN's US Eastern scoreboard day.** A 7:30 PM ET game on January 15 is listed under `20250115`, although its `startTime` is in UTC (January 16).
- **One day per `get_scores` call.** For a week, call it once per day, or use `get_team_schedule` for one team.
- **At most 20 rows per call.** Narrow results with `team` (scores, injuries) or `group` (standings). The answer reports `total` and `truncated` so the agent knows when it should narrow.
- **Team ids:** `get_team_schedule` needs ESPN's abbreviation (`lal`, `gs`, `kc`, `ars`) or numeric id. `get_standings` lists the abbreviations.
- **Injury reports** exist for NFL, NBA, WNBA, MLB and NHL only. **Standings** exist for team leagues only (not tennis, golf, F1 or UFC).
- **Betting odds** come from ESPN's partner (usually DraftKings). They appear before and during games, and ESPN often drops them once a game is final.
- **Data freshness** matches ESPN's: live scores update within seconds to a minute.

### FAQ

**Is it legal?** The server reads ESPN's public JSON endpoints, the same ones espn.com loads in your browser, without a login. It returns public sports results and reporting only, and it collects no personal contact data. You are responsible for how you use the data, including any terms that apply to you.

**Do I need a proxy?** No. ESPN answers Apify's servers directly. If you do set one for a normal run, residential proxies are not supported: the run falls back to Apify datacenter proxy and logs a warning, because under pay-per-event pricing the Actor owner pays for proxy traffic.

**Why is my call an error?** Common causes are an unknown league key, a date that isn't one day, or a team abbreviation ESPN doesn't know. The error message says what to change, and errors are never charged.

**How fast is it?** About 0.2 to 1 second per call on a warm server, and about 2 seconds on a cold start. Each call is capped at 20 seconds.

**Can I get historical seasons?** Yes. Pass `date` (scores) or `season` (schedule, standings) to go back to any season ESPN still has.

### Integrations

- **MCP:** Claude, Cursor, ChatGPT connectors, n8n AI Agent (MCP Client tool), the OpenAI Agents SDK, LangChain MCP adapters
- **Apify API:** run a single tool as a normal run and read the dataset (`/v2/acts/rjmacarthy~sports-scores-mcp-server/run-sync-get-dataset-items`)
- **Make, Zapier, n8n:** the Apify integrations, for scheduled digests
- **Webhooks:** for notifications when a normal run finishes

### Changelog

- **0.1** (November 2026): first release, with six tools (scores, team schedule, standings, injuries, game details, news) for 22 leagues plus raw ESPN paths.

### Ready-to-run examples

- [Kansas City Chiefs NFL injury report for AI agents](https://apify.com/rjmacarthy/sports-scores-mcp-server/examples/kansas-city-chiefs-injury-report-mcp)

### More scrapers by the same developer

- [AI Visibility Tracker: ChatGPT, Perplexity, Gemini, Claude](https://apify.com/rjmacarthy/ai-search-visibility-tracker)
- [Google News Scraper: Articles, Publisher URLs & Full Text](https://apify.com/rjmacarthy/google-news-scraper)
- [Keyword Research MCP Server - Google, YouTube & Bing Ideas](https://apify.com/rjmacarthy/keyword-research-mcp-server)
- [Prediction Markets Scraper & Odds Monitor (Kalshi + Polymarket)](https://apify.com/rjmacarthy/prediction-markets-scraper)
- [RAG Web Search - Search the Web, Get Markdown for AI Agents](https://apify.com/rjmacarthy/rag-web-search)
- [Website Content Crawler - Markdown for LLM, RAG & AI Agents](https://apify.com/rjmacarthy/website-content-crawler)

Browse all my Actors on [my Apify Store profile](https://apify.com/rjmacarthy).

### Support

Found a bug or need another league or tool? Open an issue on the Actor's **Issues** tab and include the tool, the arguments and what you expected.

# Actor input Schema

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

Which tool to run. (get_game_details is available over MCP only.)

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

League key: nfl, nba, wnba, mlb, nhl, ncaaf, ncaab, ncaaw, mls, epl, laliga, bundesliga, seriea, ligue1, ucl, uel, atp, wta, f1, pga, lpga, ufc; or a raw ESPN sport/league path such as soccer/ned.1.

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

today, yesterday, tomorrow, or a date like 20250115 / 2025-01-15 (US Eastern day). One day only.

## `team` (type: `string`):

Required for get_team_schedule (ESPN abbreviation or id, e.g. lal, kc). Optional filter for get_scores and get_injuries (abbreviation or part of the name).

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

Season year for get_team_schedule / get_standings (default: current).

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

Maximum rows returned (1-20).

## `proxyConfiguration` (type: `object`):

Not needed: ESPN's API answers Apify IPs directly. Residential proxies are not supported (the run falls back to Apify datacenter proxy with a warning).

## Actor input object example

```json
{
  "tool": "get_scores",
  "league": "nba",
  "date": "20250115",
  "limit": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `games` (type: `string`):

Scores, status and odds.

## `standings` (type: `string`):

League tables.

## `injuries` (type: `string`):

Injury report.

## `news` (type: `string`):

ESPN headlines.

## `allFields` (type: `string`):

Every field of every row.

## `summary` (type: `string`):

Tool, arguments, counts and request statistics.

# 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_scores",
    "league": "nba",
    "date": "20250115",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rjmacarthy/sports-scores-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_scores",
    "league": "nba",
    "date": "20250115",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rjmacarthy/sports-scores-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_scores",
  "league": "nba",
  "date": "20250115",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rjmacarthy/sports-scores-mcp-server --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rjmacarthy/sports-scores-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/ObgaSaXwDdwX9jdDc/builds/e5fy9H5bWGOhoFdHm/openapi.json
