Skip to main content
Glama
FPL MCP

FPL MCP

by MoayadAbbara

FPL MCP

AI로 Fantasy Premier League 팀을 관리하세요. MCP 서버로, Claude와 같은 LLM 클라이언트가 FPL 팀을 읽고, 선수와 일정을 분석하고, 이적을 제안하고, 미니 리그 라이벌을 염탐하고, 실제로 이적을 수행하고 주장을 지정하고 칩을 사용할 수 있게 해줍니다 — 모두 자연어 대화로 처리됩니다.

⚠️ 비공식. 프리미어리그와 제휴, 보증, 또는 관련이 없습니다. 공개 FPL API를 사용합니다. 전적으로 여러분의 컴퓨터에서 실행됩니다 — 세션 토큰은 컴퓨터를 떠나지 않으며, 비밀번호는 이 도구나 모델이 절대 볼 수 없습니다.


데모

한 문장으로 여러 작업 — 이적, 주장 변경, 라인업 교체를 실제 팀에서 모두 실행합니다:

"조앙 페드루를 이적시키고, 하베르츠를 영입하고, 홀란드를 주장으로 만들고, 르 페 대신 예이츠를 선발 라인업에 넣어줘"

FPL MCP 데모 — 채팅에서 팀 관리


Related MCP server: FPL MCP Server

차별점

대부분의 FPL 도구는 데이터를 읽고 조언만 제공하며, 이후에는 직접 적용해야 합니다. 하지만 이 도구는:

  • 실제로 팀을 관리합니다 — 이적, 주장, 라인업, 칩을 실제로 실행합니다.

  • 비밀번호를 건드리지 않고 로그인합니다 — 실제 브라우저가 열리고, 공식 FPL 페이지에서 직접 로그인하며, 세션 토큰만 캡처됩니다.

  • 미니 리그를 염탐합니다 — 라이벌의 스쿼드는 공개되어 있으므로, 리그 내 보유율을 계산하고 우위와 위협을 알려줍니다.

  • 포지션을 고려한 모델로 이적을 제안합니다 — 세 가지 전략: 최고 포인트, 안전한 템플릿 픽, 또는 순위 상승을 위한 디퍼렌셜.

도구

카테고리

도구

인증

login_to_fpl

내 팀

get_my_team

데이터

get_gameweek_status, search_players, compare_players, get_player, get_fixtures, blank_double_gameweeks, get_league_standings, transfer_history, team_news

분석

suggest_transfers, analyze_mini_league

관리

make_transfer, transfer_preview, set_captain, substitute, play_chip

로그인 작동 방식 (그리고 왜 안전한지)

FPL은 토큰 기반 로그인(PingOne OIDC)으로 전환했습니다. 비밀번호를 묻는 대신 login_to_fpl:

  1. 공식 FPL 사이트에서 실제 브라우저 창을 엽니다.

  2. 여러분이 직접 그곳에서 로그인합니다.

  3. 세션 토큰은 네트워크 트래픽에서 읽혀 로컬의 token.txt에 저장됩니다.

비밀번호는 FPL 자체 페이지에만 입력됩니다 — 이 코드나 모델에는 절대 전달되지 않습니다. 봇 탐지를 우회하지 않습니다. 사람이 로그인합니다. 전체 기술 문서는 docs/FINDINGS.md를 참조하세요.

요구 사항

  • Python 3.12+

  • uv

  • Node.js (개발 중 MCP Inspector를 사용하는 경우에만 필요)

설정

git clone https://github.com/MoayadAbbara/FPL-MCP.git
cd FPL-MCP
uv sync --extra browser      # includes Playwright for browser login
uv run playwright install chromium

Claude에 연결하기

MCP 클라이언트에 서버를 등록하세요. Claude Code의 경우:

claude mcp add fpl -- uv run --directory /path/to/FPL-MCP python src/server.py

또는 클라이언트의 MCP 구성(.mcp.json / claude_desktop_config.json)에 추가하세요:

