Mobile agents are software nomads that act as your personal representative, working autonomously through networks. They are able to visit network nodes directly using available computing power and are not limited by platform. This emerging field is now poised to become a cornerstone for new Mobile -based ubiquitous computing environments. Mobile agents provide a new abstraction for deploying functionality over the existing. In this paper, we present an architecture that allows currently available mobile servers to become capable of sending and receiving agents in an easy way. We design and implement the MASS (Mobile Agent Systems for Smart applications with CBD). By using this approach, existing mobile infrastructure can be maintained, while gaining a whole new potential by being able to make use of mobility agent technology. Our approach involves wrapping the components inside a Java servlet that can be included in any mobile server supporting the Servlet Specification. This servlet enables the servers to receive and send agents that can query local information, and also enables the agents to behave as servlets themselves. We currently have used the framework with several existing commercial mobile servers, inclusively having the security mechanisms of the framework correctly running and integrated with the security architecture of the smart mobile devices.