We present a new approach and tool (MRefactor) for model refactoring; we propose an extension of the UML metamodel for the assisted Model Driven Refactoring (MDR). Based on model qualities metrics and design flaws, we propose a new demarche allowing the automated detection of model refactoring opportunities and the assisted model restructuration. Precisely we focus on class and sequence diagrams.