Tuning the parameters of controllers to attain the best performance is a challenging task in designing effective closed-loop neuromodulation systems. In this paper, we present a distributed architecture for automated tuning and adaptation of closed-loop neuromodulation control systems. We use this approach for the automated parameter tuning of a Proportional-Integral (PI) neuromodulation controller using Bayesian optimization. We use a biophysically-grounded mean-field model of neural populations under electrical stimulation as a simulation environment for testing and prototyping the proposed framework and characterizing its performance. Our results demonstrate the feasibility of using Bayesian optimization for performance-based automated tuning of a PI controller in closed-loop set-point neuromodulation control tasks.