This document presents a framework for developing context-aware Internet of Things (IoT) applications, focusing on the need for these applications to efficiently access and utilize context information. The proposed framework enables seamless context management through a cloud-based 'context-as-a-service' architecture, leveraging agent technology and semantic features for automation and adaptability. The framework is evaluated through a healthcare scenario for elderly individuals, emphasizing its scalability and distribution capabilities in handling context information.