Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to MongoDB Atlas

Scalekit connector
Open markdown

The MongoDB Atlas connector lets your AI agent work with MongoDB Atlas. You connect it once with a service account, and Scalekit authenticates every call, so your agent never handles credentials. It comes with 82 tools.

Tools
82
What they doRead · write · destructive
55 · 20 · 755 read20 write7 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the MongoDB Atlas connection

    In AgentKit > Connections, create a MongoDB Atlas connection. The name you give it is the connection_name your code passes. See Configure connections.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • mongodb_access_list_entries_listList the entries in an Atlas project's IP access list, which controls which clients may connect to its clusters.Read-only

    List IP Access List Entries

    List the entries in an Atlas project's IP access list, which controls which clients may connect to its clusters. Returns each entry's ipAddress or cidrBlock or awsSecurityGroup, comment, and deleteAfterDate. Use this to see which addresses can connect. Use mongodb_access_list_entry_get for one entry. Requires a project id from mongodb_projects_list.

    Inputs

    group_idstringrequired
    Unique 24-hexadecimal id of the Atlas project (Atlas calls it groupId). Get it from mongodb_projects_list. Example: 32b6e34b3d91647abb20e7b8
    items_per_pageinteger
    Number of items per page, from 1 to 500. Atlas defaults to 100. Example: 100
    page_numinteger
    Page number to return, starting at 1. Atlas defaults to 1. Example: 1
  • mongodb_access_list_entry_getGet one entry from an Atlas project's IP access list.Read-only

    Get IP Access List Entry

    Get one entry from an Atlas project's IP access list. Returns the entry's ipAddress or cidrBlock or awsSecurityGroup, comment, and deleteAfterDate. Use this to check one address. Use mongodb_access_list_entry_status_get to see whether it is active on every cluster. Requires a project id from mongodb_projects_list.

    Inputs

    entry_valuestringrequired
    The access list entry to act on: an IP address, a CIDR block with its slash URL-encoded as %2F, or an AWS security group id. Get it from mongodb_access_list_entries_list. Example: 192.0.2.0%2F24
    group_idstringrequired
    Unique 24-hexadecimal id of the Atlas project (Atlas calls it groupId). Get it from mongodb_projects_list. Example: 32b6e34b3d91647abb20e7b8
  • mongodb_access_list_entry_status_getCheck whether one IP access list entry is active on every cluster in the project.Read-only

    Get IP Access List Entry Status

    Check whether one IP access list entry is active on every cluster in the project. Returns STATUS: ACTIVE, PENDING, or FAILED. Use this after mongodb_access_list_entry_create to confirm the entry is live. Use mongodb_access_list_entry_get for the entry itself. Requires a project id from mongodb_projects_list.

    Inputs

    entry_valuestringrequired
    The access list entry to act on: an IP address, a CIDR block with its slash URL-encoded as %2F, or an AWS security group id. Get it from mongodb_access_list_entries_list. Example: 192.0.2.0%2F24
    group_idstringrequired
    Unique 24-hexadecimal id of the Atlas project (Atlas calls it groupId). Get it from mongodb_projects_list. Example: 32b6e34b3d91647abb20e7b8
  • mongodb_alert_config_getGet one Atlas alert configuration (alert rule).Read-only

    Get Alert Configuration

    Get one Atlas alert configuration (alert rule). Returns the configuration's eventTypeName, enabled flag, matchers, threshold, and notifications. Use this to read one rule. Use mongodb_alert_configs_list to find configuration ids. Requires a project id from mongodb_projects_list and an alert configuration id from mongodb_alert_configs_list.

    Inputs

    alert_config_idstringrequired
    Unique 24-hexadecimal id of the alert configuration. Get it from mongodb_alert_configs_list. Example: 5f4007f327a3bd7b6f4103c8
    group_idstringrequired
    Unique 24-hexadecimal id of the Atlas project (Atlas calls it groupId). Get it from mongodb_projects_list. Example: 32b6e34b3d91647abb20e7b8
  • mongodb_alert_configs_listList the alert configurations (alert rules) in one Atlas project.Read-only

    List Alert Configurations

    List the alert configurations (alert rules) in one Atlas project. Returns each configuration's id, eventTypeName, enabled flag, matchers, metric threshold, and notifications. Use this to review alert rules. Use mongodb_alerts_list for alerts that have fired. Requires a project id from mongodb_projects_list.

    Inputs

    group_idstringrequired
    Unique 24-hexadecimal id of the Atlas project (Atlas calls it groupId). Get it from mongodb_projects_list. Example: 32b6e34b3d91647abb20e7b8
    items_per_pageinteger
    Number of items per page, from 1 to 500. Atlas defaults to 100. Example: 100
    page_numinteger
    Page number to return, starting at 1. Atlas defaults to 1. Example: 1
  • mongodb_alert_getGet one Atlas alert by id.Read-only

    Get Alert

    Get one Atlas alert by id. Returns the alert's eventTypeName, status, metricName, currentValue, cluster and host, created and resolved dates, and acknowledgement fields. Use this for one alert's details. Use mongodb_alerts_list to find alert ids. Requires a project id from mongodb_projects_list and an alert id from mongodb_alerts_list.

    Inputs

    alert_idstringrequired
    Unique 24-hexadecimal id of the alert. Get it from mongodb_alerts_list. Example: 5f4007f327a3bd7b6f4103c7
    group_idstringrequired
    Unique 24-hexadecimal id of the Atlas project (Atlas calls it groupId). Get it from mongodb_projects_list. Example: 32b6e34b3d91647abb20e7b8
  • mongodb_alerts_listList the alerts raised in one Atlas project, optionally filtered by status.Read-only

    List Alerts

    List the alerts raised in one Atlas project, optionally filtered by status. Returns each alert's id, eventTypeName, status, metricName, currentValue, clusterName, hostnameAndPort, created date, and acknowledgement fields. Use this to see what is firing. Use mongodb_alert_get for one alert, or mongodb_project_events_list for the full activity feed. Requires a project id from mongodb_projects_list.

    Inputs

    group_idstringrequired
    Unique 24-hexadecimal id of the Atlas project (Atlas calls it groupId). Get it from mongodb_projects_list. Example: 32b6e34b3d91647abb20e7b8
    items_per_pageinteger
    Number of items per page, from 1 to 500. Atlas defaults to 100. Example: 100
    page_numinteger
    Page number to return, starting at 1. Atlas defaults to 1. Example: 1
    statusstring
    Status of the alerts to return. Omit this parameter to return all alerts in all statuses. TRACKING indicates the alert condition exists but has not persisted for the minimum notification delay. Allowed values: OPEN, TRACKING, CLOSED. Example: OPENone of OPENTRACKINGCLOSED
  • mongodb_backup_restore_job_getGet one cloud backup restore job.Read-only

    Get Restore Job

    Get one cloud backup restore job. Returns the job's deliveryType, snapshotId, target cluster, failed, cancelled and expired flags, finishedAt, and download URLs for download restores. Use this to poll a restore started with mongodb_backup_restore_job_create. Requires a project id and cluster name from mongodb_clusters_list and a restore job id from mongodb_backup_restore_jobs_list.

    Inputs

    cluster_namestringrequired
    Name of the cluster. Get it from mongodb_clusters_list. Example: Cluster0
    group_idstringrequired
    Unique 24-hexadecimal id of the Atlas project (Atlas calls it groupId). Get it from mongodb_projects_list. Example: 32b6e34b3d91647abb20e7b8
    restore_job_idstringrequired
    Unique 24-hexadecimal id of the restore job. Get it from mongodb_backup_restore_jobs_list or mongodb_backup_restore_job_create. Example: 5f4007f327a3bd7b6f4103c6