Our Lord Jesus contrasted His "mother" and His "brothers" against those who do the will of the Father. If you take the first comparison, "Who is My mother...but those who do the will of My Father." than Christ is pointing out the importance of spiritual ties verses physical ties. Would you agree?
Yes, I would agree that Christ stresses the importance of obeying the Gospel over the physical relationship, both in this verse, and in "Yea, rather blessed are those who have custody of the Word" (quote from memory). But neither passage is a putdown to Mary or James the Less, who were His true disciples as well as family members.