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 Codex

You can use MongoDB with Codex through the official MongoDB Codex Plugin.

The MongoDB Codex Plugin provides:

The MongoDB Codex Plugin is available by adding the MongoDB marketplace to Codex.

To install the MongoDB Codex Plugin:

  1. From the terminal, add the MongoDB marketplace:

    codex plugin marketplace add mongodb/agent-skills
  2. Open a new Codex session, then install the plugin:

    /plugins
  3. Search for the MongoDB plugin and select it.

  4. Follow the prompts to complete the installation.

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

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