Skip to main content
Glama
Fantasy-Football-Draft-MCP

Fantasy-Football-Draft-MCP

Fantasy Football Draft Analyst (MCP Server)

A live draft assistant. Connect it to Claude, sync your ESPN or Sleeper draft board, and ask "who should I pick?" at every turn. It answers with a recommendation, the reasoning, and the odds each player survives to your next pick.

CI Python 3.10+ License: MIT

Tested end to end against live data: 631 players (551 veterans, 80 rookies) modelled from 247,284 plays across five seasons, priced against real 2026 preseason consensus.


Quick start

git clone https://github.com/zacharytran26/Fantasy-Football-Draft-MCP.git
cd Fantasy-Football-Draft-MCP

# Use a virtual environment (required on macOS with Homebrew Python, and
# recommended everywhere else) -- see docs/quickstart.md if `pip`/`python`
# aren't found or you hit "externally-managed-environment".
#
# If this repo lives under an iCloud-synced folder (Desktop or Documents on
# macOS), put the venv somewhere NOT synced instead, e.g. ~/.venvs/ffdraft-mcp
# -- see docs/troubleshooting.md for why.
python3 -m venv .venv
source .venv/bin/activate      # Windows: .venv\Scripts\activate
pip install -e .

# One-time data build (~3-6 min; downloads 5 seasons, then caches)
python setup_data.py

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "fantasy-draft": {
      "command": "/absolute/path/to/ff-draft-mcp/.venv/bin/python",
      "args": ["-m", "ffdraft.server"],
      "env": {
        "FFDRAFT_SEASON": "2026",
        "ESPN_SWID": "optional-for-private-espn-leagues",
        "ESPN_S2": "optional-for-private-espn-leagues",
        "PYTHONPATH": "/absolute/path/to/ff-draft-mcp/src"
      }
    }
  }
}

Use absolute paths for both command and PYTHONPATH — Claude Desktop launches the server from an undefined working directory, so plain python or relative paths won't resolve. PYTHONPATH is a deliberate belt-and-suspenders: on macOS with Python 3.13, an editable install's .pth file can end up with the OS "hidden" flag set (cause varies), and Python 3.13 silently skips hidden .pth files at startup, which breaks the ffdraft import even though pip install -e . succeeded. Pointing PYTHONPATH straight at src/ sidesteps that mechanism entirely. See troubleshooting if the server still doesn't appear.

Then in Claude:

Set up my home league: 10 teams, full PPR, I pick 4th.
Set up my work league: 13 teams, half PPR, I pick 11th.
Switch to home. Sync my Sleeper draft 1234567890. Who should I pick?

Related MCP server: rag-nfl-analyst

Documentation

Guide

What's in it

Quickstart

Install to first recommendation in ten minutes

Tool reference

Every tool, argument and environment variable

Methodology

How projections work and why the defaults are what they are

Troubleshooting

When something looks wrong

Examples

A full draft session, prompt snippets, sample ADP file

Security

ESPN cookies, network access, what's stored locally

Contributing

Tests, lint, and the bar for model changes

Changelog

Release history


What it does

Recommends picks by opportunity cost, not raw value. Knowing a player is good is easy; knowing whether he'll still be there at your next turn is what decides who to take now. For each position the model walks the board top-down, accumulating the probability every better player is gone, and values a pick by its marginal gain over waiting.

At pick 6 with the top five off the board, that means recommending Amon-Ra St. Brown over Josh Allen — Allen grades as the highest-value player left, but has a 73% chance of lasting to pick 19, and the receiver has 8%.

Projects players from five seasons of open data. Offensive line from adjusted line yards and pressure allowed, neutral-script pace and run/pass split, five-year defensive strength by position, divisional schedule, injury history crossed with workload burden, positional aging curves. Computed from raw plays rather than scraped from ranking tables, so it recomputes under your scoring and doesn't break when a website changes its HTML.

Optimises for consistency. The default leans toward week-to-week reliability over raw ceiling. Tune it with one number.

Handles your actual leagues. PPR, half PPR, standard, superflex, TE premium, any size, any slot. Multiple leagues side by side with separate boards and drafts.

Separation and route efficiency from NGS tracking data — the open-data stand-in for paywalled charting. Validated against a published PFF table: TPRR within a few hundredths, ordering correct.

Rookies projected from draft capital, fitted to ten years of first-year outcomes.

Live sync from Sleeper (public API, no credentials), ESPN, or paste from anywhere.

Name matching that survives real drafts — JSN, CMC, Bijan, Hollywood Brown, Joshua Palmer, and typos. Ambiguous names name their candidates rather than guessing.


Tools

Tool

What it does

configure_league

Create or update a named league; makes it active

list_leagues

All your leagues and which is active

switch_league

Change active league; board and draft resume instantly

remove_league

Delete a league and its draft history

refresh_data

Rebuild the board from source. Run once before draft day

sync_draft

Pull the live board from Sleeper, ESPN, or pasted text

on_the_clock

The main one. Sync, status, recommendation, round-scoped value, and matchup detail — one call

