Integration

CockroachDB integration

CockroachDB Cloud API for managing distributed SQL database clusters. Create, scale, and monitor clusters, manage SQL users and databases, configure backups and restores, set up networking with IP allowlists and private endpoints, manage egress rules, export logs and metrics to monitoring platforms like Datadog, CloudWatch, and Prometheus, manage maintenance windows, API keys, service accounts, billing, audit logs, and folders.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in CockroachDB.Built from the 89 CockroachDB tools below, on the connection you add once.

Common CockroachDB use cases

  • Revoke a compromised API key
  • Review monthly billing charges
  • Stop log export to reduce costs
  • Stop Prometheus metric scraping
  • Stop sending metrics to Datadog
  • Check a folder's parent and path
  • Audit who made changes to clusters
  • Plan a CockroachDB version upgrade
  • Stop sending metrics to CloudWatch
  • Browse backup history for a cluster

What you can do with CockroachDB

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Network, 18 operations

  • add_allowlist_entryAdd allowlist entryPOSTAgents: ask firstAdd an IP address to the allowlist for a CockroachDB cluster.
  • add_egress_ruleAdd egress rulePOSTAgents: ask firstAdd an egress rule to a CockroachDB cluster.
  • add_private_endpoint_connectionAdd private endpoint connectionPOSTAgents: ask firstAdd a private endpoint connection to a CockroachDB cluster.
  • add_private_endpoint_trusted_ownerAdd private endpoint trusted ownerPOSTAgents: ask firstAdd a private endpoint trusted owner to a CockroachDB cluster.
  • create_private_endpoint_servicesCreate private endpoint servicesPOSTAgents: ask firstCreate private endpoint services for a CockroachDB cluster.
  • delete_allowlist_entryDelete allowlist entryDELETEAgents: ask firstRemove an IP allowlist entry from a CockroachDB cluster.
  • delete_egress_ruleDelete egress ruleDELETEAgents: ask firstDelete an egress rule from a CockroachDB cluster.
  • delete_private_endpoint_connectionDelete private endpoint connectionDELETEAgents: ask firstDelete a private endpoint connection from a CockroachDB cluster.
  • edit_egress_ruleEdit egress rulePATCHAgents: ask firstUpdate an existing egress rule on a CockroachDB cluster.
  • get_egress_ruleGet egress ruleGETAgents: ask firstGet details of a specific egress rule on a CockroachDB cluster.
  • list_allowlist_entriesList allowlist entriesGETAgents: ask firstList IP allowlist entries for a CockroachDB cluster.
  • list_egress_rulesList egress rulesGETAgents: ask firstList egress rules for a CockroachDB cluster.
  • list_private_endpoint_connectionsList private endpoint connectionsGETAgents: ask firstList private endpoint connections for a CockroachDB cluster.
  • list_private_endpoint_servicesList private endpoint servicesGETAgents: ask firstList private endpoint services for a CockroachDB cluster.
  • list_private_endpoint_trusted_ownersList private endpoint trusted ownersGETAgents: ask firstList private endpoint trusted owners for a CockroachDB cluster.
  • remove_private_endpoint_trusted_ownerRemove private endpoint trusted ownerDELETEAgents: ask firstRemove a private endpoint trusted owner from a CockroachDB cluster.
  • set_egress_traffic_policySet egress traffic policyPOSTAgents: ask firstSet the egress traffic policy for a CockroachDB cluster.
  • update_allowlist_entryUpdate allowlist entryPATCHAgents: ask firstUpdate an IP allowlist entry on a CockroachDB cluster.

Metric export, 9 operations

  • delete_cloudwatch_metric_exportDelete cloudwatch metric exportDELETEAgents: ask firstDisable CloudWatch metric export for a CockroachDB cluster.
  • delete_datadog_metric_exportDelete datadog metric exportDELETEAgents: ask firstDisable Datadog metric export for a CockroachDB cluster.
  • delete_prometheus_metric_exportDelete prometheus metric exportDELETEAgents: ask firstDisable Prometheus metric export for a CockroachDB cluster.
  • enable_cloudwatch_metric_exportEnable cloudwatch metric exportPOSTAgents: ask firstEnable CloudWatch metric export for a CockroachDB cluster.
  • enable_datadog_metric_exportEnable datadog metric exportPOSTAgents: ask firstEnable Datadog metric export for a CockroachDB cluster.
  • enable_prometheus_metric_exportEnable prometheus metric exportPOSTAgents: ask firstEnable Prometheus metric export for a CockroachDB cluster.
  • get_cloudwatch_metric_export_infoGet cloudwatch metric export infoGETAgents: ask firstGet CloudWatch metric export configuration for a CockroachDB cluster.
  • get_datadog_metric_export_infoGet datadog metric export infoGETAgents: ask firstGet Datadog metric export configuration for a CockroachDB cluster.
  • get_prometheus_metric_export_infoGet prometheus metric export infoGETAgents: ask firstGet Prometheus metric export configuration for a CockroachDB cluster.

