ESPN MCP Server - Live Sports Scores & Stats for AI avatar

ESPN MCP Server - Live Sports Scores & Stats for AI

Pricing

Pay per usage

Go to Apify Store
ESPN MCP Server - Live Sports Scores & Stats for AI

ESPN MCP Server - Live Sports Scores & Stats for AI

12 MCP tools for ESPN sports data: live scores, standings, game analysis, betting odds, player stats & news across 25+ leagues (NFL, NBA, MLB, NHL, Premier League, F1, UFC...). Works with Claude Code, Claude Desktop & ChatGPT.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Emmanuel Brunet

Emmanuel Brunet

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

2 days ago

Last modified

Share

ESPN MCP Server

Real-Time Sports Data for Claude Code, Claude Desktop & MCP-Compatible Assistants

Apify Actor MCP Protocol ESPN

Tools Leagues Version


What does ESPN MCP Server do?

ESPN MCP Server connects AI assistants like Claude Code, Claude Desktop and ChatGPT directly to ESPN's real-time sports data. It exposes 12 specialized tools covering scores, standings, team info, rosters, schedules, detailed game analysis, betting odds, athlete profiles, rankings, news and live scoreboards — all accessible through natural language prompts.

Instead of opening ESPN.com and navigating multiple pages, you ask your AI assistant: "What were last night's NBA scores?" or "Give me the full boxscore for the Lakers game." The MCP server fetches the data, formats it for AI consumption, and returns structured results — no ESPN API key required.

Without MCPWith ESPN MCP Server
Open ESPN.com, search for scoresJust ask Claude
Navigate multiple pages for stats"Who won last night's NBA games?"
Compare tabs for game details"Give me the full boxscore for the Lakers game"
Manually check odds on betting sites"What are the odds for tonight's NFL games?"
Search for player career stats"Show me LeBron's game log and season stats"
Browse different leagues separately"Compare Premier League and La Liga standings"

One prompt. Every sport. Real-time data.


How to connect ESPN to Claude Code (2 minutes)

Step 1: Get your Apify API Token

Go to Apify Console → Settings → Integrations and copy your API token.

Step 2: Add a custom connector

In Claude Code or Claude Desktop, go to Settings → MCP Servers → Add custom connector and paste:

https://mrbridge--espn-mcp-server.apify.actor/mcp?token=YOUR_APIFY_TOKEN

Replace YOUR_APIFY_TOKEN with the token from Step 1.

By default, Claude asks for approval every time an MCP tool is called. To allow all ESPN tools permanently:

In Claude Code, run /permissions and add mcp__ESPN__* to the Allow list.

In Claude Desktop, click "Always allow" when prompted for the first tool call.

Step 4: Start asking

"What are today's NBA scores?"

That's it. The 12 ESPN tools are immediately available. Works with Claude Code, Claude Desktop, ChatGPT, Cursor, Windsurf, and any MCP-compatible client.


Features

  • 12 MCP tools — Scores, standings, teams, rosters, schedules, news, game summaries, odds, athlete profiles, rankings, search, and live scoreboards
  • 25+ sports & leagues — NFL, NBA, MLB, NHL, WNBA, College Football/Basketball, Premier League, La Liga, Bundesliga, Serie A, Champions League, MLS, UFC, PGA, F1, NASCAR, ATP, WTA, and more
  • No ESPN API key — Uses ESPN's public data endpoints, no separate registration required
  • Always-on — Runs in Apify Standby mode with ultra-low latency (~200ms response times)
  • Smart caching — 3-tier in-memory cache (60s for live data, 5min for standings, 15min for static data)
  • LLM-optimized — Formatted text responses designed to minimize token usage while preserving all important data

What can you ask your AI assistant?

Live scores & game day

"What are today's NBA scores?"

"Is there a Monday Night Football game tonight? What's the score?"

"Show me all Premier League matches this weekend"

Deep game analysis

"Give me the full boxscore and player stats for last night's Lakers vs Celtics game"

