If you have a legal residence permit in Mexico, your employer will normally file an application for a work permit for you to the National Migration Institute. You can also file the application yourself.