We propose a mobile agent fixed-direction one step routing algorithm based on modeling WSN node data collection task. This algorithm divides the data collection task into three stages to finish and they are searching start node for MA data collection, data collection and returning the sink node. MA determines the next hop node according to the surrounding node information sensed and current move direction information. Simulation result shows that the proposed algorithm can ensure that all nodes information in WSN is collected. Then, it can effectively reduce the total number of hops for information transferring and the node total energy consumption compared to LGF algorithm in C\S mode