Skip to main content
Download — FreeNo credit card required
Storage Process

What is mdworker on Mac?

mdworker is the Spotlight helper that opens files and pulls out their metadata for the search index; several copies at once are normal, and it's part of macOS. If copies keep crashing or indexing never finishes, a damaged file or a third-party Spotlight importer is the usual cause.

Last reviewed · 2 sources

SafeMetadata Worker

mdworker on a real Mac

One Mac, macOS 26.5 (25F71) on Apple silicon, read with ps and codesign on October 29, 2026

Path/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mdworker
Runs asyour user account and _spotlight, a macOS system account
Signed byApple (Software Signing), identifier com.apple.mdworker

What mdworker does

mdworker is a helper process spawned by the Spotlight metadata server (mds). While mds_stores manages the search index database, mdworker processes handle the actual work of reading individual files and extracting their metadata — file type, content text, author, dates, dimensions, and other attributes. Multiple mdworker instances run in parallel to index files faster.

Common Issues

Multiple mdworker processes consuming high CPU simultaneously during indexing

mdworker_shared crashing repeatedly on specific file types

Disk I/O saturation from reading many files during a reindex

Memory pressure from many mdworker instances running in parallel

How to Fix

  1. Wait for indexing to complete

    After a macOS update, large file copy, or drive connection, mdworker processes will be busy extracting metadata. This is temporary. Check indexing progress with 'mdutil -s /' in Terminal — once complete, mdworker usage will drop to near zero.

  2. Identify problematic files

    If mdworker_shared crashes repeatedly, open Console.app and filter for 'mdworker.' The crash logs will reference the specific Spotlight importer plugin and often the file path that triggered the crash, letting you exclude that file or folder.

  3. Exclude large directories from Spotlight

    Developer build directories (node_modules, .git, build/), virtual machines, and large media libraries cause excessive mdworker activity. Add them in System Settings > Spotlight (Siri & Spotlight on older macOS) > Search Privacy (Spotlight Privacy) to skip indexing.

  4. Remove broken Spotlight plugins

    Third-party Spotlight importer plugins in /Library/Spotlight/ can cause mdworker crashes. Move any non-Apple .mdimporter bundles out of that directory and restart to see if the crashes resolve.

When to look closer

Multiple mdworker processes running after file changes or updates is perfectly normal — that's how Spotlight indexes efficiently. Be concerned if mdworker processes keep crashing and respawning continuously without the index ever completing, which indicates a corrupt file or broken importer plugin.

Frequently Asked Questions

Why are there so many mdworker processes on my Mac?

Spotlight spawns multiple mdworker processes to index files in parallel, which speeds up the indexing process. During a reindex, you may see 4-8 or more mdworker instances. This is normal behavior that allows Spotlight to utilize multiple CPU cores. The number of workers scales with your CPU core count and the volume of files to index.

Is mdworker a virus?

No. mdworker is a legitimate Apple system process that is part of the Spotlight search infrastructure. It extracts metadata from files so they can appear in Spotlight search results. It's code-signed by Apple and located in the CoreServices framework.

How do I stop mdworker from using CPU?

The most effective approach is to exclude folders that don't need indexing from Spotlight. Go to System Settings > Spotlight (Siri & Spotlight on older macOS), click Search Privacy (Spotlight Privacy), and add large directories like developer build folders, virtual machines, or media libraries. You can also temporarily pause indexing with 'sudo mdutil -i off /' though this disables Spotlight search.

Check what's running on your Mac

CoreLock's scan of running apps, network, permissions, startup items, AI agents and Downloads is free, with no account.

Download CoreLock Free

Apple silicon build 2.0.7 · Intel Mac?

Send the link to my Mac

For your Mac, not this phone ·

Not sure what is running on your Mac?

Count which apps can record your screen, use your mic or camera, or read your files, and get a free 0–100 estimate in your browser.

Estimate your Security Score

Free · Calculated in your browser