Recent developments in nanotechnology provided an opportunity to solve many complex problems in the field of energy. Performance investigation of the nanoscale thermal cycles can prove crucial in the development of efficient and less polluting energy system. Due to the influence of boundary phenomenon and quantum degeneracy effects, a nanoscale engine performs according to statistical quantum thermodynamics instead of classical thermodynamics. In this study, a nanoscale Stirling engine operating on an ideal Maxwell-Boltzmann gas is investigated for multiobjective optimization.Optimization problem of Stirling cycle is formed considering the thermal efficiency, ecological coefficient of performance and entropy generation. An application example of a nanoscale Stirling engine is presented and solved using Heat Transfer Search algorithm. Maxwell-Boltzmann gas restricted in a finite domain is studied and the effect of different parameters, such as surface area ratio, volume ratio, and temperature ratio of the domain, is investigated. Sensitivity analysis is carried out to identify the effect of design variables on the performance parameters. Further, influence of the source temperature and the number of particles of working fluid on the objective functions is studied and presented.