Automate MongoDB
Watch your MongoDB Atlas organization the way an ops lead would: open alerts, the cluster list, backup snapshots, IP access lists and the pending invoice. These automations read the Atlas Admin API on a schedule and report what needs attention. Say what you want checked to your AI assistant, confirm the steps it proposes, and the report arrives on time from then on.
Try asking
Create a ClickRuntime automation: every weekday at 8am, list the open alerts in all my MongoDB Atlas projects and email me each one with the project, cluster, alert type and when it started.
Paste it into your assistant. It tells you what it will send or change before it runs live.
Ideas
What you can automate in MongoDB
Get open Atlas alerts every morning
Each morning one email lists every alert still open across your Atlas projects.
See how it worksKeep a weekly list of your Atlas clusters
Every Monday you get each cluster's project, tier, MongoDB version and state in one table.
See how it worksTrack what Atlas is costing this month
Once a week you see the running total of your pending Atlas invoice and its biggest line items.
See how it worksGet warned when a cluster backup is missing
You hear about any backed-up cluster whose newest snapshot failed or is more than a day old.
See how it worksAudit Atlas IP access lists weekly
Each week you see who can reach every project, with open-to-all entries and new additions called out.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with MongoDB, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any MongoDB automation you can describe
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
For example, ask your assistant
Every 10 minutes, check my MongoDB jobs collection for jobs that have been in processing for more than 20 minutes and reset them to queued.
Every morning, copy yesterday's new documents from my MongoDB leads collection into a Google Sheet.
Every week, run an aggregation on my MongoDB orders collection for revenue by product, write it to Google Sheets, and post the top 5 to Slack.
Beyond chat
Have MongoDB work when you're not in the chat
On a schedule
Get open Atlas alerts every morningDaily
On a schedule
Keep a weekly list of your Atlas clustersWeekly
On a schedule
Track what Atlas is costing this monthWeekly
Setup
Connect MongoDB
MongoDB connects through an Atlas service account that you create in your own organization. You choose its roles, so a read-only account is enough for every report here except billing, which needs a billing viewer role.
MongoDB
Developer / Database
- In Atlas, open your organization's Access Manager, go to Applications and then Service Accounts, and click Create.
- Name it, give it roles such as
Project Read Only(andOrganization Billing Viewerfor invoice summaries), and pick a secret expiry. - Copy the Client ID and Client Secret before you close the page.
- In the ClickRuntime dashboard, open Connections and enter the Client ID and Client Secret for MongoDB.
Good to know
MongoDB limits that affect automations
- The Admin API manages Atlas resources such as projects, clusters, alerts and backups. It does not read or write documents in your collections; that needs a database user and a connection string.
- Organizations created in the Atlas UI require an API access list for the Admin API, and calls from addresses not on it are refused with a 403.
- Backup checks only cover clusters with Cloud Backup turned on, which means M10 and larger; Flex clusters keep their snapshots elsewhere.
- The service account secret has the expiry you set when creating it, so plan to replace it before that date.
FAQ
Questions about automating MongoDB
Can ClickRuntime read the data inside my MongoDB collections?
Which roles should the service account have?
Why does the Admin API return 403 errors?
What does the access list audit flag?
Do these Atlas reports need an AI key?
Is this a MongoDB connector for ChatGPT or Claude?
Related pages
Keep exploring