{
  "mcpServers": {
    "fpl": {
      "command": "uv",
      "args": ["run", "python", "src/server.py"],
      "cwd": "/path/to/FPL-MCP"
    }
  }
}

클라이언트를 다시 시작한 다음, 그냥 대화하세요.

사용법

연결되면 자연어를 사용하세요:

"Sign in to FPL"
"Show my team"
"Any injury news on Arsenal players?"
"Compare Haaland and Gyökeres"
"Suggest transfers — differential mode"
"Analyse my mini-league 123456"
"Transfer out Haaland, bring in João Pedro, and make Watkins captain"

모델이 적절한 도구를 호출하고, 팀을 변경하는 모든 작업에 대해 무엇을 했는지 알려줍니다.

아키텍처

계층 구조 — 각 계층은 바로 아래 계층만 알고 있습니다:

src/
  tools/    MCP tool surface (thin glue: fetch -> domain -> format -> text)
  format/   raw data -> compact, model-friendly text
  domain/   pure FPL logic (scoring, suggestions, roster maths) — no HTTP, no MCP
  api/      FPL HTTP client
  auth/     token capture (browser) and storage
  server.py entry point

원시 FPL JSON은 모델에 도달하지 않습니다. 모든 것이 domain/을 거친 다음 format/을 거치므로 의사 결정에 관련된 필드만 남습니다.

개발

uv run ruff format . && uv run ruff check --fix .   # format + lint
uv run python src/server.py                          # run the server (stdio)

참고 사항

  • 시즌 의존 도구(suggest_transfers, analyze_mini_league)는 시즌이 시작된 후에 가장 잘 작동합니다. 첫 번째 마감 전에는 명확한 "아직 아님" 메시지를 반환합니다.

  • 팀 관리 자동화는 FPL 서비스 약관에 저촉될 수 있습니다. 자신의 팀에만 사용하고, 개인 용도로만 유지하며, 요청이 있으면 중단하세요.

라이선스

MIT

Available Tools

18 tools
analyze_mini_leagueA

Spy on a classic mini-league: your rank, your edge, and the threats, compared against the ~10 managers above and below you.

    Args:
        league_id: The mini-league ID.
        team_id: Optional; detected from your account if omitted.
    

Inputs: league_id (required), team_id. Returns: result

blank_double_gameweeksA

List upcoming blank and double gameweeks by club.

Inputs: no named parameters. Returns: result

compare_playersC

Compare two or more players side by side by name.

Inputs: players (required). Returns: result

get_fixturesC

Upcoming fixtures and difficulty for a club (e.g. 'Arsenal' or 'ARS').

Inputs: team (required), next_n. Returns: result

get_gameweek_statusA

Show the current, previous, and next gameweeks, plus the next deadline.

Inputs: no named parameters. Returns: result

get_league_standingsB

Show standings for a classic mini-league by its ID.

Inputs: league_id (required). Returns: result

get_my_teamA

Get an FPL team: starting XI, bench, captain, bank, value, and chips.

    Requires authentication (a Bearer token). Args:
        team_id: The FPL team ID. If omitted, it is detected automatically
            from the authenticated account.
    

Inputs: team_id. Returns: result

get_playerB

Detailed profile for one player: stats, status, and upcoming fixtures.

Inputs: name (required). Returns: result

login_to_fplA

Open a browser to sign in to Fantasy Premier League and save the token.

A real browser window opens on the FPL site. The user signs in there themselves; their password is never seen by this tool or the model. Once signed in, the session token is captured and stored for later calls.

Inputs: no named parameters. Returns: result

make_transferA

Transfer one player out and another in (by name).

    Args:
        sell: Name of a player currently in your squad to sell.
        buy: Name of the player to buy.
        team_id: Optional; detected from your account if omitted.
    

Inputs: buy (required), sell (required), team_id. Returns: result

play_chipB

