Databases connector

MongoDB connector for governed AI agent access

Connect MongoDB with one connection string plus database selection.

API

Direct answer

OneQuery supports MongoDB for governed agent access.

Teams use the MongoDB connector to give AI agents bounded source API calls for endpoint-specific context while OneQuery keeps credentials centralized, limits access to approved sources, and preserves audit logs for review.

Agent workflow

What this connector enables

MongoDB becomes an approved OneQuery source instead of a secret copied into an agent prompt, shell session, or model tool. The agent receives a governed access path, and the source credentials stay behind OneQuery.

  • Use bounded source API calls for endpoint-specific context for databases context.
  • Keep MongoDB credentials centralized and out of agent runtimes.
  • Review agent access through OneQuery audit history instead of reconstructing direct service usage.

Setup checklist

Prepare the MongoDB connection

Use mongodb credentials and connect the source through the Dashboard and CLI. Keep credentials scoped to the data the agent is allowed to read.

  1. Retrieve a MongoDB connection string with the required read access.
  2. If the deployment spans multiple databases, include `databases`; otherwise provide one `database`.

FAQ

MongoDB connector questions

What is the OneQuery MongoDB connector?

The OneQuery MongoDB connector makes databases context from MongoDB available to AI agents through bounded source API calls for endpoint-specific context. Connect MongoDB with one connection string plus database selection.

How do AI agents access MongoDB through OneQuery?

Agents call OneQuery instead of receiving raw MongoDB credentials. OneQuery keeps credentials centralized, applies source boundaries, and records access in audit logs while exposing bounded source API calls for endpoint-specific context.

How do I set up the MongoDB connector?

Prepare mongodb credentials and connect MongoDB from the OneQuery dashboard or CLI. Start with this setup step: Retrieve a MongoDB connection string with the required read access.