MongoDB with Gemini

For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

MongoDB with Gemini

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](https://www.mongodb.com/docs/agent-skills.md#std-label-agent-skills 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:

  1. Start a Gemini session.

  2. Install the extension:

bash gemini extensions install https://github.com/mongodb/agent-skills

  1. 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.