FPL MCP
Manages Fantasy Premier League teams via natural language, reading team data, analyzing players and fixtures, and executing actions like transfers, captain changes, and chips.
README
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"

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:
- Opens a real browser window on the official FPL site.
- You sign in there yourself.
- 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。