For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.

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.

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

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.

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.

The following instructions show how to install a plugin in each supported client.

Select your client and plugin type from the dropdown below.

AI Client
Plugin Type

After you install the plugin, complete the remaining setup steps for your AI client in Get Started with the MongoDB MCP Server.