MongoDB provides an auto-sharding feature that allows horizontal scaling of data across multiple servers. It partitions data into chunks based on a user-defined shard key and distributes the chunks across shards. The MongoDB cluster consists of config servers to store metadata, shards to store data, and mongos instances to route queries. Sharding in MongoDB requires enabling sharding on a database and sharding collections, which partitions the data into chunks that can be balanced across shards as the data grows.