who_should_i_pick

Recommendation + reasoning for the pick on the clock

best_available

Next best players, sortable by value, consistency, or ADP bargain

record_pick / undo_pick / reset_draft

Manual board management

draft_status

Your roster and where the draft stands

prewarm

Build all caches before draft day so nothing computes on the clock

rookie_report

This year's rookie class, projected from draft capital

resolve_names

Check how names resolve before trusting a paste sync

separation_report

Separation, cushion, YPRR, TPRR, plus a schedule-adjusted matchup score

coverage_report

(Context only, not in recommendations) Man vs zone splits for any WR/TE/RB (targets per snap, catch %, yards, EPA) against the position baseline

coverage_roles

Which coverages feed which receiver roles, league-wide or for one team

alignment_report

True X / Z / Slot / Y leaders vs man or zone (2023-2025 rookie classes; needs a local build)

pocket_report

How dropbacks end by coverage, pressure and time to throw; team pressure rate allowed (context only)

pressure_usage_backtest

Does last year's pressure predict a change in a TE/RB/WR's volume? (TE: yes, small)

pressure_rebound_backtest

Do players on a team with bad pass protection last year bounce back? (unconfirmed)

coverage_split_backtest

Does a player's man-vs-zone gap repeat year to year? (mostly no)

coverage_value_backtest

Does coverage improve next-season prediction beyond prior production? (no, for WR/TE/RB)

value_picks

Where the model disagrees with the draft market

draft_value_history

Backtest: preseason rank vs actual finish, by round and position

matchup_backtest

Backtest: does schedule-adjusted matchup score beat talent alone at predicting finish?

redzone_shift_backtest

Backtest: does a team's red zone identity shift beat touchdown-luck alone at predicting finish? (2022-2025: no — stays informational)

draft_backtest

Replay a real past ESPN draft: algorithm's pick vs. true optimal vs. what you actually took, round by round, with value verdicts and team context for each

mock_draft

Monte Carlo mock draft: the algorithm vs. many simulated ADP-bot opponents, averaged over N trials

champion_strategies

What actually won your ESPN league each season, and which specific pick made the difference

persistent_value_players

Players who beat their draft cost year after year

player_report

Every modelled factor for one player

compare_players

Head to head, up to four

team_context

O-line ranks, pace, run/pass split, schedule for an NFL team

defense_report

Fantasy points allowed by position, 5-year view

plan_my_draft

Simulate all 16 of your picks from your slot

model_settings

Retune factor weights



Data attribution

This project computes everything from open sources and ships no third-party data:

  • nflverse — play-by-play, weekly stats, snap counts, injury reports, rosters, schedules, draft picks, combine.

  • NFL Next Gen Stats (mirrored by nflverse) — separation, cushion, YAC over expected.

  • dynastyprocess/data — FantasyPros expert consensus rank history.

Please respect the terms of those upstream projects. Nothing here scrapes paywalled sources, and no proprietary data is redistributed.

Available Tools

25 tools
best_availableA

The next best players still on the board.

sort_by: draft_score (balanced), vor (raw value), consistency (floor), proj_points, or value (biggest gap between ADP and model rank).

Inputs: limit, sort_by, position. Returns: result

compare_playersA

Compare 2-4 players head to head. Pass a comma-separated list.

Inputs: names (required). Returns: result

configure_leagueB

Create or update a league, and make it the active one.

Give each league a name and you can keep as many as you like side by side — a 10-team full PPR and a 13-team half PPR hold separate boards, separate replacement levels and separate in-progress drafts.

scoring: ppr, half_ppr, or standard. Use superflex=1 for a second QB-eligible slot, and te_premium_bonus for extra points per tight end reception. consistency_weight trades expected points against week-to-week reliability (0 = pure upside, 1 = pure floor).

Inputs: qb, rb, te, wr, +11 more. Returns: result

defense_reportA

Defensive rankings against a position — fantasy points allowed, 5-year view.

Rank 1 = toughest matchup. This is what drives the schedule adjustment.

Inputs: limit, position. Returns: result

draft_statusB

Where the draft stands and what your roster looks like.

Inputs: no named parameters. Returns: result

draft_value_historyC

Backtest: how preseason consensus rank compared to where players actually finished.

Value is measured in points against what that draft slot actually returned, so "did RB5 capital buy RB5 production?" Rank movement would be unfair to early picks and would label whole rounds as busts, because undrafted breakouts push every drafted player down the final standings.

Inputs: seasons, group_by. Returns: result

list_leaguesA

Every league you've set up, and which one is active.

Inputs: no named parameters. Returns: result

model_settingsC

Tune how much each factor moves a player. Rebuilds the board.

Inputs: pace_weight, oline_weight, injury_weight, schedule_weight, +1 more. Returns: result

persistent_value_playersC

Players who beat their draft cost repeatedly, not once.

One outperformance is a season; three is a trait. This is the closest the data comes to naming players the market persistently misprices.

Inputs: limit, seasons, min_seasons. Returns: result

plan_my_draftA

Simulate your whole draft from your slot and return the projected lineup.

