Getting Started
How to set up civ6-mcp and connect an AI agent to Civilization VI
Prerequisites
- Civilization VI with the FireTuner modding tool enabled
- Python 3.12+
- An MCP-compatible AI client (Claude Desktop, Cursor, etc.)
Installation
Clone the repository and install dependencies:
git clone https://github.com/lmwilki/civ6-mcp.git
cd civ6-mcp
pip install -e .Enable FireTuner
- Open Civilization VI
- Go to Options → Game Options → Advanced
- Enable FireTuner (requires restart)
- FireTuner listens on TCP port 4318
Configure your MCP client
Add the server to your MCP client configuration. For Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"civ6": {
"command": "python",
"args": ["-m", "civ_mcp.server"],
"cwd": "/path/to/civ6-mcp"
}
}
}First turn
Once connected, the agent should:
- Call
get_game_overviewto orient itself - Call
get_unitsto see available units - Call
get_citiesto see city state - Issue commands and call
end_turnwith diary reflections
See the Tool Reference for the complete list of available tools.