About
Overview
The CockroachDB MCP Server provides tools for interacting with CockroachDB, the distributed SQL database. Since CockroachDB is PostgreSQL-compatible, this server extends PostgreSQL MCP functionality with CockroachDB-specific features like multi-region configuration, zone survivability settings, and cluster management.
Capabilities
Tools & Capabilities
⚡query
Execute a SQL query against CockroachDB
⚡list_databases
List all databases in the cluster
⚡list_tables
List tables in a database
⚡describe_table
Get the schema of a table
⚡cluster_status
Get the status of the CockroachDB cluster
Setup
Installation
bash
Install
npx -y @cockroachdb/mcp-serverExamples
Example Usage
javascript
Usage
{
"mcpServers": {
"cockroachdb": {
"command": "npx",
"args": ["-y", "@cockroachdb/mcp-server"],
"env": {
"DATABASE_URL": "postgresql://root@localhost:26257/defaultdb"
}
}
}
}Quick Info
Authorcockroachdb
LanguageTypeScript
StatusBeta
Stars★ 120
Last UpdatedFeb 12, 2026