Tesla Motors Inc. has agreed to buy a Michigan auto parts maker, Riviera Tool LLC, for an undisclosed amount.

The Grand Rapids, Mich., company makes stamping die systems used to create body panels. Tesla confirmed the agreement to buy the company after a report in the Detroit Free Press. The company has about 100 workers, which Tesla intends to keep, according to the newspaper.

Tesla...