Hearts of Iron IV
Enables AI agents to inspect game state and play Hearts of Iron IV using live memory reads, save parsing, and player command queue injection.
hoi4-mcp bridges external AI agents with Hearts of Iron IV (v1.19.3.0), enabling automated observation and gameplay without relying on console cheats or altered memory values. It provides an advanced multi-layered interface that executes real-time, non-invasive memory reads and injects commands directly into the game's native command queue via special user APCs. Agents can inspect dynamic game metrics, parse full binary save files offline to evaluate country semantics and focus trees, and execute verified in-game actions like setting speeds, selecting national focuses, and managing interfaces while strictly enforcing single-player safety guardrails.