Setup
Connect your AI assistant to CockroachDB documentation by configuring the MCP server. Choose your platform below for specific instructions.Cursor
-
Create or open the file
.cursor/mcp.jsonin your project directory -
Add the following configuration:
- Restart Cursor to apply the configuration
- You can now ask questions about CockroachDB documentation directly in Cursor
VS Code
Requires VS Code 1.102 or later with GitHub Copilot.
-
Create or open the file
.vscode/mcp.jsonin your project directory -
Add the following configuration:
- Reload VS Code window (⌘+R)
- The CockroachDB documentation is now available through GitHub Copilot in VS Code
Claude Code
-
Run the following command in your terminal:
-
Execute
/mcpin Claude Code and authenticate via browser when prompted - CockroachDB documentation is now accessible in your Claude Code environment
ChatGPT Desktop
- Open ChatGPT Desktop
- Go to Settings → Features and enable Developer mode
- Navigate to Settings → MCP Servers
- Click Add Server and enter:
- Name:
cockroachdb-docs - URL:
https://cockroachdb.mcp.kapa.ai
- Name:
- CockroachDB documentation is now accessible in ChatGPT Desktop
Claude Desktop
-
Open Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Add the CockroachDB Docs MCP server to your configuration:
- Save the file and restart Claude Desktop
- You can now query CockroachDB documentation directly in Claude Desktop
Other MCP Clients
For other MCP-compatible clients, use the following server configuration: Server URL:https://cockroachdb.mcp.kapa.ai
Generic configuration format:
Capabilities
Once connected, your AI assistant can answer questions about CockroachDB directly from the official documentation. Example queries include:Multi-Region Configuration
- “How do I set up a multi-region CockroachDB cluster?”
- “What are the best practices for configuring region survival goals?”
- “Show me how to implement follow-the-workload patterns”
Performance Optimization
- “What are the recommended techniques for optimizing query performance?”
- “How do I identify and resolve hot spots in my cluster?”
- “Explain the best practices for index design in CockroachDB”
Security Features
- “How do I configure TLS/SSL encryption for my cluster?”
- “What are the steps to implement role-based access control?”
- “Show me how to set up audit logging in CockroachDB”
SQL Syntax and Features
- “What’s the syntax for creating a changefeed?”
- “How do I use window functions in CockroachDB?”
- “Explain the differences between JSONB operators in CockroachDB”
Troubleshooting
- “How do I diagnose and fix connection refused errors?”
- “What steps should I take when encountering transaction retry errors?”
- “How do I investigate and resolve node liveness issues?”
Operations and Maintenance
- “What’s the recommended backup strategy for production clusters?”
- “How do I perform a rolling upgrade of my cluster?”
- “Show me the best practices for monitoring CockroachDB”
Troubleshooting
Connection Issues
If your AI assistant cannot connect to the CockroachDB documentation:- Verify your internet connection
- Check that the MCP server URL is correctly configured:
https://cockroachdb.mcp.kapa.ai - Restart your AI assistant application
- Ensure you have the latest version of your AI assistant
No Results
If queries return no results:- Try rephrasing your question to be more specific
- Include “CockroachDB” in your query for better context
- Check the CockroachDB documentation directly to verify the information exists
Configuration Not Working
If the configuration doesn’t seem to take effect:- Ensure the configuration file is saved in the correct location
- Check for JSON syntax errors in your configuration
- Fully quit and restart your application (not just reload)
- For Claude Desktop: Verify that
npxis available in your systemPATH
Feedback and Support
For issues or feedback about the CockroachDB Docs MCP Server:- Report documentation issues on GitHub
- Join the CockroachDB Community Slack for help

