Database · Secure key

Connect MongoDB to AshnaAI

Connect a read-only MongoDB URI. AshnaAI can list databases, inspect schemas, and run bounded find, count, and aggregate queries.

What this connector does

Use a MongoDB user that only has read roles. AshnaAI encrypts the connection string and never shows it back. After connect, you can also generate a scoped MCP endpoint token from the connector card.

What you can do after connecting

  • List databases and collections
  • Inspect schemas and indexes
  • Run bounded find, count, aggregate, and explain
  • Generate a scoped MongoDB MCP endpoint

Before you start

  • A MongoDB connection string for a read-only user

How to connect MongoDB

  1. Sign in to AshnaAI

    Open https://app.ashna.ai and sign in to the workspace that should store the MongoDB credentials.

  2. Open Integrations

    Go to Integrations, or Account → Connectors, then search for the connector.

  3. Open Connect MongoDB

    Click Connect on the MongoDB card. AshnaAI shows a form for the required credentials.

  4. Paste credentials

    Paste a MongoDB URI for a user with read-only roles. Optional execution-policy fields control whether queries run on the server or through Desktop.

  5. Save and confirm

    Submit the form. AshnaAI encrypts the secret and marks MongoDB as Connected when verification succeeds.

Frequently asked questions

What is Manage MCP on the MongoDB card?

After the connector is connected, Manage MCP creates a scoped read-only token and endpoint. Store that token like a password.