rename-collection
Can overwrite existing collections when using the drop target option
How to use it
rename-collection is exposed by the Mongodb Lens MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the rename-collection tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Mongodb Lens
npx -y mongodb-lensOther tools in Mongodb Lens (9)
Can perform batch deletions when configured to do so
Creates users with permissions that could enable further changes
Removes documents matching specified criteria
Permanently deletes collections and all their documents
Permanently deletes entire databases
Removes indexes (can impact query performance)
Removes database users and their access permissions
Executes multiple operations in a transaction (potential for complex changes)
Updates documents which could overwrite existing data