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

# CockroachDB docs MCP

MCP server

- 3 callable tools
- Read only
- 3 capabilities

[Installation guide](https://docs.cockroachlabs.com/mcp)

## Overview

Cockroach Labs provides this remote MCP server, which gives AI agents access to the CockroachDB documentation, including guides, code examples, API references and OpenAPI specs.

### Capabilities

- Search the CockroachDB knowledge base
- Read CockroachDB documentation pages and OpenAPI specs through a read-only virtual filesystem
- Submit feedback about problems with the documentation site

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

### `search_cockroach_db`

Search across the CockroachDB knowledge base to find relevant information, code examples, API references, and guides.

### `query_docs_filesystem_cockroach_db`

Run a read-only shell-like query against a virtualized, in-memory filesystem rooted at `/` that contains ONLY the CockroachDB documentation pages and OpenAPI specs.

### `submit_feedback`

Report a problem with this documentation site so the docs team can fix it.

## Installation

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

### Add CockroachDB docs MCP to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http cockroachdb-docs-3 https://docs.cockroachlabs.com/mcp
```

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

### Add CockroachDB docs MCP 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-docs-3&config=eyJ1cmwiOiJodHRwczovL2RvY3MuY29ja3JvYWNobGFicy5jb20vbWNwIn0%3D)

```json
{
  "mcpServers": {
    "cockroachdb-docs-3": {
      "url": "https://docs.cockroachlabs.com/mcp"
    }
  }
}
```

### Add CockroachDB docs MCP 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-docs-3": {
      "type": "http",
      "url": "https://docs.cockroachlabs.com/mcp"
    }
  }
}
```

### Add CockroachDB docs MCP to Codex

Run this in your terminal:

```sh
codex mcp add cockroachdb-docs-3 --url https://docs.cockroachlabs.com/mcp
```

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

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

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

### Add CockroachDB docs MCP to Claude

Add it as a custom connector with this URL:

```
https://docs.cockroachlabs.com/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 docs MCP to other clients

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

```
https://docs.cockroachlabs.com/mcp
```

[Read the installation guide](https://docs.cockroachlabs.com/mcp)

## Related MCP servers

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

- [CockroachDB Cloud MCP server](/mcp/cockroachdb-cloud.md)
