Mild cognitive impairment (MCI) can be an early sign of Alzheimer's disease and other types of dementia detectable through gait analysis. Curve walking, which demands greater cognitive and motor skills, may be more sensitive in MCI detection than straight walking. However, few studies have compared gait performance in older adults with and without MCI in these conditions. To compare the capability of curve and straight walking tests for the detection of MCI among older adults. We employed a Kinect v.2 camera to record the gait of 55 older adults (30 healthy controls, 25 with MCI) during single-task straight and curve walking tests. We examined 50 gait markers and conducted statistical analyses to compare groups and conditions. The trail was approved with protocol No. IR.SEMUMS.REC.1398.237 by the ethics committee of Semnan University of Medical Sciences in Iran. Older adults with MCI exhibited more compromised gait performance, particularly during curve walking. Curve walking outperformed straight walking in MCI detection, with several gait markers showing significant differences between healthy controls and MCI patients. These markers encompass average velocity, cadence, temporal markers (e.g., gait cycle subphase durations), spatial markers (e.g., foot position changes during gait subphases), and spatiotemporal markers (e.g., step and stride velocities). Our study suggests curve walking as a more informative and challenging test for MCI detection among older adults, facilitating early diagnosis using non-invasive, cost-effective tools like the Kinect v.2 camera, complementing cognitive assessments in early diagnosis, and tracking MCI progression to dementia.