data
CockroachDB MCP Gateway for AI Agents
Expose CockroachDB tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.
7 functions 6 read 1 write Bearer token auth
CockroachDB MCP Gateway
Expose CockroachDB to MCP clients with `kosmokrator mcp:serve --integration=cockroachdb`.
If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash kosmokrator mcp:gateway:install --integration=cockroachdb --write=deny --json {
"mcpServers": {
"kosmokrator-cockroachdb": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=cockroachdb",
"--write=deny"
]
}
}
} Serve Manually
kosmokrator mcp:serve --integration=cockroachdb --write=deny MCP Tool Names
KosmoKrator exposes integration tools through the gateway with stable names:
| MCP tool | Source function | Type |
|---|---|---|
integration__cockroachdb__cockroachdb_list_clusters | cockroachdb.cockroachdb_list_clusters | Read read |
integration__cockroachdb__cockroachdb_get_cluster | cockroachdb.cockroachdb_get_cluster | Read read |
integration__cockroachdb__cockroachdb_create_cluster | cockroachdb.cockroachdb_create_cluster | Write write |
integration__cockroachdb__cockroachdb_list_databases | cockroachdb.cockroachdb_list_databases | Read read |
integration__cockroachdb__cockroachdb_get_database | cockroachdb.cockroachdb_get_database | Read read |
integration__cockroachdb__cockroachdb_list_users | cockroachdb.cockroachdb_list_users | Read read |
integration__cockroachdb__cockroachdb_get_current_user | cockroachdb.cockroachdb_get_current_user | Read read |
Write Access
Start with --write=deny for read-only MCP clients. Use --write=ask or
--write=allow only when the client and workspace are trusted.