What is mdworker on Mac?
By Junaid, maker of Taskglass · Last reviewed
A Spotlight worker that reads files and extracts searchable details for the index.
mdworker is the metadata server worker: mds starts mdworker processes to scan and index files when a drive is mounted or files change. Each one reads files of certain types and extracts text and details for Spotlight. Several can run at once and they quit when the work is done.
- Category
- Apple service
- Made by
- Apple
- Safe to quit:
- With care
Shown in Activity Monitor as mdworker
Why is mdworker using so much CPU or memory?
- Lots of new or changed files to index
- Large documents, PDFs or mail archives
- A file that a Spotlight importer struggles with
What to do
- 1Let indexing finish
- 2Exclude folders you don't need searchable in System Settings > Spotlight > Search Privacy
- 3Restart your Mac if the same worker stays busy for hours
Safe to quit? With care.
mds simply starts a new worker; quitting doesn't stop indexing.
Is it genuine? How to check
Malware sometimes borrows the name of a real process. The real one runs from a fixed place and carries its maker's code signature, so check both.
mdworker
- Location
- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mdworker
- Part of
- CoreServices (a macOS framework)
- Signed by
- Apple (part of macOS)
- Started by
- launchd job
com.apple.mdworker.sizing(user agent, started on demand)
Check the signature in Terminal:
codesign -dv --verbose=2 "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mdworker"
The genuine file prints these lines:
Identifier=com.apple.mdworker Authority=macOS Software Signing TeamIdentifier=not set
To see where the running copy lives, run this in Terminal and compare the path:
ps -axo pid,user,comm | grep -F mdworker
In Activity Monitor: select the process, click the Info button (ⓘ), then Open Files and Ports. The first line is the program's path.
Paths and signatures checked on macOS 27.0.1 (26A434), Apple M4, November 17, 2026. Other macOS versions can differ.
How to restart mdworker
Quit it in Activity Monitor, or run killall mdworker in Terminal. Launchd starts it again the next time an app or macOS asks for it: it is the launchd job com.apple.mdworker.sizing (an agent in your user session), defined in /System/Library/LaunchAgents/com.apple.mdworker.sizing.plist.
Related guides
Related processes
- mdworker_sharedSpotlight indexing worker; modern macOS runs several at once to read files for search.
- mdsThe Spotlight metadata server: coordinates indexing so you can search your Mac instantly.
- mds_storesMaintains Spotlight's search index on disk, updating it as files change.
- corespotlightdIndexes content that apps share with Spotlight, like emails, notes and messages.
- fseventsdRecords which folders have changed so apps like Spotlight and Time Machine can react.
- mediaanalysisdAnalyses images and video for features like Live Text, Visual Look Up and photo search.
Part of the Taskglass Process Library · More Apple service processes