Question: are local governments 501c3 organizations?
Answer: No. Government entities do not qualify for 501(c)3 status. ... However, if an organization is an integral part of the local government or possesses governmental powers, it does not qualify for exemption. A state or municipality itself does not qualify for exemption” (page 21, top of middle column under Instrumentalities).