Catalysis of the reaction: a medium-chain fatty acid + ATP + CoA = a medium-chain fatty acyl-CoA + AMP + diphosphate. A medium-chain fatty acid has an aliphatic tail containing 6 to 12 carbons.
medium-chain fatty-acid-CoA ligase activity