You want to implement MPC in any microcontroller, that's what I understood then this is possible and in this context I suggest you to take a look at links and attached files in topic.
- A Microcontroller Implementation of Model Predictive Control - waset