The present disclosure relates to a modular system for deep brain stimulation (DBS) and electrocorticography (ECoG). The system may have an implantable neuromodulator for generating electrical stimulation signals adapted to be applied to a desired region of a brain via an attached electrode array. An aggregator module may be used for collecting and aggregating electrical signals and transmitting the electrical signals to the neuromodulator. A control module may be used which is in communication with the aggregator module for controlling generation of the electrical signals and transmitting the electrical signals to the aggregator.