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 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)
Open a Claude Code CLI session.
Run the following command to install the MongoDB Claude Plugin:
/plugin install mongodb@claude-plugins-official Follow the prompts to complete the installation.
Run
/reload-pluginsto 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.