Skip to main content
Glama
FPL Intelligence

FPL Intelligence

by dohyung1

FPL Intelligence — MCP Server

PyPI version CI License: MIT Python 3.12+ MCP Downloads

Turn Claude into your FPL analyst. Captain picks, transfer advice, rival scouting, chip timing, league predictions — powered by real-time FPL data.

FPL Intelligence MCP server

Quick Start

Step 1 — Install

Requires Python 3.12+.

pip install fpl-intelligence

Step 2 — Connect to Claude Desktop

fpl-intelligence --setup

Step 3 — Restart Claude Desktop

Quit (Cmd+Q on macOS) and reopen. Look for fpl under the MCP servers icon (hammer icon).

Step 4 — Ask Claude anything about FPL

"Analyze my FPL team 5456980 — who should I captain, who should I transfer in, and when should I use my chips?"

That's it. Bank balance, free transfers, and chips are all auto-detected from your team ID.

Where's my team ID?

Go to fantasy.premierleague.com → click Points → grab the number from the URL:

https://fantasy.premierleague.com/entry/YOUR_TEAM_ID/event/30

Your league ID is in the mini-league URL:

https://fantasy.premierleague.com/leagues/YOUR_LEAGUE_ID/standings/c

Related MCP server: fpl-strategy-mcp

12 Tools

Tool

What it does

fpl_manager_hub

Full personalized analysis — captain, transfers, differentials, fixtures, price risks

captain_pick

Top 5 captain picks scored by form, xG, fixtures, and ICT index

transfer_suggestions

Who to bring in and ship out based on your squad and budget

player_comparison

Head-to-head compare 2-4 players across every metric

is_hit_worth_it

Should you take a -4? Projects net points over N gameweeks

chip_strategy

Optimal gameweek for each chip — factors in DGW predictions

differential_finder

Hidden gems outperforming their ownership

fixture_outlook

Teams ranked by upcoming fixture difficulty

price_predictions

Who's rising and falling tonight

live_points

Live score, projected bonus, auto-sub scenarios

rival_tracker

Spy on mini-league rivals — differentials, weaknesses, predicted moves

league_analyzer

Win probabilities for your league — who's the favourite and why

squad_scout

Deep scout using FPL's hidden data — ep_next, set pieces, suspension risks

Example Prompts

"Give me the full breakdown on team 5456980 — captain, transfers, everything"

"I have 2 free transfers and 1.5m in the bank. Who should I bring in?"

"Salah vs Palmer vs Saka — who's the best pick for the next 5 gameweeks?"

"I want to bring in Haaland for a -4. Is it worth the hit?"

"I still have my bench boost and triple captain. When should I use them?"

"Find me some differentials under 3% ownership that are actually returning points"

"It's 60 minutes into the games — how's my team doing? Any auto-subs?"

"Show me everything about mini-league 1189955 — who's going to win?"

"How do I beat my rivals in league 1189955? I'm team 5456980"

"Which players are about to drop in price tonight? I need to sell before the deadline"

"Scout my squad — who's nailed, who's at risk of rotation, any suspension danger?"

How It Works

FPL Intelligence connects to the official FPL API — the same free, public data that powers the FPL website. All data is real-time. See the full FPL API reference on Postman for endpoint documentation.

The server runs locally on your machine and talks to Claude Desktop via MCP. No API keys, no accounts, no data leaves your machine except FPL API calls.

Install from Source

git clone https://github.com/dohyung1/x402-fpl-api.git
cd x402-fpl-api
uv sync

Then use the full absolute path to uv and the repo in your Claude Desktop config:

{
  "mcpServers": {
    "fpl": {
      "command": "/full/path/to/uv",
      "args": ["run", "--directory", "/full/path/to/x402-fpl-api", "mcp_server.py"]
    }
  }
}

Find your uv path with which uv (e.g. /Users/you/.cargo/bin/uv).

Troubleshooting

The FPL API blocks requests that don't look like they come from a browser.

Test if the API is reachable:

curl -s -o /dev/null -w "%{http_code}" \
  -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" \
  https://fantasy.premierleague.com/api/bootstrap-static/

Returns 200? The API works — the issue is likely Claude Desktop's sandbox (see below). Returns 403? Your network is blocking it.

Claude Desktop sandbox: Claude Desktop may prompt you to approve network access to fantasy.premierleague.com. If you dismissed this, restart Claude Desktop and watch for the prompt. Check logs at ~/Library/Logs/Claude/ (macOS).

VPN / corporate network: Some networks block *.premierleague.com. Try disconnecting from VPN or switching to a personal network.

FPL API downtime: The API goes down around deadline time and between seasons (June-July). Test in your browser: fantasy.premierleague.com/api/bootstrap-static/

First try re-running the auto-setup:

fpl-intelligence --setup

If that doesn't work, set it up manually:

Step 1 — Find the binary:

find ~ -name "fpl-intelligence" -type f 2>/dev/null

Step 2 — Use the full path in your config:

{
  "mcpServers": {
    "fpl": {
      "command": "/full/path/to/fpl-intelligence"
    }
  }
}

Step 3 — Make sure you're editing the right config file:

# macOS — open the file directly
open ~/Library/Application\ Support/Claude/claude_desktop_config.json

# Windows
notepad %APPDATA%\Claude\claude_desktop_config.json

Step 4 — Fully quit and reopen Claude Desktop (Cmd+Q on macOS, not just close the window).

Still not working? Check Claude Desktop's logs for errors:

  • macOS: ~/Library/Logs/Claude/

  • Windows: %APPDATA%\Claude\logs\

Python version error: Requires Python 3.12+. Check with python3 --version.

Use your FPL team ID (a number like 5456980), not your username. Find it at fantasy.premierleague.com → Points → check the URL.

Open an issue with your OS, Python version, the error message, and the output of the curl test above.

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT

Available Tools

13 tools
captain_pickA
Get top 5 captain recommendations for a given FPL gameweek.

USE THIS WHEN the user asks: "Who should I captain?", "Best captain this week?",
"Captain Salah or Haaland?", or any captain-related question.

Each pick is scored by xG/90, xA/90, form, points per game, home advantage,
fixture difficulty, ICT index, bonus rate, penalty duties, and minutes certainty.
Includes human-readable reasoning for each recommendation.

Args:
    gameweek: Gameweek number (1-38). Defaults to next gameweek if not specified.

Inputs: gameweek.

chip_strategyA
Recommend when to use each remaining FPL chip for maximum impact.

USE THIS WHEN the user asks: "When should I use my bench boost?", "Best week for
triple captain?", "Chip strategy?", "When to free hit?", "Should I wildcard?".

Auto-detects which chips are still available (handles mid-season reset after GW19).
Scans the next 10 gameweeks and scores each for every unused chip.

Args:
    team_id: FPL team ID (the number in your FPL URL).

Inputs: team_id (required).

differential_finderA
Find underowned FPL players who are outperforming their ownership percentage.

USE THIS WHEN the user asks: "Find me a differential", "Who are the hidden gems?",
"Low-owned players performing well?", or wants to climb the rankings with unique picks.

Args:
    max_ownership_pct: Only include players owned by fewer than this percentage. Default 10%.
    gameweek: Gameweek number (1-38). Defaults to next gameweek if not specified.

Inputs: max_ownership_pct, gameweek.

fixture_outlookA
Rank all 20 Premier League teams by upcoming fixture difficulty.

USE THIS WHEN the user asks: "Who has easy fixtures?", "Which teams to target?",
"Best defenders to buy for the next 5 weeks?", or any fixture-planning question.

Args:
    gameweeks_ahead: How many gameweeks to look ahead (1-10). Default 5.
    position: Filter players by position: GKP, DEF, MID, or FWD. Optional.

Inputs: gameweeks_ahead, position.

fpl_manager_hubA
Complete FPL intelligence report for a manager's team. THIS IS THE BEST STARTING POINT.

USE THIS FIRST when the user provides their team ID or asks for a full analysis.
It auto-detects bank balance, free transfers, chips, and squad — then runs ALL
analyses in parallel: captain pick, transfers, fixtures, differentials, price risks,
and squad health.

The user only needs to provide their team ID (the number in their FPL URL:
fantasy.premierleague.com/entry/TEAM_ID/event/...).

Args:
    team_id: FPL team ID from the manager's FPL URL.
    gameweeks_ahead: How many gameweeks to look ahead for fixture analysis (1-10). Default 5.

Inputs: team_id (required), gameweeks_ahead.

is_hit_worth_itA
Analyze whether taking a -4 point hit for a transfer is worth it.

USE THIS WHEN the user asks: "Should I take a hit?", "Is it worth -4 to bring in X?",
"Hit for Haaland worth it?". Use player_comparison first to find player IDs if needed.

Projects expected points for both players over N gameweeks, accounting for
form, fixture difficulty, home/away, and playing chance.

Args:
    player_out_id: FPL element ID of the player being sold (find via transfer_suggestions or player_comparison).
    player_in_id: FPL element ID of the player being bought.
    gameweeks_ahead: How many gameweeks to project over (1-10). Default 5.

Inputs: player_out_id (required), player_in_id (required), gameweeks_ahead.

league_analyzerA
Predict who will win a mini-league based on current form, squad quality, and chips remaining.

USE THIS WHEN the user asks: "Who's going to win my league?", "League predictions",
"Who's the favourite?", "Analyze league standings", "Win probability", or any question
about league-wide chances WITHOUT needing a specific team ID.

Does NOT require the user's team ID — just the league ID. Analyzes the top managers
in the league and calculates win probability for each based on: points gap, squad quality,
chips remaining, recent momentum, team value, and injury concerns.

