fpl-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Port for the HTTP server. Set by most hosts automatically; defaults to 8000. | 8000 |
| DATABASE_URL | Yes | Supabase Session pooler URI/connection string for the read-only database user. | |
| MCP_AUTH_TOKEN | No | If set, every request needs Authorization: Bearer <token>. Grok, Cursor and VS Code can send it; claude.ai and ChatGPT can't. | |
| FPL_MCP_ALLOW_REFRESH | No | Set to 1 to expose the refresh_data tool. Off by default when hosted. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Fantasy Premier League data: players, teams, fixtures, gameweeks and managers' squads. Prices are in £m. Fixture difficulty is FPL's 1 (easy) to 5 (hard) rating. Positions are GKP, DEF, MID, FWD. Expected points come from a model (see model_report); treat them as estimates. For a manager's team, ask for their FPL team id (the number in fantasy.premierleague.com/entry//). If data looks stale, call refresh_data.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gameweek_statusA | Current and next gameweek, the next deadline, and when the data was last refreshed. |
| search_playersC | Find and rank players; position GKP/DEF/MID/FWD, sort_by any stat (e.g. form, price, ep_next). |
| get_playerA | A player's stats, injury news, last 6 matches and next fixtures. player: name or FPL id. |
| compare_playersA | Compare 2-6 players side by side, including per-90 output, value and fixture difficulty. |
| get_fixturesB | Fixtures for a team (next 6 gameweeks), or every fixture in a gameweek (default: next gameweek). |
| team_summaryC | A club's results so far, goals for/against, clean sheets, upcoming fixtures and top FPL players. |
| player_season_historyC | A player's FPL totals for every season loaded (back to 2016-17), linked across seasons. |
| get_my_teamC | A manager's squad, bank, rank and availability_alerts. team_id is the number in the FPL entry URL. |
| predict_pointsB | Expected points for the next 1-5 gameweeks, best first; one player, or filter to rank candidates. |
| model_reportB | Model accuracy: past-season tests and this season's live results vs a baseline and FPL's own. |
| optimal_squadB | Best 15-man squad from scratch (e.g. a Wildcard) for a budget in £m, following FPL rules. |
| suggest_transfersC | Best transfers over the next N gameweeks after -4 hits; mention any availability_alerts to the user. |
| pick_captainB | Captain, vice-captain and the top 5 captaincy options in a manager's current squad for next gameweek. |
| chip_adviceB | Chips left this half of the season, what each is worth, and whether to play or save it. |
| refresh_dataB | Re-pull players, prices, injuries and fixtures from the FPL API. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 15 tools
Each tool targets a clearly distinct FPL task: squad building, transfers, captaincy, chips, data refresh, player search/detail/comparison, fixtures, team summaries, season history, predictions, and model reporting. Overlaps such as optimal_squad vs suggest_transfers and get_fixtures vs team_summary are resolved by explicit scope in the descriptions.
All names use snake_case and are readable, but the set mixes verb_noun tools (e.g. get_player, search_players) with noun_noun tools (e.g. team_summary, chip_advice, model_report). The pattern is mixed enough that it does not read as a single consistent convention.
Fifteen tools is within the well-scoped range and reflects the breadth of FPL decision support: squad selection, transfers, captaincy, chips, player research, fixtures, team context, and model evaluation. Each tool has a distinct role and does not feel redundant.
The surface covers the main FPL analysis workflow from player search and team data through squad optimization, transfers, captaincy, chips, and predictions. Minor gaps exist around mini-league/rival context and broader manager history, but agents can work around these for most advisory tasks.