OBJECTIVE:The convergence of optogenetic and large-scale neural recording technologies opens enormous opportunities for studying brain function. However, compared to the widespread use of optogenetics or recordings as standalone methods, the joint use of these techniques in behaving animals is much less well developed. A simple but poorly scalable solution has been to implant conventional optical fibers together with extracellular microelectrodes. A more promising approach has been to combine microfabricated light emission sources with multielectrode arrays. However, a challenge remains in how to compactly and scalably integrate optical output and electronic readout structures on the same device. Here we took a step toward addressing this issue by using nanofabrication techniques to develop a novel implantable optoelectronic probe. APPROACH:This device contains multiple photonic grating couplers connected with waveguides for out-of-plane light emission, monolithically integrated with a microlectrode array on the same silicon substrate. To demonstrate the device's operation in vivo, we record cortical activity from awake head-restrained mice. MAIN RESULTS:We first characterize photo-stimulation effects on electrophysiological signals. We then assess the probe's ability to both optogenetically stimulate and electrically record neural firing. SIGNIFICANCE:This device relies on nanofabrication techniques to integrate optical stimulation and electrical readout functions on the same structure. Due to the device miniaturization capabilities inherent to nanofabrication, this optoelectronic probe technology can be further scaled to increase the throughput of manipulating and recording neural dynamics.