The league ID is in the mini-league URL: fantasy.premierleague.com/leagues/LEAGUE_ID/standings/c

Args:
    league_id: Mini-league ID from the league URL.

Inputs: league_id (required).

live_pointsA
Get live points for a specific FPL team during an active gameweek.

USE THIS WHEN the user asks: "How's my team doing?", "Live score?",
"Am I getting any bonus points?", "Any auto-subs?". Only useful during
an active gameweek when matches are being played or have just finished.

Args:
    team_id: FPL team ID (the number in your FPL URL).

Inputs: team_id (required).

player_comparisonA
Compare 2-4 FPL players head-to-head across all key metrics.

USE THIS WHEN the user asks: "Salah vs Palmer?", "Compare Haaland and Watkins",
"Which midfielder should I pick?", or any player comparison question.

Names are fuzzy-matched — partial names like "Salah" or "Palmer" work fine.
Returns form, xG/90, xA/90, ICT, PPG, cost, ownership, captain score,
upcoming fixtures, transfer momentum, and a verdict.

Args:
    player_names: List of 2-4 player names to compare (e.g., ["Salah", "Palmer", "Saka"]).
    gameweeks_ahead: How many gameweeks of fixtures to include (1-10). Default 5.

Inputs: player_names (required), gameweeks_ahead.

price_predictionsA
Predict which FPL players are likely to rise or fall in price tonight.

USE THIS WHEN the user asks: "Who's about to rise in price?", "Should I make my
transfer now before prices change?", "Price change predictions?", or any price-related question.

Buy before a rise to gain free team value. Sell before a fall to avoid losing value.

Inputs: no named parameters.

rival_trackerA
Analyze your mini-league rivals and get strategies to beat them.

USE THIS WHEN the user asks: "How do I beat my rivals?", "What's my mini-league looking like?",
"What players do my rivals have?", "Show me my league standings", or any rival/league question.

Compares your squad against nearby rivals, finds differentials (players you have that they don't),
identifies rival weaknesses, predicts their likely next transfers, and suggests counter-strategies.

The user needs their league ID (from the mini-league URL: fantasy.premierleague.com/leagues/LEAGUE_ID/standings/c)
and their team ID.

Args:
    league_id: Mini-league ID from the league URL.
    team_id: Your FPL team ID (the number in your FPL URL).

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

squad_scoutA
Deep scout report using FPL's hidden data fields most managers don't know about.

USE THIS WHEN the user asks: "Any hidden insights?", "Set piece takers?",
"Suspension risks?", "What does FPL's own data say?", or for a deeper dive
beyond what fpl_manager_hub provides.

Surfaces: blank GW warnings, FPL's expected points (ep_next), set piece duties,
yellow card suspension risks, ICT breakdown, points per million rankings.

Args:
    team_id: FPL team ID (the number in your FPL URL).

Inputs: team_id (required).

transfer_suggestionsA
Get transfer recommendations for a specific FPL team.

USE THIS WHEN the user asks: "Who should I transfer in/out?", "Best transfers this week?",
"How to improve my team?". Prefer fpl_manager_hub for a full analysis instead.

Args:
    team_id: FPL team ID (the number in your FPL URL).
    free_transfers: Number of free transfers available (1 or 2). Default 1.
    bank: Money in the bank in millions (e.g. 1.5 means 1.5m). Default 0.0.

Inputs: team_id (required), free_transfers, bank.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools have distinct purposes, but fpl_manager_hub subsumes many others like transfer_suggestions and squad_scout, causing some overlap. Descriptions help differentiate, but an agent might initially be confused between the hub and specific tools.

    Naming Consistency3/5

    All tools use snake_case, but naming patterns vary: some are noun_verb (captain_pick, league_analyzer), others noun_noun (chip_strategy, fixture_outlook) or even a question (is_hit_worth_it). While consistent in casing, the lack of a uniform verb_noun pattern reduces predictability.

    Tool Count5/5

    13 tools cover the major aspects of FPL management without being excessive. Each tool addresses a specific need, and the count is well-scoped for the domain.

    Completeness5/5

    The tool set covers nearly all common FPL tasks: captain picks, chips, differentials, fixtures, transfers, hits, leagues, live points, player comparisons, price predictions, rivals, and deep scouting. No significant gaps are apparent.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • 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
      27 PyPI
      1
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables Fantasy Premier League squad management with custom tools for player search, fixture outlook, tier classification, hit math, and chip timing, all using public FPL data without requiring login credentials.
      1
      -
    • A
      license
      A
      quality
      D
      maintenance
      Manages Fantasy Premier League teams via natural language, reading team data, analyzing players and fixtures, and executing actions like transfers, captain changes, and chips.
      18
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides live Fantasy Premier League data, expected-goals analytics, and a linear-programming squad optimizer, enabling users to build optimal FPL squads, compare players, find value picks, and get transfer and captain advice through natural language.
      -