Cluster, 6 operations

  • create_clusterCreate clusterPOSTAgents: ask firstCreate and initialize a new CockroachDB cluster.
  • delete_clusterDelete clusterDELETEAgents: ask firstPermanently delete a CockroachDB cluster and all its data.
  • get_clusterGet clusterGETAgents: ask firstGet detailed information about a specific CockroachDB cluster.
  • get_connection_stringGet connection stringGETAgents: ask firstGet a formatted connection string for a CockroachDB cluster.
  • list_clustersList clustersGETAgents: ask firstList all CockroachDB clusters in the organization.
  • update_clusterUpdate clusterPATCHAgents: ask firstUpdate configuration of an existing CockroachDB cluster.

Folder, 6 operations

  • create_folderCreate folderPOSTAgents: ask firstCreate a new folder in the CockroachDB organization.
  • delete_folderDelete folderDELETEAgents: ask firstDelete a folder from the CockroachDB organization.
  • get_folderGet folderGETAgents: ask firstGet details of a specific folder in the CockroachDB organization.
  • list_folder_contentsList folder contentsGETAgents: ask firstList the contents of a folder in the CockroachDB organization.
  • list_foldersList foldersGETAgents: ask firstList folders in the CockroachDB organization.
  • update_folderUpdate folderPATCHAgents: ask firstUpdate a folder in the CockroachDB organization.

Api key, 5 operations

  • create_api_keyCreate api keyPOSTAgents: ask firstCreate a new API key for CockroachDB Cloud.
  • delete_api_keyDelete api keyDELETEAgents: ask firstDelete a CockroachDB API key.
  • get_api_keyGet api keyGETAgents: ask firstGet details of a specific CockroachDB API key.
  • list_api_keysList api keysGETAgents: ask firstList API keys for the CockroachDB organization.
  • update_api_keyUpdate api keyPATCHAgents: ask firstUpdate a CockroachDB API key.

Service account, 5 operations

  • create_service_accountCreate service accountPOSTAgents: ask firstCreate a new service account for CockroachDB Cloud.
  • delete_service_accountDelete service accountDELETEAgents: ask firstDelete a CockroachDB service account.
  • get_service_accountGet service accountGETAgents: ask firstGet details of a specific CockroachDB service account.
  • list_service_accountsList service accountsGETAgents: ask firstList service accounts for the CockroachDB organization.
  • update_service_accountUpdate service accountPATCHAgents: ask firstUpdate a CockroachDB service account.

Database, 4 operations

  • create_databaseCreate databasePOSTAgents: ask firstCreate a new database in a CockroachDB cluster.
  • delete_databaseDelete databaseDELETEAgents: ask firstDelete a database from a CockroachDB cluster.
  • edit_databaseEdit databasePATCHAgents: ask firstRename a database in a CockroachDB cluster.
  • list_databasesList databasesGETAgents: ask firstList all databases in a CockroachDB cluster.

Encryption, 4 operations

  • enable_cmek_specEnable cmek specPOSTAgents: ask firstEnable Customer Managed Encryption Keys for a CockroachDB cluster.
  • get_cmek_cluster_infoGet cmek cluster infoGETAgents: ask firstGet CMEK information for a CockroachDB cluster.
  • rotate_cmek_keyRotate cmek keyPUTAgents: ask firstRotate the CMEK key for a CockroachDB cluster.
  • update_cmek_configUpdate cmek configPATCHAgents: ask firstModify CMEK configuration for a CockroachDB cluster.

Role, 4 operations

  • add_user_to_roleAdd user to rolePOSTAgents: ask firstAssign a role to a user or service account in CockroachDB.
  • get_all_roles_for_userGet all roles for userGETAgents: ask firstGet all role grants for a specific user in CockroachDB.
  • list_role_grantsList role grantsGETAgents: ask firstList all role grants in the CockroachDB organization.
  • remove_user_from_roleRemove user from roleDELETEAgents: ask firstRemove a role from a user or service account in CockroachDB.

