A Model Context Protocol server for interacting with CockroachDB
{
"mcpServers": {
"cockroachdb-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol server for interacting with CockroachDB
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 160 days ago.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Manage Supabase projects — databases, auth, storage, and edge functions
Query and manage PostgreSQL databases directly from AI assistants
An official Qdrant Model Context Protocol (MCP) server implementation
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
MCP Security Weekly
Get CVE alerts and security updates for Cockroachdb Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server that provides tools for interacting with CockroachDB. This server enables AI assistants to perform database operations, query data, manage schemas, and monitor cluster health through a standardized interface.
Note: This MCP Server is a proof-of-concept implementation and is not intended for production use.
sequenceDiagram
participant User as User
participant Client as Claude Desktop/<br/>Cline/MCP Inspector
participant Server as MCP Server
participant Registry as Tool Registry
participant DBMgr as Database Manager
participant DB as CockroachDB
Note over Client,DB: Initialization Phase
Client->>Server: Connect via STDIO
Server->>Registry: Register Tools
Server->>DBMgr: Initialize with connection string
DBMgr->>DB: Connect to database
Note over User,DB: Request/Response Flow
User->>Client: Natural language query<br/>("Show me all tables")
Client->>Server: JSON-RPC request: tools/call<br/>(e.g., list_tables)
Server->>Registry: Lookup tool handler
Registry->>DBMgr: Invoke database operation
DBMgr->>DB: Execute SQL command
DB-->>DBMgr: Return results
DBMgr-->>Server: Format response
Server-->>Client: JSON-RPC response<br/>with tool results
Client-->>User: Natural language response<br/>("Here are your tables: ...")
git clone https://github.com/rahulcrl/cockroachdb-mcp-server.git
cd cockroachdb-mcp-server
go mod download
go build -o cockroachdb-mcp-server
# Via command-line flag
./cockroachdb-mcp-server -connection-string "postgresql://root:password@localhost:26257/defaultdb?sslmode=disable"
# Via environment variable
export COCKROACHDB_CONNECTION_STRING="postgresql://root:password@localhost:26257/defaultdb?sslmode=disable"
./cockroachdb-mcp-server
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"cockroachdb": {
"command": "/path/to/cockroachdb-mcp-server",
"args": [
"-connection-string",
"postgresql://root:password@localhost:26257/defaultdb?sslmode=disable"
]
}
}
}
Note: You can also start the MCP server without connection parameters and use the connect_to_cockroachdb tool to connect dynamically:
{
"mcpServers": {
"cockroachdb": {
"command": "/path/to/cockroachdb-mcp-server"
}
}
}
Then use the `connect_to_cockroachdb