[Home](/index.md) › [MCP servers](/mcp.md) › CockroachDB Cloud MCP server

# CockroachDB Cloud MCP server

MCP server

- 12 callable tools
- 6 capabilities

[Installation guide](https://docs.cockroachlabs.com/docs/cockroachcloud/connect-to-the-cockroachdb-cloud-mcp-server)

## Overview

Cockroach Labs' managed MCP server that lets AI coding tools and agents access the clusters in a CockroachDB Cloud organization. It works with CockroachDB clusters, exploring schemas and running SQL statements.

### Capabilities

- List clusters, databases, tables and table schemas
- Run SELECT, EXPLAIN and SHOW statements against cluster data
- Show currently executing queries
- Create databases and tables
- Insert rows into tables
- Limit a connection to a single cluster

## Works with

The products your agent can work with through this server.

- [CockroachDB](/tools/cockroachdb.md): Distributed SQL database

## Tools

The callable functions your agent uses to work with this server.

### `list_clusters`

List all accessible clusters.

### `get_cluster`

Get detailed cluster information.

### `list_databases`

List databases in the cluster.

### `list_tables`

List tables in a database.

### `get_table_schema`

Get detailed schema for a table.

### `select_query`

Execute a SELECT statement.

### `explain_query`

Execute an EXPLAIN statement.

### `show_statement`

Execute a SHOW statement.

### `show_running_queries`

List currently executing queries.

### `create_database`

Create a new database.

### `create_table`

Create a new table.

### `insert_rows`

Insert rows into a table.

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add CockroachDB Cloud MCP server to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http cockroachdb-cloud https://cockroachlabs.cloud/mcp
```

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add CockroachDB Cloud MCP server to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=cockroachdb-cloud&config=eyJ1cmwiOiJodHRwczovL2NvY2tyb2FjaGxhYnMuY2xvdWQvbWNwIn0%3D)

```json
{
  "mcpServers": {
    "cockroachdb-cloud": {
      "url": "https://cockroachlabs.cloud/mcp"
    }
  }
}
```

### Add CockroachDB Cloud MCP server to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

```json
{
  "servers": {
    "cockroachdb-cloud": {
      "type": "http",
      "url": "https://cockroachlabs.cloud/mcp"
    }
  }
}
```

### Add CockroachDB Cloud MCP server to Codex

Run this in your terminal:

```sh
codex mcp add cockroachdb-cloud --url https://cockroachlabs.cloud/mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.cockroachdb-cloud]
url = "https://cockroachlabs.cloud/mcp"
```

If the server uses OAuth, sign in with `codex mcp login cockroachdb-cloud`.

### Add CockroachDB Cloud MCP server to Claude

Add it as a custom connector with this URL:

```
https://cockroachlabs.cloud/mcp
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add CockroachDB Cloud MCP server to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://cockroachlabs.cloud/mcp
```

[Read the installation guide](https://docs.cockroachlabs.com/docs/cockroachcloud/connect-to-the-cockroachdb-cloud-mcp-server)

## Related MCP servers

Other servers for the same products, or from the same vendor.

- [CockroachDB docs MCP](/mcp/cockroachdb-docs-3.md)

## Sources

Documentation and source code reviewed on 19 November 2026.

- [docs.cockroachlabs.com/docs/cockroachcloud/connect-to-the-cockroachdb-cloud-mcp-server](https://docs.cockroachlabs.com/docs/cockroachcloud/connect-to-the-cockroachdb-cloud-mcp-server)
- [docs.cockroachlabs.com/docs/cockroachcloud/managing-access.md](https://docs.cockroachlabs.com/docs/cockroachcloud/managing-access.md)
- [docs.cockroachlabs.com/docs/cockroachcloud/authorization.md](https://docs.cockroachlabs.com/docs/cockroachcloud/authorization.md)
