The increasing penetration of distributed energy resources in microgrids is driving the adoption of Energy Management Systems (EMS) capable of coordinating generation, storage and flexible loads while meeting operational constraints. Two-level hierarchical EMS architectures, typically combining an upper-layer planner (rolling-horizon scheduling) with a lower layer real-time controller, are a practical approach to cope with forecast uncertainty and fast dynamics. However, an open implementation question remains: where should the upper-layer EMS planner be executed—on the cloud, on an edge device, or in a hybrid configuration—given constraints on computation time, connectivity, and latency. This paper proposes a lightweight cloud–edge placement tool to support this decision. The method uses a small set of measurable inputs (optimization time budget, problem size indicators, update period/granularity, and communication reliability/latency) to recommend a deployment option and to flag configurations that risk infeasibility or timeouts. The approach is validated on a representative two-level microgrid EMS workflow, comparing cloud and edge executions under different computational and communication conditions. Results show that the proposed tool correctly anticipates when edge execution becomes impractical due to solver time limits and when cloud execution may be penalized by communication constraints, providing actionable guidance for robust EMS deployment. Key words. Microgrids, hierarchical energy management systems, cloud–edge computing, model predictive control, flexibility.