MCP.so
Sign In

Cockroachdb MCP Server

@amineelkouhen

About Cockroachdb MCP Server

The CockroachDB MCP Server is a natural language interface designed for agentic applications to manage, monitor and query data in CockroachDB.

Basic information

Category

Databases

Transports

stdio

Publisher

amineelkouhen

Submitted by

Amine El Kouhen

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "cockroach": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "CRDB_HOST=<cockroachdb_host>",
        "-e",
        "CRDB_PORT=<cockroachdb_port>",
        "-e",
        "CRDB_DATABASE=<cockroachdb_database>",
        "-e",
        "CRDB_USERNAME=<cockroachdb_user>",
        "mcp-cockroachdb"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Cockroachdb MCP Server?

Cockroachdb MCP Server is a natural language interface that enables LLMs and agentic applications to manage, monitor, and query data in CockroachDB. It integrates with MCP (Model Context Protocol) clients such as Claude Desktop and Cursor, allowing AI-driven workflows to interact directly with the database.

How to use Cockroachdb MCP Server?

Install and run the server using uvx with a CockroachDB connection URI or individual parameters. Alternatively, use a Docker image or clone the repository for development. Configure via command-line arguments or environment variables (e.g., CRDB_HOST, CRDB_PORT, CRDB_DATABASE). Connect any MCP client (like Claude Desktop) by editing its config file to point to the server.

Key features of Cockroachdb MCP Server

  • Natural language queries and transaction creation
  • Cluster health and node status monitoring
  • Database operations: create, drop, list, switch
  • Table management including indexes, views, and schemas
  • SQL query execution with JSON, CSV, or table formatting
  • Multi-statement transaction support and query plan analysis

Use cases of Cockroachdb MCP Server

  • AI agents querying CockroachDB using natural language
  • Monitoring cluster health and replication status
  • Managing schemas, tables, and indexes programmatically
  • Running and analyzing SQL queries through an LLM interface

FAQ from Cockroachdb MCP Server

What runtime dependencies does it require?

Python 3.13 or higher is required. The recommended way to run it is via uvx (from uv package manager) or using Docker.

How do I connect the server to my CockroachDB instance?

You can provide a connection URI (--url postgresql://user:pass@host:port/db) or specify individual parameters like --host, --port, --db, --user, and --password. SSL/TLS options are also available for secure connections.

What transport protocols does it support?

Currently only the stdio transport is supported. Support for streamable-http transport will be added in a future release.

Where does the data reside?

The server connects to your own CockroachDB instance; it does not store data itself. All data operations are executed directly against the database you specify.

Are there any known limitations or breaking changes?

The main branch is under active development and may contain breaking changes. It is recommended to use a tagged release (e.g., 0.1.0) for stable usage.

Comments

More Databases MCP servers