Skip to main content
Glama
ESPN Fantasy Football MCP Server

ESPN Fantasy Football MCP Server

by KBThree13

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

  • uv package manager

  • Claude Desktop for the best experience

Usage with Claude Desktop

  1. Update the Claude Desktop config:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Include reference to the MCP server

    {
    "mcpServers": {
      "espn-fantasy-football": {
        "command": "uv",
        "args": [
          "--directory",
          "/absolute/path/to/directory",
          "run",
          "espn_fantasy_server.py"
          ]
        }
      } 
    }
  1. Restart Claude Desktop

Acknowledgements

cwendt94/espn-api for the nifty python wrapper around the ESPN Fantasy API

Available Tools

8 tools
authenticateB

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

    A3.6/5.0

    Scored across 8 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI models to manage and query fantasy sports leagues through the Sleeper API, supporting tasks like player lookups, league activity, and draft management.
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables natural language interaction with Sleeper Fantasy Football API data, allowing queries about leagues, players, matchups, draft results, and trade analysis.
      13
      25
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      19
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables 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.
      26
      MIT