Database

# MongoDB Atlas Connector

Connect to MongoDB Atlas via the Data API to find, insert, update, delete, aggregate, and count documents.

$pip install "toolsconnector[mongodb]"
16
Actions
Database
Category
Free
Apache 2.0

## All 16 Actions

Action | Description | Parameters | Returns
--- | --- | --- | ---
`aggregate` | Run an aggregation pipeline on a MongoDB collection | collection, database, pipeline | `MongoAggregateResult`
`count` | Count documents in a MongoDB collection | collection, database [filter] | `MongoCountResult`
`create_index` | Create an index on a collection | collection, database, keys | `dict`
`delete_many ⚠` | Delete multiple documents matching a filter | collection, database, filter | `MongoDeleteResult`
`delete_one ⚠` | Delete a single document from a MongoDB collection | collection, database, filter | `MongoDeleteResult`
`distinct` | Get distinct values for a field in a MongoDB collection | collection, database, field [filter] | `list`
`drop_collection ⚠` | Drop a collection from a database | collection, database | `bool`
`find` | Find documents in a MongoDB collection | collection, database [filter, sort, limit] | `PaginatedList[MongoDocument]`
`find_one` | Find a single document in a MongoDB collection | collection, database, filter | `MongoDocument`
`insert_many` | Insert multiple documents into a MongoDB collection | collection, database, documents | `MongoInsertResult`
`insert_one` | Insert a single document into a MongoDB collection | collection, database, document | `MongoInsertResult`
`list_collections` | List collections in a MongoDB database | database | `list`
`list_databases` | List databases available in the MongoDB cluster | — | `list`
`replace_one` | Replace a single document by filter | collection, database, filter, replacement | `MongoUpdateResult`
`update_many` | Update multiple documents matching a filter | collection, database, filter, update | `MongoUpdateResult`
`update_one` | Update a single document in a MongoDB collection | collection, database, filter, update | `MongoUpdateResult`

Open Interactive Docs & Playground →

Full schema explorer, code generation, and live API testing