Skip to main content
Glama

FC 26 MCP

Python 3.8+

适用于 EA SPORTS FC 26 的 MCP 服务器。兼容 Claude、Codex、Pi、Cursor、Cline、Windsurf 以及任何支持 模型上下文协议 的智能体。

包含两个服务器:

  1. fc26-mcp-file — 解析和编辑原始 Squads* 文件(FBCHUNKS/T3DB 格式)。

  2. fc26-mcp-live — 在游戏运行时,通过 xAranaktu 的 Live Editor Lua API 控制 FC 26。


安装

从 PyPI 安装:

pip install fc26-mcp

从 GitHub 安装:

pip install git+https://github.com/INSANE0777/Fc26-live-editor-mcp.git

从源码安装:

git clone https://github.com/INSANE0777/Fc26-live-editor-mcp.git
cd fc26-mcp
pip install -e .

Related MCP server: MCP Partidos de Fútbol

GUI 编辑器

一个桌面 GUI(tkinter,无需额外依赖),用于打开阵容文件并在界面中完全编辑——无需 MCP 客户端或 Live Editor:

fc26-mcp-gui                      # open via file dialog
fc26-mcp-gui "path/to/Squads..."  # open a specific squad file directly

功能:

  • 在全部 78 个数据库表中浏览/搜索/编辑/删除行(每个表有筛选框)

  • 按名称或 ID 搜索球员,显示当前俱乐部和租借状态

  • 一键转会——选择球员 + 目标球队,应用于所有俱乐部链接(国家队链接自动保留)

  • 终止租借——删除 playerloans 行

  • 保存前自动备份,外加手动备份按钮

  • 未保存更改指示器;保存将写回同一文件(或副本)

注意:阵容文件的 dcplayernames 表不完整(约 22000 名球员中仅约 6000 条),因此许多球员名称显示为 ?——可按球员 ID 搜索这些球员。


路径

包使用占位路径。请通过命令行标志或环境变量设置实际路径:

内容

标志

环境变量

示例

阵容文件

--squad-file

FIFA_SQUAD_FILE

C:\Path\To\Your\SquadsFile

Live Editor 桥接文件夹

--bridge-root

FC26_BRIDGE_ROOT

C:\Path\To\Your\FC 26 LE\le_bridge

Live Editor 脚本文件夹

--install-lua

—

C:\Path\To\Your\FC 26 LE\lua\scripts

快速开始

1. 阵容文件 MCP

fc26-mcp-file --squad-file "C:\Path\To\SquadsFile"

自动使用捆绑的 FC 26 元数据。可通过 --meta-file 覆盖。

2. Live Editor MCP 桥接

  1. 启动 FC 26 并注入 Live Editor。

  2. 加载生涯模式。

  3. 一次性将 Lua 桥接安装到 Live Editor:

fc26-mcp-live --install-lua "C:\Path\To\Your\FC 26 LE\lua\scripts"
  1. 在 Live Editor 中,进入 Features → Lua Engine 并运行 le_bridge.lua。

  2. 启动 MCP 服务器:

fc26-mcp-live --bridge-root "C:\Path\To\Your\FC 26 LE\le_bridge"

工具

文件解析器

  • list_clubs

  • search_players

  • get_player_club

  • plan_transfers

  • apply_transfers

Live Editor 桥接(28个工具)

  • 核心:le_ping、le_list_clubs、le_search_players、le_get_player_club

  • 转会/租借:le_transfer_player、le_loan_player、le_release_player、le_terminate_loan

  • 名单:le_add_to_transfer_list、le_add_to_loan_list、le_remove_from_lists、le_is_transfer_listed、le_is_loan_listed

  • 球员状态:le_set_player_sharpness、le_set_player_morale、le_set_player_form、le_set_player_fitness

  • 预算:le_get_transfer_budget、le_set_transfer_budget

  • 数据库编辑器:le_get_db_tables、le_get_db_fields、le_get_db_rows、le_edit_db_field、le_insert_db_row、le_delete_db_row

  • 统计数据:le_get_players_stats、le_get_player_stats

  • 高级用户:le_execute_lua

详细 Live Editor 文档请参阅 README_LE_BRIDGE.md。


MCP 客户端配置

使用 mcp_config.json 作为模板,或手动添加这些服务器:

{
  "mcpServers": {
    "fc26-file": {
      "command": "fc26-mcp-file",
      "args": [
        "--squad-file",
        "C:\Path\To\SquadsFile"
      ]
    },
    "fc26-live": {
      "command": "fc26-mcp-live",
      "args": [
        "--bridge-root",
        "C:\Path\To\Your\FC 26 LE\le_bridge"
      ]
    }
  }
}

Claude Desktop

打开 claude_desktop_config.json 并添加上面的服务器区块。

Cursor

打开 Cursor Settings → MCP → Add MCP Server,粘贴命令和参数。

Cline / Roo Code

将 JSON 添加到 MCP 设置文件中。

