MongoDB with Codex

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

MongoDB with Codex

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

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

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:

bash codex plugin marketplace add mongodb/agent-skills

  1. Open a new Codex session, then install the plugin:

bash /plugins

  1. Search for the MongoDB plugin and select it.

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

Configure the MCP Server

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