Mashle: Magic and Muscles is a clear parody of many of the played-out tropes in magic-themed anime series. However, the most obvious inspiration for many of Mashle's running gags isn't actually an anime. Instead, it has more in common with the west's most famous wizard: Harry Potter.
Source:https://www.cbr.com/mashle-magic-and-muscles-hp-references/