Pi

Pi 会从 mcp_config.json 或您的工作区设置中检测 stdio MCP 服务器。


环境变量

变量

用途

FIFA_SQUAD_FILE

用于 fc26-mcp-file 的默认阵容文件路径

FIFA_META_FILE

覆盖捆绑的 FC 26 元数据 XML

FC26_BRIDGE_ROOT

用于 fc26-mcp-live 的桥接文件夹


安全

  • 编辑前务必备份您的阵容文件和生涯模式存档。

  • 生涯模式工具仅在生涯模式下有效。

  • le_execute_lua 可以运行任意代码——请谨慎使用。


许可证

MIT

Available Tools

30 tools
le_add_to_loan_listC

Add a player to the loan list.

Inputs: player, teamid, playerid.

le_add_to_transfer_listC

Add a player to the transfer list.

Inputs: player, teamid, playerid.

le_delete_db_rowC

Delete a database row.

Inputs: row (required), table (required).

le_edit_db_fieldD

Edit a database field.

Inputs: field (required), table (required), value (required), match_field (required), +1 more.

le_execute_luaC

Run custom Lua (powerful, use carefully).

Inputs: code (required).

le_get_db_fieldsC

List fields of a database table.

Inputs: table (required).

le_get_db_rowsC

Read rows from a database table (default 50).

Inputs: table (required), limit.

le_get_db_tablesB

List database tables.

Inputs: no named parameters.

le_get_player_clubC

Get a player's current club.

Inputs: player, playerid.

le_get_players_statsC

Get all player stats (default 50).

Inputs: limit.

le_get_player_statsB

Get stats for one player.

Inputs: player, playerid.

le_get_transfer_budgetA

Get transfer budget (Career Mode).

Inputs: no named parameters.

le_insert_db_rowC

Insert a database row.

Inputs: row (required), table (required).

le_is_loan_listedC

Check if a player is on the loan list.

Inputs: player, teamid, playerid.

le_is_transfer_listedC

Check if a player is on the transfer list.

Inputs: player, teamid, playerid.

le_list_clubsC

List clubs/teams from Live Editor.

Inputs: limit.

le_list_team_playersB

List all players in a club/team.

Inputs: team, teamid.

le_loan_playerC

Loan a player to a club.

Inputs: length, player, new_club, playerid, +2 more.

le_pingA

Check if the Live Editor bridge is running.

Inputs: no named parameters.

le_rebuild_cachesA

Rebuild player/team name caches. Use after editing players/teams.

Inputs: no named parameters.

le_release_playerB

Release a player to free agents.

Inputs: player, playerid.

le_remove_from_listsC

Remove a player from transfer and loan lists.

Inputs: player, teamid, playerid.

le_search_playersC

Search players by name.

Inputs: name (required), limit.

le_set_player_fitnessB

Set player fitness (5-95). Career Mode only.

Inputs: value (required), player, playerid.

le_set_player_formC

Set player form (0-100). Career Mode only.

Inputs: value (required), player, playerid.

le_set_player_moraleB

Set player morale (0-100). Career Mode only.

Inputs: value (required), player, playerid.

le_set_player_sharpnessA

Set player sharpness (0-100). Career Mode only.

Inputs: value (required), player, playerid.

le_set_transfer_budgetC

Set transfer budget (Career Mode).

Inputs: value (required).

le_terminate_loanB

Terminate a player's loan.

Inputs: player, playerid.

le_transfer_playerC

Transfer a player to a club.

Inputs: wage, player, new_club, playerid, +5 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 30 tools

    Disambiguation5/5

    Each tool has a clear and distinct purpose. Operations like loan list addition vs. loan execution are differentiated by name and description. No two tools appear to do the same thing.

    Naming Consistency5/5

    All tools follow a consistent 'le_verb_noun' pattern with clear action-object relationships. No mixing of naming conventions.

    Tool Count2/5

    30 tools is above the 25 threshold defined as 'too many' for the apparent scope. While the server covers both high-level game actions and low-level database operations, the number feels excessive for a coherent tool set.

    Completeness4/5

    Covers core player management, club operations, and database CRUD. Minor gaps like contract editing are addressable via generic db edit tools.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An open-source MCP server that connects to the SoccerDataAPI to deliver up-to-date football match information via natural language interactions.
      39
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Python-based MCP server that extracts football match data from multiple global sources like ESPN and BBC Sport using intelligent web scraping. It enables AI assistants to retrieve scheduled matches, real-time scores, and broadcasting details with advanced filtering for high-profile games.
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      MCP servers for KiCad schematic, PCB, symbol, footprint, and project automation, enabling AI-assisted electronic design via tools for read/write, analysis, and exports.
      109
      519 PyPI
      16
      GPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides MCP servers for AI-driven video editing. Enables offline editing of CapCut drafts and remote control of Adobe Premiere Pro via UXP plugin, with shared media analysis for beat detection and transcription.
      1
      MIT