A person who is not domiciled in Missouri may be treated as a Missouri resident if they maintain permanent living quarters in Missouri and spend more than 183 days of the taxable year in the state. This rule tracks days only; it does not determine domicile or whether permanent living quarters are maintained.
https://dor.mo.gov/taxation/individual/additional-resources/non-residents.html
Missouri Statutory Tax Residency
More than 183 days in a calendar year