The use of medications serves three main purposes, including illness treatment, chronic disease management, disease prevention, and general health preservation. Health issues emerge because of economic disparities, which decrease patients' ability to obtain essential medicine. The system entails pharmaceutical records as a means to enhance first-aid medication accessibility through dispensaries. The proposed system offers users either automatic or manual functionality when operating it. While operating in manual mode, users can access available medications before they make their selections. The automated dispenser operates with servo motors to dispense prescribed medicines after a valid prescription card connection. Once the expense is applied, the system decreases the value stored in the card account. The system suggests the right over-the-counter drugs whenever prescription-based delivery is not possible. Public areas such as shopping centers, highways, train stations, and bus stops can benefit from having intelligent vending machines, which bring necessary medications to the general public. Such machines provide essential medicines quickly to emergency patients in areas that are distant from healthcare centers. The concept presents a solution to enhance medical emergency support while safeguarding lives through filling underserved healthcare areas.