At San Francisco’s new Cafe X, the barista doesn’t make small talk or sport a hip mustache. But its industrial-strength claw sure knows espresso drinks.

Cafe X is a new breed of coffee shop pushing the boundaries of automation both to make food and to serve it.

It is mesmerizing efficiency. Tap your desired beverage, flavor and artisanal bean...