In the crystal structure of the title compound, C16H13N5O2·CH4O, there are intra- and intermolecular hydrogen bonds. Molecules form dimers, which are extended to afford a ribbon structure. These ribbons are further packed, forming a three-dimensional grid structure.