Skip to main content
Protect My Mac — FreeNo credit card required

mdworker (Metadata Worker) is a safe macOS storage process. 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. 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.

Storage Process

What is mdworker on Mac?

Metadata Worker

Safe

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 to System Settings > Siri & Spotlight > 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 Worry

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.

How CoreLock Helps

CoreLock monitors Spotlight indexing health and can detect when mdworker processes are stuck in crash loops. It identifies the specific files or importer plugins causing problems and helps you resolve indexing issues that degrade system performance.

Download CoreLock Free

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. Malware does not typically impersonate mdworker.

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 > Siri & Spotlight > 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.

Monitor Mac Processes with CoreLock

Download CoreLock to identify suspicious processes, detect threats, and keep your Mac running smoothly.

Download CoreLock Free

Available for macOS and Windows