Skip to main content
Glama
MoayadAbbara

FPL MCP

by MoayadAbbara

FPL MCP

Manage your Fantasy Premier League team with AI. An MCP server that lets an LLM client like Claude read your FPL team, analyse players and fixtures, suggest transfers, spy on your mini-league rivals, and actually make transfers, set your captain, and play chips — all from plain-language chat.

⚠️ Unofficial. Not affiliated with, endorsed by, or connected to the Premier League. Uses the public FPL API. Runs entirely on your own machine — your session token never leaves your computer, and your password is never seen by this tool or the model.


Demo

One sentence, multiple moves — a transfer, a captaincy change, and a line-up swap, all executed on the real team:

"Transfer out João Pedro, bring in Havertz, make Haaland captain, and bring Yates into the starting eleven for Le Fée"

FPL MCP demo — managing a team from chat


Related MCP server: FPL MCP Server

What makes it different

Most FPL tools only read data and give advice you then apply by hand. This one:

  • Actually manages your team — transfers, captaincy, line-up, and chips, executed for real.

  • Signs you in without ever touching your password — a real browser opens, you log in on the official FPL page, and only the session token is captured.

  • Spies on your mini-league — rivals' squads are public, so it computes ownership within your league and tells you your edge and the threats.

  • Suggests transfers with a position-aware model — three strategies: best points, safe template picks, or differentials to climb the rank.

Tools

Category

Tools

Auth

login_to_fpl

Your team

get_my_team

Data

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

Analysis

suggest_transfers, analyze_mini_league

Manage

make_transfer, transfer_preview, set_captain, substitute, play_chip

How sign-in works (and why it's safe)

FPL migrated to a token-based login (PingOne OIDC). Instead of asking for your password, login_to_fpl:

  1. Opens a real browser window on the official FPL site.

  2. You sign in there yourself.

  3. The session token is read from the network traffic and stored locally in token.txt.

Your password is typed only into FPL's own page — it never reaches this code or the model. No bot-detection is bypassed; a human logs in. See docs/FINDINGS.md for the full technical write-up.

Requirements

  • Python 3.12+

  • uv

  • Node.js (only if you use the MCP Inspector for development)

Setup

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

Connect it to Claude

Register the server with your MCP client. For Claude Code:

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

Or add it to your client's MCP config (.mcp.json / claude_desktop_config.json):

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

Restart the client, then just talk to it.

Usage

Once connected, use natural language:

"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"

The model calls the right tools and, for anything that changes your team, tells you what it did.

Architecture

Layered — each layer only knows the one below it:

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

Raw FPL JSON never reaches the model; everything passes through domain/ then format/ so only decision-relevant fields remain.

Development

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

Notes

  • The season-dependent tools (suggest_transfers, analyze_mini_league) work best once the season has started; before the first deadline they return a clear "not yet" message.

  • Automating team management may bump against the FPL Terms of Service. Use it for your own team, keep it personal, and stop if asked to.

License

MIT

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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
    26
    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.
    2
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    AI-powered Fantasy Premier League assistant — scored captain picks, transfer suggestions, differentials, fixture outlook, price predictions, live points, and a full manager hub that auto-detects your squad, bank balance, and free transfers.
    2
    13
    9
    MIT
  • A
    license
    A
    quality
    C
    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
    MIT

View all related MCP servers

Related MCP Connectors

  • Read-only fantasy analysis for ESPN, Yahoo, and Sleeper leagues via MCP

  • Manage projects, tasks, time tracking, and team collaboration through natural language.

  • Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MoayadAbbara/FPL-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server