MCP server enabling natural language management, monitoring, and querying of CockroachDB databases.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Cockroachdb.
alter_table_add_columnCallable MCP tool function
alter_table_drop_columnCallable MCP tool function
alter_table_rename_columnCallable MCP tool function
list_schemasCallable MCP tool function
create_schemaCallable MCP tool function
drop_schemaCallable MCP tool function
The CockroachDB MCP Server is a natural language interface designed for LLMs and agentic applications to manage, monitor, and query data in CockroachDB. It integrates seamlessly with MCP (Model Content Protocol) clients, such as Claude Desktop or Cursor, enabling AI-driven workflows to interact directly with your database.
--read-only mode, explicit confirm=True for destructive ops, redacted DSN responses.The CockroachDB MCP Server exposes CockroachDB as a set of MCP tools. Requests flow from any MCP client through a transport, into the safety layer, then to one of the thirteen tool categories, and finally to CockroachDB via an asyncpg connection pool.
The tools are organized into thirteen categories, grouped above by concern. Every write-shaped tool is gated by --read-only. Every destructive tool also requires --allow-destructive plus a per-call confirm=True parameter; see the Safety Model section.
Purpose: Provides tools for monitoring and managing CockroachDB clusters.
Summary:
Purpose: Handles database-level operations and connection management.
Summary:
Purpose: Provides tools for managing tables, indexes, views, schemas, and relationships in CockroachDB.
Summary:
alter_table_add_column, alter_table_drop_column, alter_table_rename_column.list_schemas, create_schema, drop_schema).Purpose: Executes and manages SQL queries and transactions.
Summary:
Purpose: Manage SQL users, roles, and privileges. Use this from an administrative agent to provision the agent's own scoped (non-root) user.
Summary:
list_users, create_user, drop_user, alter_user_password.create_role, drop_role, grant_role, revoke_role.show_grants, grant_privileges, revoke_privileges.Privileges are validated against an allowlist (SELECT, INSERT, UPDATE,
DELETE, ALL, BACKUP, RESTORE, MODIFYCLUSTERSETTING, ...). Identifiers
go through the same strict regex as everywhere else.
Purpose: Search VECTOR columns with CockroachDB's similarity operators (v25.2+) and manage C-SPANN ANN indexes.
Summary:
vector_similarity_search with metric of cosine (default), l2, ip,
or auto (matches the existing index opclass). Returns distance and a
derived similarity field.create_cspann_index with metric โ opclass mapping
(vector_cosine_ops / vector_l2_ops / vector_ip_ops).drop_cspann_index (destructive).The query vector is always passed as a $1::VECTOR parameter; identifier and
optional where clause values are validated. For normalized embeddings (e.g.
Takara DS1, OpenAI text-embedding-3) all three metrics rank identically; the
default cosine is the safest because it ignores magnitude.
Purpose: Observe and control long-running CockroachDB jobs (BACKUP, RESTORE, IMPORT, SCHEMA CHANGE, CHANGEFEED).
Summary:
list_jobs (filter by status and type), get_job_status.pause_job, resume_job, cancel_job (destructive).Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/amineelkouhen-mcp-cockroachdb)<a href="https://allmcps.com/mcp/amineelkouhen-mcp-cockroachdb"><img src="https://allmcps.com/api/badge/amineelkouhen-mcp-cockroachdb?style=directory" alt="MCP Cockroachdb on AllMCPs" /></a>