MongoDB
NoSQL document database — query, insert, update, and delete documents via the Atlas Data API
Tools
| Name | Description |
|---|---|
find_documentsFind multiple documents matching a filter in a collection | Find multiple documents matching a filter in a collection |
find_oneFind a single document matching a filter in a collection | Find a single document matching a filter in a collection |
insert_oneInsert a single document into a collection | Insert a single document into a collection |
insert_manyInsert multiple documents into a collection | Insert multiple documents into a collection |
update_oneUpdate a single document matching a filter | Update a single document matching a filter |
update_manyUpdate all documents matching a filter | Update all documents matching a filter |
delete_oneDelete a single document matching a filter | Delete a single document matching a filter |
delete_manyDelete all documents matching a filter | Delete all documents matching a filter |
aggregateRun an aggregation pipeline on a collection | Run an aggregation pipeline on a collection |
custom_api_callMake a custom API call to the MongoDB Atlas Data API | Make a custom API call to the MongoDB Atlas Data API |
Quick Start
import { WeavzClient } from '@weavz-io/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute('mongodb', 'find_documents', {
workspaceId: '550e8400-e29b-41d4-a716-446655440000',
integrationAlias: 'mongodb',
input: { /* ... */ },
})Related Integrations
Works well with
Frequently Asked Questions
How do I connect MongoDB to my app?
Use Weavz Hosted Connect for Custom authentication. Install the SDK, create a connection through the connect portal or API, then execute tools programmatically.
What tools does MongoDB support?
MongoDB supports 10 tools including Find Documents, Find One Document, Insert One Document, Insert Many Documents, Update One Document, and more.
Can I use MongoDB with AI agents?
Yes. Add MongoDB to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.
How do I connect MongoDB to ChatGPT or Claude?
Open the Weavz connector setup, sign in, choose a workspace, and add MongoDB as an approved app. ChatGPT, Claude, and other remote MCP clients can then call the scoped MongoDB tools exposed by that workspace.
Does MongoDB work with Claude Code, Cursor, Codex, and local agents?
Yes. Remote and local MCP clients can connect to a Weavz MCP endpoint for the workspace. Local coding agents can also use the Weavz CLI to inspect apps, discover actions, run approved MongoDB work, and execute Code Mode workflows from a terminal.
What can I ask an AI agent to do with MongoDB?
MongoDB exposes 10 tools, including Find Documents, Find One Document, Insert One Document, Insert Many Documents, Update One Document, and more. Use Weavz to keep credentials scoped, require approval for sensitive work, and audit what the agent did.
Can MongoDB be used in stateful agent workflows?
Yes. Agents can combine MongoDB tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.
What authentication does MongoDB use?
MongoDB uses Custom. Weavz stores credentials securely and uses them for authorized action execution.
How much does the MongoDB integration cost?
The MongoDB integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.
Connect MongoDB in minutes
Get 20,000 free action executions every month. No credit card required.