Runs the board forward pick by pick, using ADP to model who realistically falls to you at each turn, and applies the same recommendation logic at every stop. strategy: balanced, zero_rb, hero_rb, or robust_rb.

Inputs: strategy. Returns: result

player_reportA

Full breakdown of one player: production, role, environment, injury, consistency.

Inputs: player_name (required). Returns: result

prewarmA

Build every cache before draft day so nothing computes while you're on the clock.

The first query of a session pays for downloading and modelling five seasons. Every query after it is served from memory. Run this an hour before your draft, not during it.

Inputs: verbose. Returns: result

record_pickA

Log a pick that just happened. Use after every pick if you aren't auto-syncing.

Inputs: player_name (required), team_slot, overall_pick. Returns: result

refresh_dataB

Rebuild the player board from source data. Run once before draft day.

Inputs: force_download. Returns: result

remove_leagueA

Delete a league and its draft history. The board cache is left alone, since other leagues with the same format may share it.

Inputs: name (required). Returns: result

reset_draftA

Clear all recorded picks and start fresh.

Inputs: no named parameters. Returns: result

resolve_namesA

Check how names resolve against the board — useful before trusting a paste sync.

Reports the match type for each name so silent mismatches surface. A name that fails to resolve looks like a player who scored zero, which is the single most damaging failure mode in this whole pipeline.

Inputs: names_csv (required). Returns: result

rookie_reportA

Projected rookies for this season, from draft capital and landing spot.

Rookies have no NFL history, so they're projected off a curve fitted to how draft pick converted to first-year production across the last ten classes, then adjusted for the offence they landed in. Consistency is deliberately low for all of them: rookie roles move mid-season and the floor is a healthy scratch.

Treat these as the widest error bars on the board.

Inputs: limit, position. Returns: result

separation_reportA

Separation and route efficiency — the open-data version of a PFF SEP/YPRR table.

avg_separation is NFL Next Gen Stats tracking data: yards of daylight between receiver and nearest defender when the ball arrives. YPRR and TPRR use routes estimated from snap share times team dropbacks. Only players who cleared 250 routes and 50 targets in a season are included, so these are real workloads rather than flattering part-time rates.

Man-versus-zone splits are not reproducible from open data — that needs per-play coverage charting.

Inputs: limit, position, player_name. Returns: result

switch_leagueA

Make a different league active. Its board and draft resume where you left them.

Inputs: name (required). Returns: result

sync_draftA

Pull the current draft board from your platform.

platform="sleeper" with draft_id -- fully automatic, public API. platform="espn" with league_id -- works for public leagues; private ones need ESPN_SWID and ESPN_S2 environment variables from a logged-in browser session. platform="paste" with pasted_board -- paste the drafted list from any site.

Inputs: platform (required), season, draft_id, league_id, +1 more. Returns: result

team_contextC

Offensive environment for an NFL team: O-line, pace, run/pass split, schedule.

Inputs: team (required). Returns: result

undo_pickA

Remove the most recent pick — for when someone mis-enters the board.

Inputs: no named parameters. Returns: result

value_picksA

Where the model disagrees with the draft market, on draftable players only.

Positive gap means the model ranks a player higher than the room does — the players you can wait on and still get. Negative means the market is paying more than the model thinks they're worth.

Inputs: limit, direction. Returns: result

who_should_i_pickA

The live draft-analyst call: who to take right now, and why.

Weighs projected value, week-to-week consistency, your roster's open starting slots, and the odds each player survives to your next pick.

Inputs: limit. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 25 tools

    Disambiguation4/5

    Most tools have clearly distinct scopes (league management, draft syncing, player reports, historical analysis). However, best_available, who_should_i_pick, and value_picks all serve draft recommendation purposes, creating mild ambiguity despite detailed descriptions.

    Naming Consistency4/5

    All names use lowercase snake_case and are readable, but they mix verb_noun patterns (configure_league, record_pick) with noun phrases (best_available, value_picks, separation_report). This is mostly consistent but not perfectly uniform.

    Tool Count4/5

    At 25 tools, the count is borderline heavy but suits the broad domain of fantasy football drafting, covering league setup, live draft management, player research, backtesting, and simulation. Each tool serves a distinct purpose, so the size feels justified rather than bloated.

    Completeness5/5

    The tool set offers comprehensive lifecycle coverage: league CRUD, draft tracking (record/sync/undo/reset), multiple analysis perspectives (player, team, defense, rookies), historical value tools, and full-draft simulation. No major gaps are apparent for the stated draft-focused purpose.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that turns real NFL & fantasy data into a decisive edge, offering 70+ tools for draft assistance, start/sit recommendations, trade analysis, playoff odds, and more, with live league integration.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      MCP server for NFL fantasy football retrieval, providing access to NFL stats and Sleeper league data through retrieval-oriented tools.
      -
    • A
      license
      A
      quality
      D
      maintenance
      A read-only MCP server that supplies live context from Sleeper fantasy-football leagues, including rosters, trade analysis, draft picks, and league settings via Sleeper's public API.
      11
      MIT