ESPN Fantasy Football MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ESPN Fantasy Football MCP Server Show me the standings for my fantasy football league"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ESPN Fantasy Football MCP Server
Overview
This MCP (Model Context Protocol) server allows LLMs like Claude to interact with the ESPN Fantasy Football API. It provides tools for accessing league data, team rosters, player statistics, and more through a standardized interface. It can work with both public and private ESPN Leagues.
Related MCP server: Sleeper MCP Server
Features (MCP Tools)
Authentication: Securely store ESPN credentials for the current session (for private leagues)
League Info: Get basic information about fantasy football leagues
Team Rosters: View current team rosters and player details
Player Stats: Find and display stats for specific players
League Standings: View current team rankings and performance metrics
Matchup Information: Get details about weekly matchups
Installation
Prerequisites
Python 3.10 or higher
uvpackage managerClaude Desktop for the best experience
Usage with Claude Desktop
Update the Claude Desktop config:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonInclude reference to the MCP server
{ "mcpServers": { "espn-fantasy-football": { "command": "uv", "args": [ "--directory", "/absolute/path/to/directory", "run", "espn_fantasy_server.py" ] } } }
Restart Claude Desktop
Acknowledgements
cwendt94/espn-api for the nifty python wrapper around the ESPN Fantasy API
Available Tools
8 toolsauthenticateB
Store ESPN authentication credentials for this session.
Args:
espn_s2: The ESPN_S2 cookie value from your ESPN account
swid: The SWID cookie value from your ESPN account
Inputs: swid (required), espn_s2 (required).
get_league_infoB
Get basic information about a fantasy football league.
Args:
league_id: The ESPN fantasy football league ID
year: Optional year for historical data (defaults to current season)
Inputs: league_id (required), year.
get_league_standingsA
Get current standings for a league.
Args:
league_id: The ESPN fantasy football league ID
year: Optional year for historical data (defaults to current season)
Inputs: league_id (required), year.
get_matchup_infoA
Get matchup information for a specific week.
Args:
league_id: The ESPN fantasy football league ID
week: The week number (if None, uses current week)
year: Optional year for historical data (defaults to current season)
Inputs: league_id (required), week, year.
get_player_statsC
Get stats for a specific player.
Args:
league_id: The ESPN fantasy football league ID
player_name: Name of the player to search for
year: Optional year for historical data (defaults to current season)
Inputs: league_id (required), player_name (required), year.
get_team_infoB
Get a team's general information. Including points scored, transactions, etc.
Args:
league_id: The ESPN fantasy football league ID
team_id: The team ID in the league (usually 1-12)
year: Optional year for historical data (defaults to current season)
Inputs: team_id (required), league_id (required), year.
get_team_rosterB
Get a team's current roster.
Args:
league_id: The ESPN fantasy football league ID
team_id: The team ID in the league (usually 1-12)
year: Optional year for historical data (defaults to current season)
Inputs: team_id (required), league_id (required), year.
logoutA
Clear stored authentication credentials for this session.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource and action: league info, standings, team roster, team info, player stats, matchup, authentication, and logout. The only potential overlap (get_team_info vs get_team_roster) is clarified by descriptions, making misselection unlikely.
All tools follow a consistent snake_case verb_noun pattern (get_league_info, get_team_roster, etc.), with authenticate and logout as clear lifecycle verbs. No mixed conventions or ambiguous prefixes.
Eight tools form a well-scoped set for a read-only fantasy football data server, covering authentication, league, team, player, matchup, and standings without redundancy or excessive granularity.
The surface covers core read workflows, but lacks an explicit list_teams or get_teams tool for discovering team IDs, and has no transactional or lineup-management operations (likely intentional for a read-only server). These are minor gaps agents can often work around via standings or league info.
Maintenance
Related MCP Connectors
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Provide detailed Pokémon data and information through a standardized MCP interface. Enable LLMs an…
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Query your Leapio analytics, companies, and revenue from any AI assistant, and run your actions.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI models to manage and query fantasy sports leagues through the Sleeper API, supporting tasks like player lookups, league activity, and draft management.MIT
- FlicenseAqualityDmaintenanceEnables natural language interaction with Sleeper Fantasy Football API data, allowing queries about leagues, players, matchups, draft results, and trade analysis.1325-
- AlicenseAqualityBmaintenanceEnables LLMs to access and analyze ESPN fantasy football leagues through read-only MCP tools, covering rosters, scores, transactions, standings, lineup audits, and league-specific rules.19MIT
- AlicenseBqualityCmaintenanceEnables AI agents to access Sleeper fantasy football league data, rosters, matchups, projections, waivers, trends, and league chat, with read-only safety and optional authorized chat posting.26MIT