Chemical engine is an abstract model for many devices and processes. Its thermodynamic performance analysis and optimization is meaningful. A model of irreversible multistage isothermal chemical engine (MICE) system with linear mass transfer law [g∝Δμ] and the irreversibilities of internal dissipation effect of working fluid and finite rate mass transfer is built, and its performances is investigated and optimized. For fixed initial key component concentration and fixed initial time, the maximum power output (MPO) of the irreversible MICE is obtained by applying Hamilton-Jacobi-Bellman optimization theory analytically. Numerical examples are provided. The results indicate that difference between chemical potential of key component concentration (KCC) and Carnot chemical potential (See Eq. (12) in this paper for its definition) for MPO is constant, KCC at high-chemical-potential side decreases with increase of time nonlinearly, and irreversibility factor affects MPO of irreversible MICE and the corresponding optimal KCC configuration qualitatively.