Mdworker is short for metadata server worker. And mds is short for metadata server. They are processes used by Spotlight to index your Mac. So, for example, if you copied lots of data to your Mac from somewhere else, you would notice mds and mdworker running in Activity Monitor.