Feedback

CockroachDB MCP Server — by amineelkouhen

@amineelkouhen Claim

Basic information

Runtime
Python
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
amineelkouhen
Submitted by
Community
Quality
25
Stars
9

About CockroachDB MCP Server

Monitor and manage CockroachDB clusters: perform DB operations, table management, SQL queries with transactions and performance analysis.

CockroachDB is a MCP server in the Databases category listed in the AddMCP.net directory, published by amineelkouhen. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 9 GitHub stars. Source code is hosted on github.com. Related topics: cockroachdb, community, database, databases, developer-tools.

Setup

{
    "mcpServers": {
        "cockroach": {
            "command": "uvx",
            "args": [
                "--from",
                "git+https://github.com/amineelkouhen/mcp-cockroachdb.git",
                "cockroachdb-mcp-server"
            ],
            "env": {
                "CRDB_HOST": "127.0.0.1",
                "CRDB_PORT": "26257",
                "CRDB_DATABASE": "defaultdb",
                "CRDB_USERNAME": "root",
                "CRDB_PWD": ""
            }
        }
    }
}

CockroachDB MCP Server — by amineelkouhen config

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

{
    "mcpServers": {
        "cockroach": {
            "command": "uvx",
            "args": [
                "--from",
                "git+https://github.com/amineelkouhen/mcp-cockroachdb.git",
                "cockroachdb-mcp-server"
            ],
            "env": {
                "CRDB_HOST": "127.0.0.1",
                "CRDB_PORT": "26257",
                "CRDB_DATABASE": "defaultdb",
                "CRDB_USERNAME": "root",
                "CRDB_PWD": ""
            }
        }
    }
}

CockroachDB MCP Server — by amineelkouhen tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

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

Overview

What is CockroachDB?

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?

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

  • 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

  • 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

Frequently asked questions

1 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.

2 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.

3 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.

4 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.

5 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

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