In Wireless Sensor networks (WSNs), most existing routing protocols do not consider a node mobility problem, because nodes in sensor network are generally assumed to be static.The network may get partitioned, due to the mobility of some nodes will cause other nodes to lose their connection with the network. Network partitioning poses significant challenges to the provisioning of continuous data streaming services in WSNs. In this paper, we propose a routing scheme which supports node Mobility and Energy-Efficient based on Directed Diffusion (MEDD) for WSNs. In MEDD, we design a gradient model which considers energy consumption balance and real-time requirement. Based on this, we mainly propose a mechanism which makes node be able to localize the gradient reconfiguration whenever its movement occurs. It ensures the robustness of network transmission. Simulation results show that our proposed method decreases the network overhead and prolongs the lifetime of network efficiently.