CockroachDB MCP
Official listing: built and published by Cockroach Labs. More from Cockroach Labs
Queries CockroachDB clusters in plain language: explore schemas, run SELECTs, explain plans, and opt in to writes, via a local server or the CockroachDB Cloud endpoint.
Use it now
Keep it with up to 9 other tools you're setting up, then share them all as one link.
Try this first
Ask your assistant, with CockroachDB MCP connected:
- Schema Exploration
Use CockroachDB MCP to list databases, tables, and SQL users: ‹what you need›
- Read Queries
Use CockroachDB MCP to execute SELECT and SHOW statements: ‹what you need›
- Cluster Inspection
Use CockroachDB MCP to get cluster identity and version: ‹what you need›
Connect it over MCP
{
"mcpServers": {
"cockroachdb-mcp": {
"url": "https://cockroachlabs.cloud/mcp"
}
}
}claude mcp add --transport http cockroachdb-mcp https://cockroachlabs.cloud/mcp
In Grok, ChatGPT and other assistants, add a custom connector with the address https://cockroachlabs.cloud/mcp (how, step by step).
It may ask you to sign in to Cockroach Labs or for a key when you add it; the setup guide says which.
Setup guide: docs.cockroachlabs.com/docs/stable/install-cockroachdb-mcp-…
Compare
Press Compare to add it to the tray at the bottom of the window, then pick up to 2 others anywhere on the site.
- Access
- MCP
- Auth
- OAuth 2.0
- Skills
- 5
Skills
Schema Exploration
Lists databases, tables, and SQL users, and returns a table's schema with its columns and indexes from a live cluster.
Read Queries
Executes SELECT and SHOW statements and returns EXPLAIN plans, with every SQL session forced read-only by default.
Cluster Inspection
Returns cluster identity and version, lists nodes with liveness and locality, and shows in-flight SQL statements.
Opt-in Writes
Creates databases and tables and inserts, updates, or deletes rows once write tools are enabled, with WHERE required.
Cloud Cluster Access
Connects to every cluster in a CockroachDB Cloud organization over OAuth or an API key, or scopes a connection to one cluster.