In the title compound, C21H13N3O2, the indole and pyridine rings are planar. The pyridine ring is in an antiperiplanar (−ap) orientation with the indole ring system and an antiperiplanar (+ap) orientation with the hydroxyphenyl ring. An intramolecular O—H...O hydrogen bond stabilizes the molecular structure. In the crystal, N—H...N hydrogen bonds involving the indole NH group and the cyanide nitrogen atom lead to the formation of a two-dimensional supramolecular network lying parallel to (011).