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 the MongoDB marketplace to Codex.
To install the MongoDB Codex Plugin:
From the terminal, add the MongoDB marketplace:
codex plugin marketplace add mongodb/agent-skills Open a new Codex session, then install the plugin:
/plugins Search for the MongoDB plugin and select it.
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.