> This page location: /docs.md > /docs/tools-and-connectors.md

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

# Install and Use MongoDB Agent Plugins

MongoDB agent plugins add MongoDB database exploration capabilities to AI clients through a client's plugin marketplace. Installing a plugin installs both the MongoDB MCP Server and MongoDB agent skills together.

Agent skills are pre-built, reusable instructions that help AI coding agents perform common MongoDB tasks efficiently. These skills enable agents to help you build applications faster and with fewer errors. To learn more, see [MongoDB Agent Skills.](https://www.mongodb.com/docs/agent-skills.md#std-label-agent-skills)

## Choose a Plugin

Two MongoDB plugins are available across different AI clients, the MongoDB Atlas (Managed MCP) Plugin and the MongoDB Local Plugin. These plugins fit different use cases. Use the following table to compare each plugin and decide which best fits your use case.

|  | MongoDB Atlas (Managed MCP) Plugin | MongoDB Local Plugin |
| --- | --- | --- |
| MCP server | [MongoDB Atlas Managed MCP Server](https://www.mongodb.com/docs/mcp-server/overview.md#std-label-atlas-managed-mcp) | [Local MCP for MongoDB MCP Server](https://www.mongodb.com/docs/mcp-server/overview.md#std-label-self-managed-mcp) |
| Hosting | MongoDB hosts and manages the MCP server in Atlas. You don't deploy, upgrade, or maintain any MCP infrastructure. | You run, host, and maintain the MCP server yourself, including handling server upgrades. |
| Supported deployments | MongoDB Atlas clusters | Any MongoDB deployment, including: MongoDB Atlas; MongoDB Atlas Local; MongoDB Community Edition; MongoDB Enterprise Advanced |
| Authentication | You authorize the AI client through an OAuth flow tied to your Atlas identity. Token refresh is automatic, and you don't manage connection strings, secrets, or certificates. | You directly manage the credentials that the MCP server uses to connect to your deployment. |
| Setup after install | Authenticate to Atlas and authorize the requested permissions. | Run the `/mongodb-mcp-setup` skill and follow the prompts. |

### Supported Clients

The following table shows which AI clients support each plugin:

| AI Client | MongoDB Atlas (Managed MCP) Plugin | MongoDB Local Plugin |
| --- | --- | --- |
| Claude Code |  | |
| Cursor |  | |
| Grok Build |  | |
| Codex |  | |
| ChatGPT |  | |
| Devin |  | |

For clients that don't support a plugin, you can configure the MongoDB MCP Server manually. To learn how, see [Get Started with the MongoDB MCP Server.](https://www.mongodb.com/docs/mcp-server/get-started.md#std-label-mcp-get-started)

## Install a Plugin

The following instructions show how to install a plugin in each [supported client.](https://www.mongodb.com/docs/agent-plugins.md#std-label-mcp-plugin-supported-clients)

Select your client and plugin type from the dropdown below.

To install the MongoDB Atlas (Managed MCP) Plugin, open a Claude Code CLI session.

Run:

```none
/plugin install mongodb-atlas@claude-plugins-official
```

Follow the prompts to complete the installation.

To install the MongoDB Local Plugin, open a Claude Code CLI session.

Run:

```none
/plugin install mongodb@claude-plugins-official
```

Follow the prompts to complete the installation.

To install the MongoDB Atlas (Managed MCP) Plugin:

Go to **Cursor Settings → Customize → Browse Marketplace**.

Search for **MongoDB Atlas** and click **Add**.

To install the MongoDB Local Plugin:

Go to **Cursor Settings → Customize → Browse Marketplace**.

Search for **MongoDB** and click **Add**.

To install the MongoDB Atlas (Managed MCP) Plugin:

Go to **Settings → Plugins → Search plugins**.

Search for **MongoDB Atlas** and select it.

To install the MongoDB Atlas (Managed MCP) Plugin, open a ChatGPT session.

Go to **Settings → Plugins → Browse directory**.

Search for **MongoDB Atlas**, select it, and click **Install plugin**.

To install the MongoDB Atlas (Managed MCP) Plugin, open a Devin AI session.

Go to **Settings → Connections**.

Select the **MongoDB Atlas** MCP Server.

Click **Install and enable**.

In the security notice pop-up window, confirm **Install and enable**.

To install the MongoDB Atlas (Managed MCP) Plugin, open a Grok Build CLI session.

Run the `/plugins` command and click **Marketplace**.

Search for **mongodb-atlas** and press the `i` key.

To install the MongoDB Local Plugin, open a Grok Build CLI session.

Run the `/plugins` command and click **Marketplace**.

Search for **mongodb** and press the `i` key.

After you install the plugin, complete the remaining setup steps for your AI client in [Get Started with the MongoDB MCP Server.](https://www.mongodb.com/docs/mcp-server/get-started.md#std-label-mcp-get-started)
