Read the 3rd and the 7th. The 3rd picks the family: a 3 means a major mode, a ♭3 a minor one. The 7th narrows it: over a major chord, a 7 leaves Ionian or Lydian and a ♭7 leaves Mixolydian. The root and 5th are in nearly every mode, so they rarely decide anything.
Chord types and the modes that fit them
Pick one to load it below.Show the mode's notes