MCP Server for MongoDB

Build 25.0.9440

GetDocument

Executes a pass-through query to retrieve specific documents from a MongoDB collection, allowing for advanced filtering and projection.

Input

Name Type Description
Collection String The name of the MongoDB collection from which to retrieve documents.
Query String A JSON-formatted query used to filter documents in the specified collection. Supports MongoDB query syntax.
Projection String A JSON-formatted projection specifying which fields to include or exclude in the query results.

Result Set Columns

Name Type Description
* String Returns documents that match the query criteria. The structure of the output varies depending on the collection's schema and the fields included in the projection.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9440