MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), connection management, schema introspection, query execution with rollback and history.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add database -- npx -y @cocaxcode/database-mcp~/.codex/config.toml
[mcp_servers.database]
command = "npx"
args = ["-y", "@cocaxcode/database-mcp"]
# codex mcp add database -- npx -y @cocaxcode/database-mcp~/.cursor/mcp.json
{
"mcpServers": {
"database": {
"command": "npx",
"args": [
"-y",
"@cocaxcode/database-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"database": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cocaxcode/database-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"database": {
"command": "npx",
"args": [
"-y",
"@cocaxcode/database-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"database": {
"command": "npx",
"args": [
"-y",
"@cocaxcode/database-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"database": {
"command": "npx",
"args": [
"-y",
"@cocaxcode/database-mcp"
]
}
}
}