In this paper, we presented an automatic generation tool for authentication and key exchange protocols. Our tool generates a security protocol definition file from input data of requirements for the protocol. The tool constructs a new protocol that combines a pieces of security protocols as building blocks. The transaction time of the tool is less than one second and it is able to realize more rapid generation of security protocols in comparison to existing generation tools.