# Triagic + MongoDB: ticket investigations over your database, read-only

> MongoDB in Triagic: Query collections and inspect documents behind a ticket. Read-only, with a credential you configure.

Source: https://triagic.com/integrations/mongodb

## What you can ask

- Look up account acme-labs in MongoDB and tell me why their last export failed
- In MongoDB, how many orders for org 8412 are stuck in a non-terminal state right now?
- Which rows in MongoDB changed for user 51930 in the last 24 hours?
- Compare the MongoDB record for invoice INV-2291 with what the customer says they see
- Does MongoDB show the same plan for this account as the billing system does?

## What the agent can do

Every tool the MongoDB server annotates as read-only. The server's own --readOnly flag is on by default and blocks writes and admin commands.

## Connect in three steps

1. **Mint a read-only credential in MongoDB.** Create a dedicated user or token that can only read. The server's own --readOnly flag is on by default and blocks writes and admin commands.
2. **Add it in the Triagic portal.** Integrations, then Add shared data source, then MongoDB. Fill in: Connection string (required): TLS and authentication both live in the URI. There are no separate fields, because the driver reads them from here. Add `tls=true`, `tlsCAFile=/path/ca.pem` for a private CA, `tlsCertificateKeyFile=/path/client.pem` for a client certificate, `tlsAllowInvalidCertificates=true` to skip verification, and `authSource=` or `authMechanism=MONGODB-X509` / `MONGODB-AWS` where the login needs them. Paths are on the machine running Triagic.
3. **Let a desktop pick it up.** Saving validates the shape of what you typed. The first desktop app to sync starts MongoDB locally and reports running or degraded with the error text.

Setup reference: https://triagic.com/docs/integrations/databases#mongodb

## Read-only, by construction

The server's own --readOnly flag is on by default and blocks writes and admin commands.

## FAQ

**Can Triagic change anything in MongoDB?**
No. The server's own --readOnly flag is on by default and blocks writes and admin commands. Give it a read-only credential as well, so the guarantee does not rest on one layer.

**What do I need to connect MongoDB?**
Connection string. The desktop app on a member's machine starts the connection; the portal never holds a live process.

**Does MongoDB cost extra?**
No. Every connector is included in the seat price. Start a 14-day trial without a card.

## Related integrations

- [PostgreSQL](https://triagic.com/integrations/postgres)
- [MySQL](https://triagic.com/integrations/mysql)
- [Redis](https://triagic.com/integrations/redis)
- [ClickHouse](https://triagic.com/integrations/clickhouse)
