Allopurinol, the first-line treatment for chronic gout, is a common causative drug for severe cutaneous adverse reactions (SCAR). HLA-B*58:01 allele was strongly associated with allopurinol-induced SCAR in Asian countries such as Taiwan, Japan, Thailand and Malaysia. HLA-B*58:01 screening before allopurinol initiation is conditionally recommended in the Southeast-Asian population, but the uptake of this screening is slow in primary care settings, including Malaysia. This study aimed to explore the views and experiences of primary care doctors and patients with gout on implementing HLA-B*58:01 testing in Malaysia as part of a more extensive study exploring the feasibility of implementing it routinely. This qualitative study used in-depth interviews and focus group discussions to obtain information from patients with gout under follow-up in primary care and doctors who cared for them. Patients and doctors shared their gout management experiences and views on implementing HLA-B*58:01 screening in primary care. Data were coded and analysed using thematic analysis. 18 patients and 18 doctors from three different healthcare settings (university hospital, public health clinics, private general practitioner clinics) participated. The acceptability to HLA-B*58:01 screening was good among the doctors and patients. We discovered inadequate disclosure of severe side effects of allopurinol by doctors due to concerns about medication refusal by patients, which could potentially be improved by introducing HLA-B*58:01 testing. Barriers to implementation included out-of-pocket costs for patients, the cost-effectiveness of this implementation, lack of established alternative treatment pathway besides allopurinol, counselling burden and concern about genetic data security. Our participants preferred targeted screening for high-risk populations instead of universal screening. Implementing HLA-B*58:01 testing in primary care is potentially feasible if a cost-effective, targeted screening policy on high-risk groups can be developed. A clear treatment pathway for patients who test positive should be made available.