CockroachDB MCP 服务器
一个连接 CockroachDB 的 MCP 服务器,提供数据库和表结构资源、执行 SQL 查询以及分析查询提示。
快速入门
- 克隆仓库
- 安装依赖:运行
pnpm install
- 构建项目:运行
npx tsc
- 启动服务器:
使用命令
node dist/server.js postgres://user:password@host:port/database [auth_token]
- 配置工具(如 Claude 或 Cline):
- 添加 server.js 路径和数据库 URL 到配置文件中
- 重启工具
- 示例查询:尝试 "列出数据库" 或 "获取表结构"