
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

An MCP server that lets clients such as Cursor connect to and interact directly with a CockroachDB database.
CockroachDB MCP Server is cataloged as an MCP server attributed to swayingleaves. An MCP server that lets clients such as Cursor connect to and interact directly with a CockroachDB database. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for CockroachDB MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It connects using psycopg2 directly, which automatically handles special characters in usernames and passwords without additional URL encoding.
README.md · dd3834d70674 · 采集于 2026-11-13 11:46:44 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
This is a CockroachDB MCP server for Cursor, implemented based on the Model Context Protocol (MCP) specification, allowing you to interact directly with CockroachDB database in Cursor.
To install CockroachDB MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Swayingleaves/cockroachdb-mcp-server --client claude
pip install -r requirements.txt
curl -LsSf https://astral.sh/uv/install.sh | sh
{
"mcpServers": {
"cockroachdb-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/local/cockroachdb-mcp",
"run",
"server.py"
],
"jdbc_url": "jdbc:postgresql://localhost:26257/defaultdb",
"username": "root",
"password": "root"
}
}
}
Connect to CockroachDB database.
Parameters:
jdbc_url: JDBC connection URL (e.g., jdbc:postgresql://localhost:26257/defaultdb)username: Database usernamepassword: Database passwordInitialize database connection, can be called immediately after connecting to the MCP server to establish a database connection.
Parameters:
jdbc_url: JDBC connection URL (e.g., jdbc:postgresql://localhost:26257/defaultdb)username: Database usernamepassword: Database passwordManually disconnect from the database.
No parameters.
Get all tables from the database.
No parameters.
Get structure information of a specified table.
Parameters:
table_name: Table nameExecute SQL query.
Parameters:
query: SQL query statementGet database connection status.
Returns:
"Not connected""Connected - [Database version]""Connection error - [Error message]"SQL query template to help users write SQL queries.
Server logs are saved in logs/cockroachdb_mcp.log file. You can check this file to understand the server's running status and detailed logs.
The log file uses a rotating log mechanism, with each log file maximum size of 10MB and keeping up to 5 backup files to prevent excessive disk space usage.
This server uses psycopg2 to connect directly to CockroachDB database, which automatically handles special characters in usernames and passwords without additional URL encoding. This ensures correct database connection even when passwords contain special characters (such as @, %, &, etc.).
The server is configured with TCP keep-alive mechanism by default to prevent connections from being closed due to long periods of inactivity:
keepalives=1: Enable TCP keepalivekeepalives_idle=30: Send keepalive after 30 seconds of idle timekeepalives_interval=10: Send keepalive every 10 secondskeepalives_count=5: Give up after 5 attemptsIf you encounter problems, please check the log file logs/cockroachdb_mcp.log, which will help you understand the server's running status and potential issues.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for CockroachDB MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/cockroachdb-mcp-server-swayingleaves)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.