create-collection
Create a new MongoDB collection in a specified database, automatically generating the database if it doesn’t exist. Simplify database management with this MCP Server tool.
Instructions
Creates a new collection in a database. If the database doesn't exist, it will be created automatically.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
database | Yes | Database name |
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"
}
},
"required": [
"database",
"collection"
],
"type": "object"
}