CockroachDB MCP Server

Betadatabase
120 starsTypeScriptcockroachdb
GitHub
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-server
Examples

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

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us
CortexAgent Customer Service

Want to skip the form?

Our team is available to help you get started with CortexAgent.

This chat may be recorded for quality assurance. You can view our Privacy Policy.