ESPN Fantasy Football

v1.0.0Analyticsstable

ESPN Fantasy API with LLMs!

fantasy-footballmodel-context-protocolmodel-context-protocol-serverssports
Share:
30
Stars
0
Downloads
0
Weekly
0/5

What is ESPN Fantasy Football?

ESPN Fantasy Football is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to espn fantasy api with llms!

ESPN Fantasy API with LLMs!

This server falls under the Analytics category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • ESPN Fantasy API with LLMs!

Use Cases

Access ESPN Fantasy Football league data and statistics. Query player scores and matchups. Manage fantasy teams through AI.
KBThree13

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 4, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-espn-ff

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use ESPN Fantasy Football

The ESPN Fantasy Football MCP server bridges Claude with the ESPN Fantasy Football API, giving AI assistants direct access to league metadata, team rosters, player statistics, weekly matchups, and standings. It supports private leagues through a secure session-based credential storage mechanism, making it useful both for public and private ESPN fantasy leagues. Fantasy football managers can ask Claude to analyze their team, compare players, review matchup projections, and get standings updates without leaving their AI assistant.

Prerequisites

  • Python 3.10 or higher installed
  • The uv package manager installed (pip install uv or brew install uv on macOS)
  • An ESPN Fantasy Football account with at least one league
  • For private leagues: your ESPN S2 cookie and SWID from your browser session
  • Claude Desktop or another MCP-compatible client
1

Clone the repository

Clone the mcp_espn_ff repository to your local machine.

git clone https://github.com/KBThree13/mcp_espn_ff.git
cd mcp_espn_ff
2

Install dependencies with uv

Use uv to install the project dependencies. The server uses the espn-api Python package to communicate with the ESPN Fantasy API.

uv sync
3

Note the absolute path to your installation

The MCP configuration requires the absolute path to your project directory. Note it now to use in the next step.

pwd
4

Add the server to Claude Desktop configuration

Edit your Claude Desktop config file to register the ESPN Fantasy Football server. Use the absolute path from the previous step as the cwd value.

5

Restart Claude Desktop

Save the configuration and restart Claude Desktop. The server will start automatically when Claude Desktop launches.

6

Authenticate for private leagues

For private leagues, ask Claude to store your ESPN credentials. Your ESPN S2 cookie and SWID can be found in browser developer tools under Application > Cookies on espn.com.

ESPN Fantasy Football Examples

Client configuration

Add this block to your Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json. Replace /absolute/path/to/mcp_espn_ff with the actual path from the pwd command above.

{
  "mcpServers": {
    "espn-fantasy-football": {
      "command": "uv",
      "args": ["run", "espn_fantasy_server.py"],
      "cwd": "/absolute/path/to/mcp_espn_ff"
    }
  }
}

Prompts to try

Once the server is running, use these prompts to query your ESPN Fantasy Football league through Claude.

- "Show me my current ESPN fantasy football league standings"
- "What does my roster look like this week and who should I start?"
- "Show me the weekly matchups for this week in my league"
- "How has player Patrick Mahomes been performing over the last 4 weeks?"
- "Store my ESPN credentials for my private league (I'll provide my S2 cookie and SWID)"

Troubleshooting ESPN Fantasy Football

uv command not found when Claude Desktop tries to start the server

Install uv globally using pip install uv or on macOS with brew install uv. After installation, verify with uv --version. Note that Claude Desktop may use a different PATH than your terminal — you may need to use the full path to uv (e.g., /usr/local/bin/uv) in the command field of the config.

Private league returns no data or access denied errors

Private ESPN leagues require your ESPN S2 cookie and SWID authentication tokens. Open espn.com in a browser, log in, and use developer tools (Application > Cookies) to find the espn_s2 and SWID cookie values. Provide these to Claude when it asks for credentials.

Server starts but no fantasy data is returned

Ensure your ESPN account has an active fantasy football league for the current season. The ESPN Fantasy API only returns data for active or recent seasons. Verify your league ID is correct — it appears in the URL when viewing your league on espn.com.

Frequently Asked Questions about ESPN Fantasy Football

What is ESPN Fantasy Football?

ESPN Fantasy Football is a Model Context Protocol (MCP) server that espn fantasy api with llms! It connects AI assistants to external tools and data sources through a standardized interface.

How do I install ESPN Fantasy Football?

Follow the installation instructions on the ESPN Fantasy Football GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with ESPN Fantasy Football?

ESPN Fantasy Football works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is ESPN Fantasy Football free to use?

Yes, ESPN Fantasy Football is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Analytics MCP Servers

Explore all analytics servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-espn-ff": { "command": "npx", "args": ["-y", "mcp-espn-ff"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use ESPN Fantasy Football?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides