mongodb_find
Query and retrieve documents from a MongoDB collection using a customizable filter, sorting, and pagination. Ideal for extracting specific data from MongoDB databases via the MCP server.
Instructions
Find documents in a MongoDB collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
filter | No | MongoDB query filter | |
limit | No | Maximum number of documents to return | |
skip | No | Number of documents to skip | |
sort | No | Sort criteria |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "Collection name",
"type": "string"
},
"filter": {
"description": "MongoDB query filter",
"optional": true,
"type": "object"
},
"limit": {
"description": "Maximum number of documents to return",
"optional": true,
"type": "number"
},
"skip": {
"description": "Number of documents to skip",
"optional": true,
"type": "number"
},
"sort": {
"description": "Sort criteria",
"optional": true,
"type": "object"
}
},
"required": [
"collection"
],
"type": "object"
}