Manual:$wgMaxTocLevel

Details
Maximum indent level of the table of contents.