Learn the "why" behind slow queries and how to fix them in our 2-Part Webinar.
Register now >
Docs Menu
Docs Home
/

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 for more information.

The MongoDB Claude Plugin is available in the official Anthropic Plugin Marketplace.

To install the MongoDB Claude Plugin:

  1. Start a session with Claude Code.

  2. Add the MongoDB Claude Plugin to Claude Code locally:

    claude plugin marketplace add https://github.com/mongodb/agent-skills.git
  3. Use the /plugin command to open the plugins menu.

  4. Search for "MongoDB" and select the official MongoDB plugin.

  5. Follow the prompts to complete the installation.

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

Back

Agent Skills

On this page