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 Cursor

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

The MongoDB Cursor Plugin provides:

The MongoDB Cursor Plugin is available in the official Cursor Plugin Marketplace.

To install the MongoDB Cursor Plugin from the Cursor Marketplace:

  1. Open Cursor.

  2. Open the Marketplace (using the command palette or from your Cursor Settings)

  3. Search for MongoDB.

  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.

To install the MongoDB Cursor Plugin:

  1. Open Cursor.

  2. Install the plugin:

    /add-plugin mongodb

    Tip

    If you don't see MongoDB in the list of available plugins, you can find it using the Browse Marketplace option.

  3. 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 Cursor Plugin bundles the MongoDB MCP Server. To configure the MCP Server, see MongoDB MCP Server Get Started.