CockroachDB

CockroachDB

Enable AI agents to manage, monitor, and query CockroachDB using natural language. Perform complex database operations, cluster management, and query execution seamlessly through AI-driven workflows. Integrate effortlessly with MCP clients for scalable and high-performance data operations.

668

29 Tools

Signed
Built by Docker
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

Tools

NameDescription
analyze_performanceAnalyze query performance statistics for a given query or time range.
analyze_schemaAnalyze the schema and provide a summary of tables, views, and relationships.
bulk_importBulk import data into a table from a file (CSV or Avro) stored in cloud or web storage. Supports S3, Azure Blob, Google Storage, HTTP/HTTPS URLs.
connectConnect to the default CockroachDB database and create a connection pool. Returns: A success message or an error message.
connect_databaseConnect to a CockroachDB database and create a connection pool.
create_databaseEnable the creation of new databases.
create_indexCreate a new index on a specified table to improve query performance. This tool allows users to define indexes on one or more columns, enabling faster data retrieval and optimized execution plans for read-heavy workloads.
create_tableEnable the creation of new tables in the current database. You can instruct the AI to define table names, columns, and their types, streamlining database setup and schema evolution directly through natural language.
create_viewCreate a view from a specific query.
describe_tableProvide detailed schema information, column definitions, data types, and other metadata for a specified table. This allows the AI to accurately interpret table structures and formulate precise queries or data manipulation commands.
drop_databaseDrop an existing database.
drop_indexDrop an existing index.
drop_tableFacilitate the deletion of existing tables from the database. This tool is useful for cleaning up test environments or managing schema changes, always with the necessary confirmations for security.
drop_viewDrop an existing view.
execute_queryExecute a SQL query with optional parameters and formatting.
execute_transactionExecute a list of SQL queries as a single transaction.
explain_queryReturn CockroachDB's statement plan for a preparable statement. You can use this information to optimize the query. If you run it with Analyze, it executes the SQL query and generates a statement plan with execution statistics.
get_active_connectionsList active connections/sessions to the current database. Returns: Active sessions on the cluster.
get_cluster_statusGet cluster health and node distribution.
get_connection_statusGet the current connection status and details. Returns: The connection status or an error message.
get_database_settingsRetrieve current database or cluster settings. Returns: All cluster settings.
get_query_historyGet the history of executed queries.
get_replication_statusGet replication and distribution status for a table or the whole database.
get_table_relationshipsGet foreign key relationships for a table or all tables.
list_databasesList all databases in the CockroachDB cluster. Returns: A list of databases with row count or an error message.
list_tablesList all tables present in the connected Cockroach database instance. This is invaluable for AI to understand the database’s landscape and identify relevant data sources for a given query.
list_viewsList all views in a schema.
show_running_queriesShow currently running queries on the cluster.
switch_databaseSwitch the connection to a different database.

Manual installation

You can install the MCP server using:

Installation for

Related servers