The melon fly, Bactrocera cucurbitae (Coquillett), is a serious crop pest throughout the Asia Pacific sub-continent and Southeast Asia, causing damage to tree fruits, cucurbits, and related crops. Attractants for female melon flies are of particular interest as they could be used in control tactics to reduce pest levels. Previous work has shown that freshly sliced cucumbers are attractive to female melon flies, but the compounds responsible for this attraction were not identified. The objective of the present study was to create a synthetic lure for female B. cucurbitae based on its close association with Cucurbitaceae. Coupled gas chromatography-electroantennogram detection (GC-EAD) analysis of fresh and aged puréed cucumbers identified 31 compounds that were detected by females. Compounds that elicited EAD responses initially were screened as single components in glass McPhail traps in outdoor rotating olfactometer experiments. Four criteria were used to select compounds for testing in blends: a) strength of EAD response elicited; b) amount of compound present; c) relative attractiveness of a single compound; and d) compound novelty to Cucurbitaceae. Several synthetic blends attracted significant numbers of females in outdoor rotating olfactometer experiments; a nine-component blend (lure #7) was the most attractive. Field captures of female B. cucurbitae in traps baited with lure #7 were twice those in traps baited with Solulys protein bait. Besides having a female-biased attraction, this lure may have several advantages over protein baits: it can be used with a dry trap, is long lasting, and it captured low numbers of non-target species. Possible applications of this lure include trapping (for detection and/or monitoring/delimitation) and control/eradication (e.g., mass trapping, attract-and-kill, or as an attractant for existing protein insecticide bait sprays such as GF-120).