Skip to main content

MongoDB

Prefer guided AI setup?

Instead of following these steps manually, you can use the AI Credential Assistant — describe what you want to connect and the AI will walk you through the setup step by step, tailored to your account.

Overview​

MongoDB is a popular NoSQL database that stores data in flexible, JSON-like documents. Connect your MongoDB database to automate data operations and integrate with your workflows.

Authentication Type​

Connection String or Basic Auth

Setup Instructions​

Step 1: Get Your Connection String​

  1. Log in to MongoDB Atlas
  2. Go to Database > Connect
  3. Select Drivers
  4. Copy the connection string

Step 2: Configure the Connection String​

Replace the placeholders in the connection string:

mongodb+srv://<username>:<password>@cluster.mongodb.net/<database>

Option B: Using Individual Values​

Required Fields​

  • Host: Your MongoDB server address
  • Port: Default is 27017
  • Database: The database name
  • Username: Your MongoDB username
  • Password: Your MongoDB password

Security Notes​

  • For MongoDB Atlas, add Nirvai's IP addresses to your IP Access List
  • Use TLS for secure connections

Configuration Fields​

  • Connection String: Full MongoDB connection URI
  • Database Name: The database to connect to

Common Use Cases​

  • Store and retrieve documents
  • Query and aggregate data
  • Create and manage collections
  • Build real-time data pipelines
  • Vector search with Atlas Vector Store

API Documentation​

MongoDB Documentation


Next Steps​

Got your credential? Connect it to an agent

Use the AI Tool Creator to turn this credential into agent-callable tools. Describe what your agent should be able to do and the AI investigates the API, configures the endpoints, and gives you a reviewable toolkit before saving anything.