If you've lost weight significantly, it may need an evaluation.
Cyproheptadine is an antihistaminc and people have used it to gain weight but please consult your doctor before jumping to the drugs.
There are plenty of muscle gaining supplements available in the market - you can find them easily.