The growing of Brain-Computer Interface (BCI) applications is closely related to the increasing accessibility of Electroencephalography (EEG) hardware (EEG headsets), which are noninvasive, portable, wireless and often with open software. However, there is a limited number of BCI software platforms tailored to help inexperienced programmers in the development of BCI applications. Only few of them integrate BCI applications with IoT devices and services. To address these challenges, a model for visual node-based programming has been designed utilizing BrainFlow library within the Node-RED platform, which can be applied to more than 20 biosensors. New Nodes for Node-RED Library within OpenBCI Category (openBCI toolkit for Node-RED) have been developed for design of EEG-Based Brain-Machine Interface and Integration in IoT. The proposed toolkit have been implemented and validated through a case study for controlling a robotic arm by OpenBCI headset. The results from the pilot experiment demonstrated that through concentration levels classified by BrainFlow performance metrics, the control of a TinkerKit Braccio robot arm is possible.