Searching your Mongodb through a Chrome Extention


I am trying to create a chrome extension that can search to see if a URL exists in any of my collections. I understand I need to have a REST api on my server and make an ajax call from my client but I am confused on how to filter the results to the particular URL. If anyone has any resources I can read on how I would go about doing this I would appreciate it.