In this study, Ti2AlC foams were fabricated by direct foaming and gel‐casting using agarose as gelling agent. Slurry viscosity, determined by the agarose content (at a fixed solids loading), as well as surfactant concentration and foaming time were the key parameters employed for controlling the foaming yield, and hence the foam porosity after sintering process. Fabricated foams having total porosity in the 62.5‐84.4 vol% range were systematically characterized to determine their pore size and morphology. The effect of the foam porosity on the room‐temperature compression strength and elastic modulus was also determined. Depending on the amount of porosity, the compression strength and Young's modulus were found to be in the range of 9‐91 MPa and 7‐52 GPa, respectively. Permeability to air flow at temperatures up to 700°C was investigated. Darcian (k1) and non‐Darcian (k2) permeability coefficients displayed values in the range 0.30‐93.44 × 10−11 m2 and 0.39‐345.54 × 10−7 m, respectively. The amount of porosity is therefore a very useful microstructural parameter for tuning the mechanical and fluid dynamic properties of Ti2AlC foams.