Language: 日本語English

cockroachdb Plugin

Author
Cockroach Labs
Category
Database
Topics
Databases & Storage · Cloud, Deployment & CI/CD · Claude Code Customization & Workflow
First seen
2026-07-09
Last confirmed
2026-07-13
Explanation last updated
2026-07-12

The explanation below is AI-generated. Please verify it against the sources.

This is a Claude Code plugin that connects Claude directly to CockroachDB clusters for database work such as exploring schemas, writing SQL, debugging queries, and managing distributed clusters. According to the README, it provides 14 tools across two active MCP backends (self-hosted MCP Toolbox and the managed CockroachDB Cloud MCP Server), three specialized agents (DBA, Developer, Operator), 32 skills across 6 operational domains, and built-in safety hooks. It also documents a separate ccloud CLI for cluster lifecycle management (provisioning, backups, disaster recovery, networking) that agents can call directly via shell commands. The plugin is Apache-2.0 licensed and is installed via the Claude Marketplace or the /install-plugin cockroachdb command.

Overview

CockroachDB is a distributed SQL database; this plugin does not provide CockroachDB itself but connects Claude Code to it via MCP (Model Context Protocol), using MCP Toolbox for Databases for self-hosted clusters or the managed CockroachDB Cloud MCP Server for CockroachDB Cloud, per the README.

What you can do with cockroachdb

  • Execute SQL statements (SELECT, DDL, DML) and list schemas/tables via the MCP Toolbox tools (cockroachdb-execute-sql, cockroachdb-list-schemas, cockroachdb-list-tables)
  • Query and inspect CockroachDB Cloud clusters read-only via managed MCP tools such as list_clusters, get_cluster, get_table_schema, select_query, explain_query, and show_running_queries
  • Perform write operations (create_database, create_table, insert_rows) on CockroachDB Cloud after explicit write consent
  • Invoke specialized agents — cockroachdb-dba (performance tuning, schema review), cockroachdb-developer (ORM config, retry logic), and cockroachdb-operator (operations, monitoring, backups, scaling) — automatically or by direct request
  • Use 32 skills across domains including Query & Schema Design, Observability & Diagnostics, Security & Governance, Onboarding & Migrations, and Operations & Lifecycle
  • Rely on built-in hooks that block destructive statements (e.g., DROP DATABASE, TRUNCATE) before execution and scan edited SQL/code files for anti-patterns
  • Manage full cluster lifecycle (provisioning, connections, backups, disaster recovery, networking, audit) using the ccloud CLI with JSON output for agent use

Sources

Original description (English)

Connect Claude Code directly to your CockroachDB clusters for hands-on database work — explore schemas, write optimized SQL, debug queries, and manage distributed database clusters. This plugin provides 14 tools across two active MCP backends (self-hosted MCP Toolbox and managed CockroachDB Cloud MCP Server), three specialized agents (DBA, Developer, Operator), 32 skills across 6 operational domains, and built-in safety hooks.

History of cockroachdb

Back to list