"Who were the top performers in yesterday's NFL games?"

Team intelligence

"Show me the current NFL standings with win-loss records"

"What's the Golden State Warriors roster? Who are their key players?"

"What's the Lakers schedule for the rest of the season?"

Player research

"Show me LeBron James' career stats and this season's game log"

"Compare Patrick Mahomes' splits at home vs away this season"

Betting & odds

"What are the betting odds for tonight's NBA games? Show me the spread and moneyline"

"What was the over/under for the Super Bowl?"

News & rankings

"What's the latest NFL news?"

"Show me the current AP Top 25 college football rankings"

"Get the ATP tennis rankings"


Available Tools

Once connected, your AI assistant can use these 12 tools:

ToolDescriptionExample
espn_scoreboardLive and recent scores for any sport/leagueToday's NBA scores, yesterday's MLB results
espn_standingsCurrent league standings with W/L recordsNFL division standings, Premier League table
espn_teamsList all teams or get detailed team infoAll NBA teams, Lakers team details
espn_team_rosterFull team roster with player detailsCurrent Warriors roster with positions
espn_team_scheduleTeam game schedule (past & upcoming)Remaining Celtics schedule
espn_newsLatest sports news headlines and articlesTop NFL headlines this week
espn_game_summaryMost detailed — Full boxscore, player stats, venue, officials, attendance, leaders, scoring summaryFull breakdown of last night's game
espn_game_oddsBetting odds from multiple providers (Consensus, DraftKings, Caesars, Bet365)Tonight's spread and over/under
espn_athletesAthlete profiles, game logs, splits, career statsLeBron's season averages and game log
espn_rankingsCollege, UFC, and tennis rankingsAP Top 25, UFC pound-for-pound
espn_searchSearch ESPN for players, teams, and leaguesFind a player by name
espn_live_scoreboardCDN-optimized live scoreboard with real-time updatesLive scores right now

Supported Sports & Leagues

SportLeaguesCodes
FootballNFL, College Footballfootball/nfl, football/college-football
BasketballNBA, WNBA, Men's College, Women's Collegebasketball/nba, basketball/wnba, basketball/mens-college-basketball
BaseballMLBbaseball/mlb
HockeyNHLhockey/nhl
SoccerPremier League, La Liga, Bundesliga, Serie A, Ligue 1, Champions League, MLSsoccer/eng.1, soccer/esp.1, soccer/ger.1, soccer/ita.1, soccer/fra.1, soccer/uefa.champions, soccer/usa.1
MMAUFCmma/ufc
GolfPGA Tour, LPGAgolf/pga, golf/lpga
RacingFormula 1, NASCARracing/f1, racing/nascar-premier
TennisATP, WTAtennis/atp, tennis/wta

Use these codes in the sport and league parameters when calling tools.


Alternative Setup: Claude Desktop (Config File)

If you prefer Claude Desktop with a JSON config file, add to your claude_desktop_config.json:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"ESPN": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-proxy", "https://mrbridge--espn-mcp-server.apify.actor/mcp?token=YOUR_APIFY_TOKEN"]
}
}
}

Replace YOUR_APIFY_TOKEN with your Apify API token.

Restart Claude Desktop and test with: "What are today's NBA scores?"

Tip: Claude Desktop will ask you to approve each tool the first time it's used. Click "Allow for this chat" or "Always allow" to avoid repeated permission prompts.


Architecture

Claude Code / Claude Desktop / ChatGPT
|
| MCP (Streamable HTTP)
v
+-----------------------------+
| ESPN MCP Server (Apify) |
| +---------------------+ |
| | 12 MCP Tools | |
| | 3-Tier Cache | |
| | Retry + Backoff | |
| +---------------------+ |
+-------------+---------------+
| HTTP GET (JSON)
v
ESPN Public API
(site, web, CDN endpoints)

Key design decisions:

  • Stateless transport — Each request gets a fresh MCP server instance, eliminating session issues during Standby container restarts
  • Concise formatting — No raw JSON dumps; structured text optimized for LLM consumption
  • Graceful errors — Every tool returns human-readable error messages, never crashes

