find
Run a find query on MongoDB collections to retrieve documents based on specified filters, projections, sorting, and limit criteria. Integrates with MCP server for streamlined database interactions.
Instructions
Run a find query against a MongoDB collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
database | Yes | Database name | |
filter | No | The query filter, matching the syntax of the query argument of db.collection.find() | |
limit | No | The maximum number of documents to return | |
projection | No | The projection, matching the syntax of the projection argument of db.collection.find() | |
sort | No | A document, describing the sort order, matching the syntax of the sort argument of cursor.sort(). The keys of the object are the fields to sort on, while the values are the sort directions (1 for ascending, -1 for descending). |