AggregateDocs
Guides

MongoDB Atlas and Aggregate

Last updated

Short answer: your card or bank already shows one MongoDB Atlas charge a month. Aggregate reads the invoice behind it and shows what the charge was for: usage by service on each cloud provider, credits, tax and any balance carried in, so you can ask any AI assistant or agent where your database spend goes. It can't move money. You make a service account that can only view billing, and Aggregate checks its roles with Atlas before connecting and before every sync.

Status: Beta. It's built to MongoDB's Atlas Administration API documentation and hasn't been tried with a real Atlas organization yet, so it's marked Beta. If a number looks off, tell us at support@aggregate.finance.

What it reads

From those, Aggregate shows one report per invoice:

Those lines add up to the billed total exactly. It's a report: nothing is posted to Aggregate's ledger, because the money itself already shows as card or bank spend.

How each invoice is checked

On every sync, before anything is shown, each invoice must add up to the cent:

  1. its charges (the positive line items) must equal the invoice's subtotal, and
  2. its charges, less credits, plus sales tax, less the balance carried in, must equal what it says was billed.

If any invoice is off by even a cent, the sync stops, says which month and both figures, and changes nothing.

Why a service account that can only view billing

An Atlas service account can do whatever its roles allow. Aggregate asks for two organization roles only: Organization Billing Viewer (to read invoices) and Organization Read Only (so the account can read its own roles). Before it connects and at the start of every sync, Aggregate asks Atlas for the account's roles and its projects. If it has any other role, belongs to any project, or Aggregate can't tell, Aggregate doesn't connect, or it stops, disconnects and deletes its copy of the secret.

Connect

  1. In MongoDB Atlas, open your organization, then Organization Access Manager → Applications → Service Accounts, and create a service account named "Aggregate".
  2. Give it only Organization Billing Viewer and Organization Read Only. Don't add it to any project.
  3. Copy the client ID (it starts mdb_sa_id_) and the secret (Atlas shows it once), and your organization ID from Organization Settings.
  4. In Aggregate, open Connections, choose Add, then MongoDB Atlas, and paste all three.

If your organization requires an IP access list for the Atlas Administration API, add the server's address to the service account's access list. Service account secrets expire on the date you choose; when one does, make a new secret and connect again.

How often it updates

Every few hours. Each sync begins by checking the service account's roles again. Atlas posts charges the day after they're incurred.

Disconnect and delete

Disconnect MongoDB Atlas in Aggregate at any time: open Connections, choose the connection, then Disconnect. To turn the access off at Atlas too, delete the service account (or revoke its secret) in Organization Access Manager. Disconnecting deletes what it brought in after 30 days, unless you connect it again before then, or right away if you choose Disconnect and delete its data. Deleting your workspace deletes everything.

© 2026 Aggregate Finance LLC