PurposeThe research proposes a customised framework for improving logistics service quality (LSQ) in Tanzania's railway transportation, focusing on customer engagement and integrating customer-desired services.Design/methodology/approachThe survey method obtained data from railway customers regarding the LSQ offered. Both probability and purposive sampling techniques were used to get the sample size. The open- and closed-ended questionnaires gathered the pertinent data. The data were analysed qualitatively and quantitatively using the IBM (R) SPSS (R) 21.0 and AMOS 21.0 software packages, respectively. Exploratory factor analysis (EFA) and confirmatory factor analysis (CFA) were performed to analyse data and establish relationships between variables.FindingsThis study anticipated that the LSQ framework during the period of reviewing literature included three variables for freight transporting customers (tangible components, ways of fulfilment and information actions) and eight variables for passengers (tangible, reliability, assurance, responsiveness, comfort, empathy, connection and convenience). EFA and CFA dropped some factors. The retained factors were used as inputs to develop a framework. The qualitative analysis also established the improvement of customer's desired services (CDS) and LSQ, which were the framework's processes for improving the LSQ. Ultimately, the study developed the LSQ framework for railway transportation.Research limitations/implicationsThe study was conducted on Tanzania's railways, which incorporated challenges in the Tanzanian context. However, many challenges in the developing countries are relatively the same. Therefore, modifications can be made to adopt the developed framework and be used in other countries to cover the geographical and other challenges in particular countries.Originality/valueTanzania's railway infrastructures are somehow not fully utilised to meet the actual needs of the transportation sector. For example, one of the railway companies has a built capacity of 4 million tonnes carrying capacity per year, but the actual cargo transported by the railway is 200,000 tonnes. This comes from several challenges within the railway companies, including the quality of their services, thus leading to a need to develop a LSQ framework.