Without loss of generality, we may assume that AB<AC and AP<AQ. We shall prove that angles BAC and PMQ have parallel sides, which trivially implies the conclusion.
First approach. Consider the tangency points E∈AC and F∈AB on the inscribed circle. Let P′ and Q′ be the intersection points of line AI with DE and DF, respectively. We intend to prove that MP′∥AC and MQ′∥AB, and afterwards that P≡P′ and Q≡Q′.
Notice that ∠P′IB=180∘−∠AIB=90∘−21∠ACB. As the triangle CED is isosceles with base DE, we have ∠P′DC=90∘−21∠ACB, so P′IB≡P′DC. Hence, the quadrilateral BDP′I is cyclic, so BP′⊥AI.
Let N be the midpoint of AB. As P′AB is a right triangle, we have P′N=NA=NB, so AP′N≡P′AN≡P′AC, which leads to NP′∥AC. Also, we have MN∥AC, since MN is a midline of triangle ABC. It follows that the points M,N,P′ are collinear and MP′∥AC. Hence DP′M≡DEC≡CDE (because CDE is isosceles), so triangle MDP′ is also isosceles, with MD=MP′.

A similar reasoning shows that MQ′∥AB and MD=MQ′. Therefore, MP′=MQ′=MD, which means that M is the circumcenter of triangle DP′Q′, which finishes our proof.
Another approach. Let R be the foot of the bisector of angle BAC. Then MP=MQ=MD=2a−(p−b)=2b−c, so
ACPM=2bb−c.
On the other hand, RC=b+cab and RM=RC−MC=b+cab−2a=2(b+c)a(b−c), so
RCRM=2bb−c=ACPM.
Since the triangles RMP and RCA have one common (obtuse) angle R, the above relation shows that triangles RMP and RCA are similar (side-side-angle), so PM∥AC.
Analogously, we have RBRM=ABMQ, and, since angles ∠BAR and ∠MQP are both acute, the side-side-angle case shows that triangles RMQ and RAB are also similar, so QM∥AB.
A third approach. Let P′ be the projection of B on line AI and S the intersection point of lines BP′ and AC. Since AP′ is both bisector and altitude of triangle ABS, it follows that P′ is the midpoint of BS. Then MP′ is the midline of triangle BCS, so MP′∥AC. Also, if Q′ is the projection of C on line AI, a similar reasoning leads to MQ′∥AB.
Next, we shall prove that MP′=MQ′=MD, which assure us that P=P′, Q=Q′ and leads to conclusion.
The quadrilateral BIP′D is inscribed in the circle of diameter AI, so ∠DP′Q′=∠IBD=21∠B. Then
∠DP′M=∠DP′Q′+∠Q′P′M=21∠B+21∠A
Since ∠P′MD=∠C, considering the triangle DP′M it results that
∠P′DM=180∘−∠P′MD−∠DP′M=180∘−∠C−21(∠A+∠B)=21(∠A+∠B)=∠DP′M,
so MP′=MD. Similarly, one can prove that MQ′=MD.