What is mds on Mac? The Spotlight metadata server
Safe to quit? NoMade by Applemds
mds is Spotlight's metadata server, part of macOS. What it does, how to check the real one, and what to do when mds keeps your CPU busy.
mds is the metadata server, the part of macOS that runs Spotlight. It is made by Apple, it is not a virus, and it runs all the time so that searches in Spotlight, Finder and Mail come back instantly.
When mds is busy, Spotlight is indexing. That is usually temporary and caused by something that changed a lot of files.
What mds does
Apple's manual page puts it simply: mds is the metadata server, and it serves all clients of the metadata APIs, including Spotlight. In practice it is the co-ordinator of the whole system:
- It learns when files are created, changed or deleted.
- It hands those files to worker processes, mdworker_shared, which read them and pull out text and details.
- It passes the results to mds_stores, which keeps the index on disk.
- It answers searches from Spotlight, Finder, Mail and any app that asks.
The manual page also notes that mds has no settings and that you should not run it by hand. macOS starts it at boot and it runs as root.
Is mds a virus?
No, provided it is the real one. Its file is:
/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds
On this Mac, Support is a shortcut to Versions/A/Support, so you may see either form. To see the path of the running copy, run this in Terminal. It only reads:
ps -Ao pid,comm | grep -E "/mds$"
To check the signature:
codesign -dvv /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds 2>&1 | grep -E "Identifier|Authority"
The genuine file shows:
Identifier=com.apple.mds
Authority=Software Signing
Authority=Apple Code Signing Certification Authority
Authority=Apple Root CA
Software Signing is Apple's own certificate for macOS components. If a process called mds runs from your home folder or another unusual place, treat it as suspicious and work through the guide to checking a Mac for malware.
Why mds uses high CPU
mds works hardest when there is a backlog of files to index:
- After a macOS update, when Spotlight may refresh its index.
- After a big change, such as copying a library of files, unzipping archives or restoring from Time Machine.
- When a drive is connected, since external disks are indexed unless you exclude them.
- When a folder changes all day, for example build output, a virtual machine image, a sync folder that keeps updating, or an app that writes logs constantly.
Each change creates work for mds and its workers, so you will often see mds, mds_stores and several mdworker_shared processes busy at the same time.
What is normal
mds sits near zero most of the time and jumps briefly when you save or download files. A few hours of heavy activity after an update or a large copy is expected. Activity that never ends, day after day, points to a folder that keeps changing or to a damaged index.
How to fix high mds CPU
- Give it time. Leave the Mac awake and on power so indexing can finish.
- Check indexing status. This only reads:
mdutil -s /
It reports whether indexing is enabled for your startup disk.
- Restart the Mac. Choose Apple menu > Restart. This clears a stuck indexing run.
- Exclude folders you never search. Go to System Settings > Spotlight (Siri & Spotlight on some versions) and use Search Privacy (Spotlight Privacy on some versions) to add build folders, virtual machines or backup drives. Apple explains this in preventing Spotlight searches in files.
- Rebuild the index if it never settles or search results are wrong. Follow Apple's steps in About Spotlight indexing: add the disk to the privacy list, wait a few seconds, then remove it. Expect a busy spell while Spotlight starts over.
- Keep macOS up to date. System Settings > General > Software Update.
What not to do
- Do not force quit mds repeatedly. macOS restarts it and the work begins again.
- Do not delete Spotlight's index folder or files in /System. Use Apple's rebuild method.
- Do not turn off System Integrity Protection. SIP protects system folders and has nothing to do with Spotlight's speed.
- Do not switch indexing off for good. Search in Finder and Mail depends on it.
How to see mds in Activity Monitor
- Open Activity Monitor (Applications > Utilities).
- Choose View > All Processes so system processes are included.
- Type mds in the search field. You will see mds, mds_stores and the workers.
- Sort the CPU tab by % CPU to see which is busiest, and check the Disk tab for how much each reads and writes.
- Double-click mds and open Open Files and Ports to see its program file and the files it has open.
How Headroom helps
mds is a macOS process, so Headroom's Speed screen leaves it out on purpose and shows your own apps instead, with helper processes counted as part of their app. You still see what matters for a busy Mac: live CPU, memory pressure, whether the chip is running cool, warm or hot, and a Quit button for each heavy app. The Speed screen is free. If a build folder keeps Spotlight busy, the free Clean scan can show it, and the $19 licence clears it.
Download Headroom, read about the performance monitor, or see the price.
Questions
What does mds stand for on a Mac?
Apple's manual page calls mds the metadata server. It serves every app that uses the metadata system, including Spotlight search, and hands indexing work to its worker processes.
Is mds a virus?
No. mds is part of macOS. The real one runs as root from inside /System/Library/Frameworks/CoreServices.framework and is signed by Apple.
Why is mds using a lot of CPU?
It is co-ordinating Spotlight indexing, usually after a macOS update, a large copy, a new drive or a folder that changes constantly. It normally settles once indexing catches up.
Can I quit mds?
There is no point. macOS starts it again straight away and indexing carries on. Let it finish, restart the Mac, or exclude busy folders from Spotlight instead.