A modulation recognition algorithm based on a hybrid attention prototype network is proposed to address the modulation recognition problem of communication signals with very few labeled samples. Integrating the ideas of meta learning and metric learning, the signal is mapped to a new feature metric space through a feature extraction module within the prototype network framework, and the modulation style of the query signal is determined by comparing the distances between various prototypes and the query signal in this space. A feature extraction module was designed based on the temporal characteristics of the communication signal IQ component, which is cascaded by a convolutional neural network and a long and short term memory network. The convolutional attention mechanism was introduced to enhance the weight of key features; Adopting an Episode based training strategy, the algorithm can be generalized to new signal recognition tasks. The simulation results show that the proposed algorithm has an average recognition rate of 85.68% when there are only 5 labeled samples (5-way 5-shot) for each type of signal.