Hello,
Hmm could you please elaborate on the whole mechanism, if it is on a chainsaw why not just the chainsaw
otherwise your going to need a motor and a motor driver if your going to use a microcontroller and /or a sprocket which fits
into the links exactly, you can probably salvage the sprocket from the chainsaw and you are also probably going to need a gearmotor.
hope this helps