关于 Fpl Intelligence
Fpl Intelligence 是面向 FPL 管理者的 MCP 服务,为 Claude 提供分析阵容、球员、赛程和联赛的工具,并使用官方 FPL API 的实时数据。
主要功能
- 01个性化阵容分析
- 02队长与转会建议
- 03球员比较和换人扣分计算
- 04芯片时机与冷门球员发现
- 05实时得分和价格预测
- 06对手及联赛分析
适用场景
- 01为下一轮选择队长
- 02根据预算和免费转会评估引援
- 03比较未来几轮的球员表现
- 04追踪对手并估算联赛获胜概率
MCP 相关
本地 MCP 服务连接 Claude Desktop,并提供 FPL 分析工具。它调用官方 FPL API;README 说明除这些 API 请求外,数据不会离开本机。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。
工具
本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。
详细介绍
FPL Intelligence — MCP 服务
让 Claude 成为你的 FPL 分析师。队长人选、转会建议、对手侦察、芯片使用时机、联赛预测——由实时 FPL 数据驱动。
快速开始
步骤 1 — 安装
需要 Python 3.12+。
pip install fpl-intelligence
步骤 2 — 连接到 Claude Desktop
fpl-intelligence --setup
步骤 3 — 重启 Claude Desktop
退出(在 macOS 上按 Cmd+Q),然后重新打开。在 MCP 服务图标(锤子图标)下查找 fpl。
步骤 4 — 向 Claude 询问任何 FPL 相关问题
“分析我的 FPL 球队 5456980——我应该让谁当队长、引进谁,以及什么时候使用芯片?”
就这么简单。系统会根据你的球队 ID 自动检测银行余额、自由转会次数和芯片。
我的球队 ID 在哪里?
前往 fantasy.premierleague.com → 点击 Points → 从 URL 中找到数字:
https://fantasy.premierleague.com/entry/YOUR_TEAM_ID/event/30
你的联赛 ID 位于迷你联赛 URL 中:
https://fantasy.premierleague.com/leagues/YOUR_LEAGUE_ID/standings/c
12 个工具
| 工具 | 功能 |
|---|---|
fpl_manager_hub | 完整的个性化分析——队长、转会、差异化球员、赛程、价格风险 |
captain_pick | 根据状态、xG、赛程和 ICT 指数评分的前 5 名队长人选 |
transfer_suggestions | 根据你的阵容和预算,建议引进和出售哪些球员 |
player_comparison | 从各项指标进行 2-4 名球员的正面对比 |
is_hit_worth_it | 是否值得扣 4 分?预测未来 N 个比赛周的净得分 |
chip_strategy | 每种芯片的最佳使用比赛周——考虑 DGW 预测 |
differential_finder | 找出表现优于其持有率的隐藏好球员 |
fixture_outlook | 按即将到来的赛程难度对球队排名 |
price_predictions | 预测今晚哪些球员涨价或降价 |
live_points | 实时得分、预估额外分数、自动替补情景 |
rival_tracker | 侦察迷你联赛对手——差异化球员、弱点、预测操作 |
league_analyzer | 预测你的联赛获胜概率——谁最有希望,原因是什么 |
squad_scout | 利用 FPL 隐藏数据进行深度侦察——ep_next、定位球、停赛风险 |
示例提示词
"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?"
工作原理
FPL Intelligence 会连接官方 FPL API——与 FPL 网站使用的相同免费公开数据。所有数据均为实时数据。端点文档请参阅完整的 Postman 上的 FPL API 参考。
服务在你的本地计算机上运行,并通过 MCP 与 Claude Desktop 通信。无需 API 密钥或账户;除 FPL API 调用外,数据不会离开你的计算机。
从源代码安装
git clone https://github.com/dohyung1/x402-fpl-api.git
cd x402-fpl-api
uv sync
然后在 Claude Desktop 配置中使用 uv 和仓库的完整绝对路径:
{
"mcpServers": {
"fpl": {
"command": "/full/path/to/uv",
"args": ["run", "--directory", "/full/path/to/x402-fpl-api", "mcp_server.py"]
}
}
}
使用
which uv查找uv的路径(例如/Users/you/.cargo/bin/uv)。
故障排查
FPL API 调用被阻止 / 403 错误
FPL API 会阻止看起来不像来自浏览器的请求。
测试 API 是否可访问:
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/
返回 200?API 可以正常使用,问题可能出在 Claude Desktop 的沙盒(见下文)。返回 403?你的网络正在阻止请求。
Claude Desktop 沙盒: Claude Desktop 可能会提示你批准对 fantasy.premierleague.com 的网络访问。如果你忽略了此提示,请重启 Claude Desktop 并留意提示。在 ~/Library/Logs/Claude/ 中查看日志(macOS)。
VPN / 公司网络: 有些网络会阻止 *.premierleague.com。尝试断开 VPN,或切换到个人网络。
FPL API 停机: API 会在截止时间前后以及赛季间歇期(6 月至 7 月)停机。在浏览器中测试:fantasy.premierleague.com/api/bootstrap-static/
服务无法启动 / “Failed to spawn process” / 找不到命令
首先尝试重新运行自动设置:
fpl-intelligence --setup
如果仍然无效,请手动设置:
步骤 1 — 查找二进制文件:
find ~ -name "fpl-intelligence" -type f 2>/dev/null
步骤 2 — 在配置中使用完整路径:
{
"mcpServers": {
"fpl": {
"command": "/full/path/to/fpl-intelligence"
}
}
}
步骤 3 — 确认你正在编辑正确的配置文件:
# macOS — open the file directly
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
notepad %APPDATA%\Claude\claude_desktop_config.json
步骤 4 — 完全退出并重新打开 Claude Desktop(macOS 上按 Cmd+Q,而不只是关闭窗口)。
仍然无法使用? 查看 Claude Desktop 日志中的错误:
- macOS:
~/Library/Logs/Claude/ - Windows:
%APPDATA%\Claude\logs\
Python 版本错误: 需要 Python 3.12+。使用 python3 --version 检查。
Invalid team_id 错误
请使用你的 FPL 球队 ID(类似 5456980 的数字),而不是用户名。前往 fantasy.premierleague.com → Points → 查看网址即可找到。
仍然无法解决?
提交问题,并附上你的操作系统、Python 版本、错误消息,以及上述 curl 测试的输出。
参与贡献
开发环境设置和指南请参阅 CONTRIBUTING.md。
许可证
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。