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
- The service account's own record: its organization roles, and the projects it belongs to (there should be none).
- Every invoice whose billing period started in the last 13 months, the current running one included: its status, period, subtotal, sales tax, balance carried in and billed total.
- Each invoice's line items: the service (the SKU, such as an instance size or storage), the cloud provider and the amount. Not the cluster, project or App Services names, tags or notes.
From those, Aggregate shows one report per invoice:
- Billed by MongoDB Atlas: the invoice's billed total.
- Usage, by service, under each cloud provider (AWS, Google Cloud, Azure, and other Atlas usage).
- Credits and discounts, as negative figures.
- Sales tax, and balance carried in from earlier invoices when there is one.
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:
- its charges (the positive line items) must equal the invoice's subtotal, and
- 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
- In MongoDB Atlas, open your organization, then Organization Access Manager → Applications → Service Accounts, and create a service account named "Aggregate".
- Give it only Organization Billing Viewer and Organization Read Only. Don't add it to any project.
- Copy the client ID (it starts
mdb_sa_id_) and the secret (Atlas shows it once), and your organization ID from Organization Settings. - 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.
Related
© 2026 Aggregate Finance LLC