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.
Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
MongoDB Branding Shape
Click here >
Docs Menu

MongoDB with Claude

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

The MongoDB Claude Plugin provides:

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.

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.

  1. Open a Claude Code CLI session.

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

    /plugin install mongodb@claude-plugins-official
  3. Follow the prompts to complete the installation.

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

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