Skip to contentBlack FridayTaskglass is $9 instead of $14Get the deal →

What is mdworker on Mac?

By Junaid, maker of Taskglass · Last reviewed

Summarize this page with

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

  1. 1Let indexing finish
  2. 2Exclude folders you don't need searchable in System Settings > Spotlight > Search Privacy
  3. 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

Part of the Taskglass Process Library · More Apple service processes

See this process live in Taskglass.

Taskglass shows what mdworker is doing on your Mac right now, groups it under the app that started it, and checks its code signature for you. It explains 224 processes this way.

See how Taskglass works →How it compares with Activity Monitor →