MongoDB MCP Server

list_collections

List all collections in a database.

Start here to understand what collections are available before querying.

Input Schema

NameRequiredDescriptionDefault
databaseNoDatabase name (optional if default database is configured)

Input Schema (JSON Schema)

{ "properties": { "database": { "description": "Database name (optional if default database is configured)", "type": "string" } }, "type": "object" }