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 for more information.
Install the MongoDB Codex Plugin
The MongoDB Codex Plugin is available by adding MongoDB to your Codex plugin marketplace.
To install the MongoDB Codex Plugin:
Start a Codex session.
Install the plugin:
codex plugin marketplace add mongodb/agent-skills 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.