The main purpose of the Ensuring Community Access to Pharmacist Services Act is to expand Medicare coverage to include certain services provided by pharmacists. This aims to enhance access to healthcare services, particularly in response to public health needs, by allowing pharmacists to offer specific medical services that are currently only available through physicians. Key provisions of the Act include the formal recognition of pharmacist services under Medicare Part B.