A research topic of growing interest is the convergence between Collaborative Systems and Ubiquitous Computing, where context awareness is becoming a tool for enhancing collaboration processes. The application of Ubiquitous Computing concepts in the improvement of collaboration strategies created a research front called Ubiquitous Collaboration. This article proposes a framework to aid the development of collaborative applications for ubiquitous environments, called MaPS. MaPS works at one relevant stage of the collaboration. It uses context information and user profiles to improve the search for peers and the selection of communication channels. The article proposes the framework, its requirements and its architecture. Moreover, we describe a prototype and two applications which were developed with it. The framework was evaluated considering software development, based on the experience got in the implementation of the applications and aspects of functionalities. It was made through a scenario involving active participants. The results of both evaluations show the potential for using MaPS.