# CockroachDB MCP MCP Server

> **CockroachDB MCP MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to CockroachDB MCP.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/cockroachabs-mcp
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

Query and manage CockroachDB databases through AI agents. Explore database schemas, inspect tables, execute SQL queries, analyze query performance, monitor cluster health, and manage database operations with role-based access controls.

---

## Details

- Server ID: `cockroachabs-mcp`
- Version: 1.0.0
- Tools: 12
- Authentication: OAuth, managed by MewCP
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — CockroachDB MCP has to be in the toolset
first. In order:

1. Add CockroachDB MCP to your toolset at https://mewcp.com/mcp/cockroachabs-mcp
2. Connect your CockroachDB MCP account (OAuth); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `manage_connections(requests?)` — connection status and account aliases, plus
  links the user opens to add an app or connect an account
- `call_tool(app_maskedId, tool_name, args, alias?)` — execute

If CockroachDB MCP isn't in the toolset or connected yet, `manage_connections` with
app_maskedId `cockroachabs-mcp` returns a link that adds it and connects an account.

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (12)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `create_database` _(write)_ — Create a new database in the cluster
- `create_table` _(write)_ — Create a new table in a database using a CREATE TABLE DDL statement. Only CREATE TABLE statements are allowed. Supports CREATE TABLE AS SELECT for creating…
- `explain_query` _(read)_ — Show query execution plan without executing the query
- `get_cluster` _(read)_ — Get detailed information for the CockroachDB cluster
- `get_table_schema` _(read)_ — Get detailed schema information for a table including columns and indexes
- `insert_rows` _(destructive)_ — Insert rows into an existing table. Only INSERT statements are allowed, including INSERT INTO ... VALUES and INSERT INTO ... SELECT.
- `list_clusters` _(read)_ — List all CockroachDB clusters accessible to the authorized user
- `list_databases` _(read)_ — List all databases in the CockroachDB cluster.
- `list_tables` _(read)_ — List all tables in a database.
- `select_query` _(read)_ — Execute a read-only SELECT query on the CockroachDB cluster. Automatically adds LIMIT 25 if not specified. Maximum LIMIT is 10000. Use LIMIT with OFFSET for…
- `show_running_queries` _(read)_ — List currently executing queries on the cluster
- `show_statement` _(read)_ — Execute a SHOW statement for introspection (e.g., SHOW SCHEMAS, SHOW INDEXES, SHOW REGIONS, SHOW CONSTRAINTS). Results are limited to 100 rows by default.…

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/cockroachabs-mcp/connect/claude
- ChatGPT: https://mewcp.com/mcp/cockroachabs-mcp/connect/chatgpt
- Grok: https://mewcp.com/mcp/cockroachabs-mcp/connect/grok
- DeepSeek Harness: https://mewcp.com/mcp/cockroachabs-mcp/connect/dsh
- Mistral Vibe: https://mewcp.com/mcp/cockroachabs-mcp/connect/mistral-vibe
- VS Code: https://mewcp.com/mcp/cockroachabs-mcp/connect/vscode
- Cursor: https://mewcp.com/mcp/cockroachabs-mcp/connect/cursor
- Codex: https://mewcp.com/mcp/cockroachabs-mcp/connect/codex
- Claude Code: https://mewcp.com/mcp/cockroachabs-mcp/connect/claude-code
- OpenCode: https://mewcp.com/mcp/cockroachabs-mcp/connect/opencode
- OpenClaw: https://mewcp.com/mcp/cockroachabs-mcp/connect/openclaw
- Antigravity: https://mewcp.com/mcp/cockroachabs-mcp/connect/antigravity
- Hermes: https://mewcp.com/mcp/cockroachabs-mcp/connect/hermes
- Kimi Code: https://mewcp.com/mcp/cockroachabs-mcp/connect/kimi-code
- Grok Build: https://mewcp.com/mcp/cockroachabs-mcp/connect/grok-build
- Devin Desktop: https://mewcp.com/mcp/cockroachabs-mcp/connect/devin-desktop
- Zed: https://mewcp.com/mcp/cockroachabs-mcp/connect/zed
- Muse Code: https://mewcp.com/mcp/cockroachabs-mcp/connect/muse-code
- Cline: https://mewcp.com/mcp/cockroachabs-mcp/connect/cline
- Kilo Code: https://mewcp.com/mcp/cockroachabs-mcp/connect/kilo-code
- Kiro: https://mewcp.com/mcp/cockroachabs-mcp/connect/kiro
- Junie: https://mewcp.com/mcp/cockroachabs-mcp/connect/junie
- Amp: https://mewcp.com/mcp/cockroachabs-mcp/connect/amp
- Qwen Code: https://mewcp.com/mcp/cockroachabs-mcp/connect/qwen-code
- Goose: https://mewcp.com/mcp/cockroachabs-mcp/connect/goose
- Python: https://mewcp.com/mcp/cockroachabs-mcp/connect/python
- TypeScript: https://mewcp.com/mcp/cockroachabs-mcp/connect/typescript