You can use MongoDB with Gemini through the official MongoDB Gemini Extension.
The MongoDB Gemini Extension provides:
The MongoDB MCP Server
Pre-built agent skills for common MongoDB tasks. See the MongoDB Agent Skills documentation for more information.
Install the MongoDB Gemini Extension
The MongoDB Gemini Extension is available in the official Gemini Extension Marketplace.
Install the MongoDB Gemini Extension from Gemini
To install the MongoDB Gemini Extension:
Start a Gemini session.
Use the
/extensions explorecommand to open the Extensions page.Search for "MongoDB", and select the official Gemini Extension for MongoDB (MCP Server + Skills).
Follow the prompts to complete the installation.
After installing the Extension, you must configure the MCP Server before using any agent skills or functionality that connects to MongoDB.
Configure the MCP Server
The MongoDB Gemini Extension bundles the MongoDB MCP Server. To configure the MCP Server, see MongoDB MCP Server Get Started.