Synaptic connectivity and molecular composition provide a blueprint for information processing in neural circuits. Detailed structural analysis of neural circuits requires nanometer resolution, which can be obtained with serial-section electron microscopy. However, this technique remains challenging for reconstructing molecularly defined synapses. We used a genetically encoded synaptic marker for electron microscopy (GESEM) based on intra-vesicular generation of electron-dense labeling in axonal boutons. This approach allowed the identification of synapses from Cre recombinase-expressing or GAL4-expressing neurons in the mouse and fly with excellent preservation of ultrastructure. We applied this tool to visualize long-range connectivity of AGRP and POMC neurons in the mouse, two molecularly defined hypothalamic populations that are important for feeding behavior. Combining selective ultrastructural reconstruction of neuropil with functional and viral circuit mapping, we characterized some basic features of circuit organization for axon projections of these cell types. Our findings demonstrate that GESEM labeling enables long-range connectomics with molecularly defined cell types.