The clinical efficacy of high-frequency deep brain stimulation (DBS) for Parkinson's disease and other neuropsychiatric disorders likely depends on the modulation of neuronal rhythms in the target nuclei. This modulation could be effectively measured with local field potential (LFP) recordings during DBS. However, a technical drawback that prevents LFPs from being recorded from the DBS target nuclei during stimulation is the stimulus artefact. To solve this problem, we designed and developed 'FilterDBS', an electronic amplification system for artefact-free LFP recordings (in the frequency range 2-40 Hz) during DBS. After defining the estimated system requirements for LFP amplification and DBS artefact suppression, we tested the FilterDBS system by conducting experiments in vitro and in vivo in patients with advanced Parkinson's disease undergoing DBS of the subthalamic nucleus (STN). Under both experimental conditions, in vitro and in vivo, the FilterDBS system completely suppressed the DBS artefact without inducing significant spectral distortion. The FilterDBS device pioneers the development of an adaptive DBS system retroacted by LFPs and can be used in novel closed-loop brain-machine interface applications in patients with neurological disorders.