CockroachDB MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CRDB_HOST | Yes | CockroachDB host | |
| CRDB_PORT | No | Database port | 26257 |
| CRDB_USER | Yes | Database username | |
| CRDB_CLUSTER | No | Cloud cluster ID | |
| CRDB_SSLMODE | No | SSL mode | require |
| CRDB_DATABASE | Yes | Database name | |
| CRDB_MAX_ROWS | No | Max rows per query | 1000 |
| CRDB_PASSWORD | No | Database password | |
| CRDB_READ_ONLY | No | Block write operations | false |
| CRDB_BLOCKED_COMMANDS | No | Commands to block |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| connectA | Connect to the CockroachDB cluster. |
| disconnectA | Disconnect from the CockroachDB cluster. |
| cluster_statusA | Get the health status of the CockroachDB cluster. |
| execute_queryB | Execute a SQL query. |
| validate_queryA | Check if a query is safe to execute without running it. |
| explain_queryA | Get the execution plan for a query. |
| list_databasesA | List all databases in the cluster. |
| list_schemasB | List schemas in the current database. |
| list_tablesA | List all tables in the database. |
| describe_tableA | Get detailed column information for a table. |
| get_table_statsB | Get statistics for a table. |
| get_foreign_keysC | Get foreign key constraints for a table. |
| read_rowsB | Read rows from a table. |
| insert_rowB | Insert a new row into a table. |
| update_rowB | Update an existing row by primary key. |
| delete_rowA | Delete a row by primary key. |
| upsert_rowB | Insert or update a row (UPSERT). |
| switch_databaseB | Switch the active database context. |
| begin_transactionB | Begin a database transaction. |
| commit_transactionB | Commit the current transaction. |
| rollback_transactionB | Rollback the current transaction. |
| list_nodesA | List all nodes in the CockroachDB cluster. |
| node_statusB | Get detailed status for a node. |
| show_regionsB | Show database regions for multi-region clusters. |
| show_jobsC | Show background jobs in the cluster. |
| show_sessionsB | Show active sessions in the cluster. |
| show_statementsB | Show active statements in the cluster. |
| cancel_queryB | Cancel a running query. |
| show_rangesC | Show range distribution in the cluster. |
| show_zone_configC | Show zone configurations. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 30 tools
Each tool has a distinct purpose with clear boundaries. For example, execute_query runs queries while explain_query provides plans, and read_rows is for table reads versus list_tables for metadata. No tools appear to overlap in functionality, making selection straightforward.
All tools follow a consistent verb_noun naming pattern (e.g., begin_transaction, cancel_query, cluster_status). The naming is uniformly snake_case and uses clear, descriptive verbs that align with database operations, ensuring predictability across the set.
With 30 tools, the count is on the higher side but reasonable for a comprehensive database server covering connections, queries, transactions, metadata, and cluster management. It feels slightly heavy but each tool serves a specific role in the domain without obvious redundancy.
The toolset provides complete coverage for CockroachDB operations, including connection management, CRUD operations (insert_row, read_rows, update_row, delete_row, upsert_row), transactions, query execution and analysis, metadata inspection, and cluster monitoring. No significant gaps are apparent for typical database workflows.