
lmwilki/civ6-mcp 是从 https://github.com/lmwilki/civ6-mcp. 导入的 MCP 服务器候选
概览
lmwilki/civ6-mcp 是从 https://github.com/lmwilki/civ6-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
一个让大型语言模型代理玩完整版《文明VI》游戏的MCP服务器。
将任何兼容MCP的客户端——Claude Code、Codex、Gemini CLI或你自己的客户端——连接到正在运行的《文明6》游戏中。代理通过游戏自身的规则执行API读取游戏状态、移动单位、管理城市、进行外交和结束回合。无需作弊,也无需视觉模型。
能力
76种工具涵盖完整的游戏循环:
- 单位 — 列出、移动、攻击、加固、发现城市、建设改进、晋升、升级
- 城市 — 检查,设定生产,用金币购买单位/建筑,管理焦点
- 地图 — 探索地形、资源、战争迷雾;获取定居和区域布置建议
- 研究 — 浏览科技和公民资源树,设定研究目标
- 外交——关系、修饰语、代表团、大使馆、联盟、和平协议
- 贸易 — 提出并回应交易,管理贸易路线和目的地
- 政府——交换政策卡、更换政府、选择时代奉献
- 州长 — 任命、派驻城市、晋升
- 宗教 — 发现的神系和宗教,选择信仰,传播路径
- 伟人——招募、居高临下、拒绝
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
civ6-mcp
An MCP server that lets LLM agents play full games of Civilization VI.
Connect any MCP-compatible client — Claude Code, Codex, Gemini CLI, or your own — to a running Civ 6 game. The agent reads game state, moves units, manages cities, conducts diplomacy, and ends turns, all through the game’s own rule-enforcing APIs. No cheats, no vision model required.
Capabilities
76 tools covering the full gameplay loop:
- Units — list, move, attack, fortify, found cities, build improvements, promote, upgrade
- Cities — inspect, set production, purchase units/buildings with gold, manage focus
- Map — explore terrain, resources, fog of war; get settle and district placement advice
- Research — browse tech and civic trees, set research targets
- Diplomacy — relationships, modifiers, delegations, embassies, alliances, peace deals
- Trade — propose and respond to deals, manage trade routes and destinations
- Government — swap policy cards, change governments, choose era dedications
- Governors — appoint, assign to cities, promote
- Religion — found pantheons and religions, select beliefs, track spread
- Great People — recruit, patronize, reject
- World Congress — vote on resolutions, manage diplomatic favor
- Victory — track progress across all victory conditions
- Game lifecycle — save, load, launch, restart, kill
Every turn, end_turn takes before/after snapshots and reports what happened: units damaged, cities grew, production completed, threats spotted near your cities.
Quick start
1. Configure Civ 6
Enable the FireTuner debug interface and configure recommended settings:
| Setting | Value | Why |
|---|---|---|
| Tuner | Enabled | Required — opens the TCP debug port the MCP server connects to. Disables achievements. |
| Auto End Turn | Disabled | The agent controls when turns end. Auto-end interferes with the blocker resolution flow. |
| Windowed mode | Recommended | Lets you watch the game while the agent plays. Required for OCR-based save loading. |
Windows: All three settings are available in the in-game Options menu. The Tuner setting appears as “Tuner (disables achievements)” under gameplay options.
macOS: The Tuner setting is not exposed in the menu. Edit AppOptions.txt directly and set EnableTuner 1:
~/Library/Application Support/Sid Meier's Civilization VI/Firaxis Games/Sid Meier's Civilization VI/AppOptions.txt
Linux: Same as macOS — edit AppOptions.txt directly and set EnableTuner 1:
~/.local/share/aspyr-media/Sid Meier's Civilization VI/AppOptions.txt
Install the Civ 6 SDK — the tuner server is part of the SDK, not the base game:
- In Steam, go to Library → filter by Tools
- Find and install “Sid Meier’s Civilization VI SDK”
Important notes:
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"civ6": {
"command": "uv",
"args": ["run", "--directory", "/path/to/civ6-mcp", "civ-mcp"]
}
}
}