  We investigate a heat engine with a finite length Kitaev chain in an Otto
cycle. Finite size effects are taken into account using method of Hill's
nano-thermodynamics as well as using the method of temperature dependent energy
levels. We distinguish the bulk and boundary contributions to the efficiency
and the work output of Kitaev chain engine and identify them as non-Otto heat
engine and refrigerator cycles, respectively. Possibility of separately running
Otto engine cycles associated with the bulk and the whole system, and an Otto
refrigerator at the boundary is pointed out. It is found that the critical
point of the topological phase coincides with the extremum of the efficiency
and the work output of the bulk and the total Otto engine.