Sql user, 4 operations

  • create_sql_userCreate sql userPOSTAgents: ask firstCreate a new SQL user on a CockroachDB cluster.
  • delete_sql_userDelete sql userDELETEAgents: ask firstDelete a SQL user from a CockroachDB cluster.
  • list_sql_usersList sql usersGETAgents: ask firstList all SQL users on a CockroachDB cluster.
  • update_sql_user_passwordUpdate sql user passwordPUTAgents: ask firstUpdate a SQL user's password on a CockroachDB cluster.

Backup, 3 operations

  • get_backup_configurationGet backup configurationGETAgents: ask firstGet the backup configuration for a CockroachDB cluster.
  • list_backupsList backupsGETAgents: ask firstList backups for a CockroachDB cluster.
  • update_backup_configurationUpdate backup configurationPATCHAgents: ask firstUpdate the backup configuration for a CockroachDB cluster.

Certificate, 3 operations

  • delete_client_ca_certDelete client ca certDELETEAgents: ask firstDelete the Client CA Certificate from a CockroachDB cluster.
  • get_client_ca_certGet client ca certGETAgents: ask firstGet the Client CA Certificate for a CockroachDB cluster.
  • set_client_ca_certSet client ca certPOSTAgents: ask firstSet the Client CA Certificate for a CockroachDB cluster.

Log export, 3 operations

  • delete_log_exportDelete log exportDELETEAgents: ask firstDisable log export for a CockroachDB cluster.
  • enable_log_exportEnable log exportPOSTAgents: ask firstEnable or update log export for a CockroachDB cluster.
  • get_log_export_infoGet log export infoGETAgents: ask firstGet the log export configuration for a CockroachDB cluster.

Maintenance, 3 operations

  • delete_maintenance_windowDelete maintenance windowDELETEAgents: ask firstDelete the maintenance window for a CockroachDB cluster.
  • get_maintenance_windowGet maintenance windowGETAgents: ask firstGet the maintenance window configuration for a CockroachDB cluster.
  • set_maintenance_windowSet maintenance windowPUTAgents: ask firstSet the maintenance window for a CockroachDB cluster.

Restore, 3 operations

  • create_restoreCreate restorePOSTAgents: ask firstCreate a restore job from a backup on a CockroachDB cluster.
  • get_restoreGet restoreGETAgents: ask firstGet the status and details of a CockroachDB restore job.
  • list_restoresList restoresGETAgents: ask firstList restore jobs for a CockroachDB cluster.

Version, 3 operations

  • get_cluster_version_deferralGet cluster version deferralGETAgents: ask firstGet the version upgrade deferral policy for a CockroachDB cluster.
  • list_major_cluster_versionsList major cluster versionsGETAgents: ask firstList available CockroachDB major versions.
  • set_cluster_version_deferralSet cluster version deferralPUTAgents: ask firstSet the version upgrade deferral policy for a CockroachDB cluster.

Billing, 2 operations

  • get_invoiceGet invoiceGETAgents: ask firstGet a specific invoice for the CockroachDB organization.
  • list_invoicesList invoicesGETAgents: ask firstList invoices for the CockroachDB organization.

Audit log, 1 operation

  • list_audit_logsList audit logsGETAgents: ask firstList audit log events for the CockroachDB organization.

Node, 1 operation

  • list_cluster_nodesList cluster nodesGETAgents: ask firstList all nodes in a CockroachDB cluster.

Organization, 1 operation

  • get_organization_infoGet organization infoGETAgents: ask firstGet information about the CockroachDB organization.

Region, 1 operation

  • list_available_regionsList available regionsGETAgents: ask firstList available cloud regions for new CockroachDB clusters.

Use CockroachDB from Claude Code, Cursor or Codex

Connect CockroachDB in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its CockroachDB operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect CockroachDB

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect CockroachDB once

    Add your CockroachDB connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

CockroachDB integration FAQ

What can you do with the CockroachDB integration?

LiveContext exposes 89 operations on CockroachDB, covering network, metric export, cluster and folder. Common uses include Revoke a compromised API key, Review monthly billing charges and Stop log export to reduce costs.

Popular integrations

Browse the whole catalog