E-learning has been a revolution in recent years in the training field. This, combined with the increased use of the mobile devices has caused the emergence of the m-learning. Hence new problems have appeared in the training field, such as showing correctly some learning contents in a mobile device that has restricted features or taking into account the learner’s context in the learning process, because the learner can be anywhere. Because of this, this paper proposes a new multi-agent system for adapting the learning contents to the learner’s competences, to the learner’s context and to his/her mobile device. The paper also describes in detail the prototype developed for testing the proposed design.