Privacy & Security

  • No ESPN account required — The server uses ESPN's public data endpoints. No API key, no registration
  • No data stored — All data is fetched in real-time and never persisted
  • Read-only — The server only reads public sports data. No write operations
  • Apify token — Only used for MCP authentication with Apify's platform, never shared with ESPN

How much does it cost?

Pay-Per-Event Pricing

OperationPriceExamples
Read$0.005scoreboard, standings, teams, news, rankings, search
Action$0.01game_summary, athletes, game_odds, team_roster, team_schedule, live_scoreboard

Cost Estimates

UsageMonthly costWhat you get
Casual fan~$1Check scores daily, browse standings weekly
Sports enthusiast~$3-5Daily scores + game summaries + player stats
Power user~$8-15Heavy daily use across multiple sports and leagues

Free tier: Apify gives you $5 free credits every month — enough for hundreds of queries.

Example session cost:

  • Check today's NBA scores (1 read): ~$0.005
  • Get full game summary with boxscore (1 action): ~$0.01
  • Look up a player's stats and game log (1 action): ~$0.01
  • Full sports briefing — scores + standings + news (3 reads): ~$0.015

Troubleshooting

ProblemSolution
"Tools not showing up"Verify your Apify token is correct. Check that the URL includes /mcp path
"Empty results"Some endpoints require specific sport/league codes. Check the Supported Sports table
"Connection timeout"The server starts in ~2 seconds on first request (cold start). Retry once. Subsequent requests are instant
"Game summary returns error"Game summaries require a valid eventId. Use espn_scoreboard first to find game IDs
"Session not found"The Standby container may have restarted. Disconnect and reconnect the MCP server in your settings

Frequently Asked Questions

What is an ESPN MCP Server?

An MCP (Model Context Protocol) server that bridges AI assistants and ESPN sports data. It exposes 12 tools that AI assistants can call to retrieve scores, standings, stats, news, odds, and more — all through natural language prompts.

Do I need an ESPN account or API key?

No. This server uses ESPN's publicly available data endpoints. No ESPN account, no API key, no registration. You only need an Apify account (free tier available).

Does this work with ChatGPT, Cursor, or VS Code?

Yes. Any MCP-compatible client can connect. Works with Claude Code, Claude Desktop, ChatGPT, Cursor, Windsurf, and other AI tools that support the Model Context Protocol.

How real-time is the data?

Live game data is cached for 60 seconds. Standings and rosters refresh every 5 minutes. Static data (team info) refreshes every 15 minutes. For live games, you get near-real-time updates.

Which sports are supported?

25+ leagues across football (NFL, college), basketball (NBA, WNBA, college), baseball (MLB), hockey (NHL), soccer (Premier League, La Liga, Bundesliga, Serie A, Ligue 1, Champions League, MLS), MMA (UFC), golf (PGA), racing (F1, NASCAR), and tennis (ATP, WTA).

Can I get betting odds?

Yes. The espn_game_odds tool returns odds from multiple providers including Consensus, DraftKings, Caesars, and Bet365 — spreads, moneylines, over/unders, and win percentages.

Is my data secure?

This server only reads publicly available ESPN data. No personal accounts are accessed. Your Apify API token is used solely for authentication with Apify's platform.

How much does it cost?

Apify gives you $5 free credits every month. Casual sports fans typically spend $1-5/month. See the full pricing breakdown.

Can I use it for fantasy sports research?

Absolutely. Use espn_athletes for player stats, game logs, and splits. Use espn_team_schedule to check upcoming matchups. Use espn_game_summary for detailed performance data. Ideal for weekly fantasy lineup decisions.

How do I find game IDs for the summary tool?

Use espn_scoreboard first to get today's games — each game includes an eventId. You can also find game IDs in ESPN URLs: espn.com/nba/game/_/gameId/401584793 → eventId is 401584793.



Resources


Built for sports fans who want AI to do the research.