We propose an efficient method for the generation of perfect W states on three microwave superconducting resonators, of which the nearest-neighbor two are coupled by a symmetric direct current superconducting quantum interference device (dc-SQUID). With suitable external magnetic fluxes applied to the dc-SQUID symmetry loops, on-chip tunable interactions between neighboring resonators can be realized, and different perfect W states could be deterministically created on-demand in one step. Numerical simulations show that high-fidelity target states could be generated and our scheme is robust against imperfect parameter tuning and environment-induced decoherence. The present work may have potential applications for implementing quantum computation and quantum information processing based on microwave photons.