The existence of solutions for a class of $\mu$-Caputo fractional differential equations and an inclusion problem equipped with nonlocal $\mu$-integral boundary conditions is investigated. We use $F$-contraction, convex $F$-contraction and some consequences to achieve the desired goal. Finally, some examples are provided to illustrate the results.