MongoDB with Claude

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

MongoDB with Claude

You can use MongoDB with Claude Code through the official MongoDB Claude Plugin.

The MongoDB Claude Plugin 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 Claude Plugin

The MongoDB Claude Plugin is available in the official Claude Plugin Marketplace. Install it in one of the following ways, depending on your preferred workflow.

Install from the Terminal or Claude Desktop

Run the following command in your terminal to install the MongoDB Claude Plugin:

claude plugin install mongodb@claude-plugins-official

Tip:

You can also run this command in your Claude Code Desktop app.

After installing the plugin, you must configure the MCP Server before using any agent skills or functionality that connects to MongoDB.

Install from the Claude Code Plugin Manager (CLI only)

  1. Open a Claude Code CLI session.

  2. Run the following command to install the MongoDB Claude Plugin:

bash /plugin install mongodb@claude-plugins-official

  1. Follow the prompts to complete the installation.

  2. Run /reload-plugins to apply the changes.

After installing the plugin, you must configure the MCP Server before using any agent skills or functionality that connects to MongoDB.

Configure the MCP Server

The MongoDB Claude Plugin bundles the MongoDB MCP Server. To configure the MCP Server, see MongoDB MCP Server Get Started.