Skip to main content
Glama
ESPN Fantasy Football MCP Server

ESPN Fantasy Football MCP Server

by KBThree13
README.md
# 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.

## 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](https://claude.ai/download) 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
  ```json
  {
  "mcpServers": {
    "espn-fantasy-football": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/directory",
        "run",
        "espn_fantasy_server.py"
        ]
      }
    } 
  }
2. Restart Claude Desktop


## Acknowledgements

[cwendt94/espn-api](https://github.com/cwendt94/espn-api) for the nifty python wrapper around the ESPN Fantasy API

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