data
MongoDB Atlas MCP, CLI, and Lua Integration for AI Agents
MongoDB Atlas integration docs for AI agents: MCP gateway setup, MongoDB Atlas CLI commands, Lua API reference, credentials, and function schemas.MongoDB Atlas for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
mongodb.mongodb_find | Read read | 7 | Query documents from a MongoDB Atlas collection. Supports filtering, projection, sorting, pagination (limit/skip). Returns an array of matching documents. |
mongodb.mongodb_find_one | Read read | 4 | Find a single document in a MongoDB Atlas collection. Returns the first matching document or null if no match is found. |
mongodb.mongodb_insert_one | Write write | 3 | Insert a single document into a MongoDB Atlas collection. Returns the inserted document ID. |
mongodb.mongodb_insert_many | Write write | 3 | Insert multiple documents into a MongoDB Atlas collection in a single operation. Returns the inserted document IDs. |
mongodb.mongodb_update_one | Write write | 4 | Update a single document in a MongoDB Atlas collection. Uses a filter to match the document and an update operations object (e.g., {"$set": {"field": "value"}}). |
mongodb.mongodb_update_many | Write write | 4 | Update multiple documents in a MongoDB Atlas collection. Uses a filter to match documents and an update operations object such as {"$set": {"status": "active"}}. |
mongodb.mongodb_delete_one | Write write | 3 | Delete a single document from a MongoDB Atlas collection. Uses a filter to match the document to delete. |
mongodb.mongodb_delete_many | Write write | 3 | Delete multiple documents from a MongoDB Atlas collection. Use a precise filter; an empty filter can delete every document in the collection. |
mongodb.mongodb_aggregate | Read read | 3 | Run an aggregation pipeline on a MongoDB Atlas collection. Supports all pipeline stages ($match, $group, $sort, $project, $limit, $lookup, etc.). |