Here are the steps you should execute
- Get the XML for webpart
- Load Limited Webpart Manager object
- Add web part.
You can find details on https://msdn.microsoft.com/en-us/library/office/hh185010(v=office.14).aspx#sectionSection1