Activate a chip, or cancel the active one.

    Args:
        chip: One of wildcard, free hit, bench boost, triple captain
            (aliases like wc/fh/bb/3xc/tc also work), or "cancel" to turn it off.
        team_id: Optional; detected from your account if omitted.
    

Inputs: chip (required), team_id. Returns: result

search_playersA

Find players by filters, best first.

    Args:
        position: GKP, DEF, MID, or FWD.
        team: Club short or full name (e.g. ARS or Arsenal).
        max_price: Maximum price in millions.
        min_price: Minimum price in millions.
        sort_by: points, form, price, ownership, goals, or assists.
        limit: How many players to return.
    

Inputs: team, limit, sort_by, position, +2 more. Returns: result

set_captainA

Set your captain, and optionally your vice-captain (by name).

    Args:
        player: Name of the squad player to make captain.
        vice: Optional name of the squad player to make vice-captain.
        team_id: Optional; detected from your account if omitted.
    

Inputs: player (required), vice, team_id. Returns: result

substituteA

Swap a bench player into the starting XI and move a starter to the bench.

    Args:
        bench_in: Name of the bench player to bring into the XI.
        starter_out: Name of the starting player to move to the bench.
        team_id: Optional; detected from your account if omitted.
    

Inputs: bench_in (required), starter_out (required), team_id. Returns: result

suggest_transfersB

Suggest transfers that improve your squad over the next 3 gameweeks.

    Args:
        mode: "normal" (best expected points), "template" (safe, well-owned
            picks), or "differential" (low-owned picks to climb your rank).
        team_id: Optional; detected from your account if omitted.
    

Inputs: mode, team_id. Returns: result

team_newsB

Injury and availability news: who is injured, doubtful, or suspended, their chance of playing, and the official note.

    Args:
        team: Optional club filter (e.g. 'Arsenal' or 'ARS').
        player: Optional player name; shows that player's status even if fit.
    

Inputs: team, player. Returns: result

transfer_historyA

Show a team's transfers this season. Auto-detects your team if logged in.

Inputs: team_id. Returns: result

transfer_previewA

Show what a transfer would do (funds, position) WITHOUT submitting it.

Inputs: buy (required), sell (required), team_id. 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 18 tools

    Disambiguation4/5

    Most tools target a distinct action and resource: search, compare, get profile, fixtures, transfers, chips, and squad moves are well separated. The main potential confusion is between get_league_standings and analyze_mini_league, which both deal with mini-league data, though their descriptions indicate different scopes.

    Naming Consistency3/5

    There is a clear majority pattern of imperative get_/set_/make_/play_ verbs, but several names are noun phrases instead, such as team_news, transfer_history, transfer_preview, and blank_double_gameweeks. The convention is consistent enough to be readable, but it is not uniformly verb_noun.

    Tool Count4/5

    18 tools is on the heavier end, but the FPL domain is broad and each tool serves a distinct part of the workflow: login, squad, players, fixtures, news, transfers, chips, and leagues. A few could arguably be folded together, but the count feels justified rather than bloated.

    Completeness5/5

    The tool surface covers the core FPL lifecycle: authentication, team viewing, player research, fixture difficulty, injuries, league standings, mini-league analysis, transfer history/suggestions/preview/execution, captain selection, substitutions, and chips. There are no obvious dead ends or missing domain-critical operations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables interaction with Fantasy Premier League data through natural language queries. Supports retrieving fixtures, league standings, player performance, and other FPL statistics via the official FPL API.
      16
      9 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects LLMs to the Fantasy Premier League API for intelligent team management, enabling natural language player research, competitor analysis, transfer decisions, and strategic planning using friendly names instead of IDs.
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to analyze Fantasy Premier League data, providing tools for player search, fixture analysis, manager comparisons, and strategy prompts for transfer planning and lineup selection.
      19
      35 PyPI
      1
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides tools and resources to interact with the Fantasy Premier League API, enabling player analysis, fixture insights, and team management through natural language.
      -