Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
Apache 2.0
8,598
430
  • Apple
  • Linux

insert-many

Insert multiple documents into a specified MongoDB collection. Define the database and collection, and provide an array of documents matching the syntax for MongoDB's insertMany operation.

Instructions

Insert an array of documents into a MongoDB collection

Input Schema

NameRequiredDescriptionDefault
collectionYesCollection name
databaseYesDatabase name
documentsYesThe array of documents to insert, matching the syntax of the document argument of db.collection.insertMany()

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "collection": { "description": "Collection name", "type": "string" }, "database": { "description": "Database name", "type": "string" }, "documents": { "description": "The array of documents to insert, matching the syntax of the document argument of db.collection.insertMany()", "items": { "additionalProperties": true, "description": "An individual MongoDB document", "properties": {}, "type": "object" }, "type": "array" } }, "required": [ "database", "collection", "documents" ], "type": "object" }
Install Server

Other Tools from MongoDB MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mongodb-js/mongodb-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server