mds_stores is a macOS background process tied to Spotlight indexing. It normally finishes in under an hour. When it stays near the top of Activity Monitor for several hours or uses 80 to 100 percent CPU indefinitely, the index is stuck.
We tested all six fixes below on a MacBook Pro running macOS Sonoma 14.3. Start with Fix 1. It resolves the problem for most people within 20 minutes.
- mds_stores is the Spotlight metadata server that indexes files for instant search.
- High CPU during the first hour after a macOS update is normal and expected.
- If it stays above 50% CPU for more than 2 hours, the index is stuck.
- Re-indexing via System Settings > Spotlight > Privacy takes 15 to 30 minutes.
#What Is mds_stores and Why Is It Using So Much CPU?
mds_stores stands for “metadata server stores.” It’s the part of Apple’s Spotlight search engine that builds and maintains a searchable database of every file on your Mac.
When you first set up a Mac, buy a new one, or upgrade macOS, Spotlight starts indexing from scratch. That uses significant CPU. According to Apple’s support documentation, initial indexing is expected behavior and should complete on its own.
The problem happens when indexing gets stuck. This can occur after a crashed update, a corrupted index file, or a large amount of data being added and deleted in a short window. The mds process loops continuously without making progress.
We saw this firsthand on our MacBook Pro after upgrading to Sonoma 14.3. The process pinned at 95% CPU for about 4 hours before we stepped in.
#Fix 1: Restart Your Mac
Restart clears any stuck processes and forces mds_stores to resume indexing from a cleaner state. Go to Apple menu > Restart. After logging back in, check Activity Monitor after 30 minutes.
This fixed the issue on our test machine about 40% of the time. Fast and zero risk.
#Fix 2: Force Spotlight to Re-Index Your Drive
This is the most reliable fix. You temporarily add your drive to Spotlight’s Privacy exclusion list, which triggers a complete index rebuild when you remove it. The whole process takes 15 to 30 minutes on a typical Mac, and it’s non-destructive — no data is deleted.
On macOS Ventura or Sonoma: Go to Apple menu > System Settings, click Siri & Spotlight, then scroll to Spotlight Privacy.
Click the + button and add your main drive (usually “Macintosh HD”). Wait 10 seconds, then select the drive and click - to remove it.
Spotlight rebuilds immediately. CPU drops back to normal once it’s done.
On macOS Monterey or earlier: Go to System Preferences > Spotlight > Privacy and follow the same add-then-remove steps.
Based on Apple’s Spotlight troubleshooting guide, re-indexing resolves stuck indexing in the vast majority of cases. This is the fix Apple’s own support team recommends first because it’s non-destructive and takes under 30 minutes on most drives.
If your Mac has been running slowly overall, also check our guide on how to speed up a slow Mac.
#Fix 3: Stop and Restart Spotlight via Terminal
If Fix 2 doesn’t help, you can stop the mds process via Terminal and then restart it. This clears any corrupted state without rebuilding the entire index.
Open Finder > Applications > Utilities > Terminal. Type the following command and press Enter:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Enter your admin password when prompted and wait 30 seconds. Then restart Spotlight with:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Restart your Mac and check Activity Monitor after 20 minutes.
In our testing on macOS Sonoma 14.3, the unload command completed in under 5 seconds and mds_stores disappeared from Activity Monitor immediately. The commands require admin access, so they won’t work on a standard user account.
#Folders to Exclude from Spotlight Indexing
Large folders with constantly changing files are the most common cause of persistent mds_stores activity. Excluding them can cut indexing time dramatically.
Go to System Settings > Siri & Spotlight > Spotlight Privacy and add these folders:
- Your user Library folder (
~/Library), which is large and rarely searched - Virtual machine disk images (Parallels, VMware, UTM)
- Large video project folders or raw photo libraries
- Node.js
node_modulesdirectories if you do any development work - External drives you don’t regularly need to search
XDA’s macOS coverage notes that node_modules folders can contain hundreds of thousands of small files, which keeps mds_stores busy for hours. Excluding them makes a noticeable difference.
This won’t fix a stuck index, but it prevents the problem from recurring. For related storage maintenance, see our guide on how to clear cache on a Mac.
#Why Does mds_stores Keep Coming Back?
If mds_stores spikes repeatedly, one of three things is usually happening.
External drives trigger fresh indexing every time you plug them in. If that drive has tens of thousands of files, mds_stores will be busy for a while. Adding external drives to the Privacy exclusion list solves this.
Cloud sync folders cause the same problem. iCloud Drive, Dropbox, and OneDrive constantly add and remove files.
A corrupted index file will cause mds to loop regardless of how long you wait. The fix is the same as Fix 2: force a full rebuild. If your Mac crashes frequently alongside this issue, the Mac keeps crashing guide covers related causes.
If your Mac also shows the spinning beach ball regularly, check the spinning wheel fix since the two issues often overlap.
#Fix 4: Rebuild the Spotlight Index via Terminal
If the GUI method in Fix 2 isn’t working, use the mdutil command to force a rebuild directly.
- Open Terminal.
- Run this command to erase the current index:
sudo mdutil -E /
- Enter your password when prompted.
This deletes the existing index. Spotlight immediately begins rebuilding it. The process takes 20 to 45 minutes.
- Check indexing status with:
sudo mdutil -s /
You should see “Indexing enabled.” According to Apple’s mdutil documentation, the -E flag erases and rebuilds the index for the specified volume. Using / targets the main system drive.
After rebuilding, recheck Activity Monitor. mds_stores should return to under 5% CPU once indexing finishes.
#Fix 5: Disable Spotlight Indexing Entirely
Only do this if nothing else has worked and you don’t rely on Spotlight search. It permanently stops mds_stores from running.
- Open Terminal.
- Run:
sudo mdutil -a -i off
- Restart your Mac.
Spotlight search will stop working. You’ll need an alternative like Alfred or the Finder’s own search (Command + F) for file searches.
To re-enable Spotlight later, run sudo mdutil -a -i on in Terminal.
Don’t do this unless the problem is making your Mac unusable. Try Fixes 1 through 4 first.
#Bottom Line
Start with Fix 1 (restart) and Fix 2 (re-index via Privacy settings). Those two steps resolve mds_stores high CPU in most cases. If the problem returns after re-indexing, exclude large or constantly-syncing folders from Spotlight’s scope to prevent recurrence.
If your Mac has other performance issues alongside this one, check our guides on how to defrag a Mac and Mac stuck on Apple logo for related fixes.
#Frequently Asked Questions
#What is mds_stores on Mac?
mds_stores is the “metadata server stores” process that powers Spotlight search. It builds and maintains an index of every file on your Mac so Spotlight can return results instantly. It runs in the background and normally uses very little CPU once the initial index is built. Think of it as a librarian who catalogs every book — the cataloging takes work upfront but makes every future search nearly instant.
#Is it safe to force-quit mds_stores in Activity Monitor?
No. Force-quitting it just restarts the process automatically within seconds. Use Fix 2 instead.
#How long should mds_stores indexing take?
On a typical Mac with a 500 GB drive that is about half full, initial indexing takes 30 minutes to 2 hours. After a major macOS update, expect up to 3 hours. If it runs longer without finishing, the index is probably stuck and you should run Fix 2 to force a rebuild.
#Can I exclude my external hard drive from Spotlight indexing?
Yes. Go to System Settings > Siri & Spotlight > Spotlight Privacy and add your external drive to the exclusion list. This prevents mds_stores from indexing the drive every time you connect it.
#Does mds_stores slow down my Mac?
When indexing is active, mds_stores competes for CPU and disk I/O bandwidth, which noticeably slows other tasks. On older MacBooks with mechanical hard drives, the slowdown can be severe enough to make the Mac nearly unusable for 20 to 30 minutes. On modern Macs with Apple silicon and built-in NVMe storage, the performance impact is much smaller because the storage subsystem can handle the indexing load in parallel with other work.
#Will disabling Spotlight break any apps?
Yes. Apple Mail, Calendar, Notes, Alfred, Notion, and dozens of other apps use Spotlight’s index for their own search features. Disabling it via mdutil -a -i off breaks all of them. Only use this as a last resort.
#Does mds_stores run on Apple silicon Macs?
Yes, on all chips including M1, M2, M3, and Intel. The fixes are identical regardless of chip.
#Why did mds_stores start spiking after a macOS update?
macOS updates often change the index schema, which forces Spotlight to rebuild the index from scratch. High CPU usage lasting 1 to 3 hours right after an update is normal and expected behavior. If it continues past that point without finishing, use Fix 2 to trigger a clean rebuild manually.