Cockroachdb MCP Server

The CockroachDB MCP Server is a natural language interface designed for LLMs and agentic applications to manage, monitor, and query data in CockroachDB. It integrates seamlessly with MCP (Model Content Protocol)…

Local serverstdio

What is the Cockroachdb MCP Server?

Cockroachdb MCP Server source profile. From the maintainer documentation: “The CockroachDB MCP Server is a natural language interface designed for LLMs and agentic applications to manage, monitor, and query data in CockroachDB. It integrates seamlessly with MCP (Model Content Protocol) clients, such as Claude Desktop or Cursor, enabling AI-driven workflows to interact directly with your database.”

Local setup

The project provides a local client configuration using docker. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
drop_cspann_indexdestructive).
list_jobsfilter by status and type), get_job_status.
restore_backupdestructive) with optional new_db_name.
create_statisticsCREATE STATISTICS).
show_statisticsSHOW STATISTICS FOR TABLE).
set_survival_goalZONE or REGION).
set_table_localityREGIONAL, REGIONAL_BY_ROW, REGIONAL_BY_TABLE, GLOBAL).
cancel_changefeeddestructive).

How to install the Cockroachdb MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.