Lets agents connect to MySQL, PostgreSQL, SQLite and other databases to run queries, manage transactions and analyze performance.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add db -- docker pull freepeak/db-mcp-server:latest~/.codex/config.toml
[mcp_servers.db]
command = "docker"
args = ["pull", "freepeak/db-mcp-server:latest"]
# codex mcp add db -- docker pull freepeak/db-mcp-server:latest~/.cursor/mcp.json
{
"mcpServers": {
"db": {
"command": "docker",
"args": [
"pull",
"freepeak/db-mcp-server:latest"
]
}
}
}.vscode/mcp.json
{
"servers": {
"db": {
"type": "stdio",
"command": "docker",
"args": [
"pull",
"freepeak/db-mcp-server:latest"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"db": {
"command": "docker",
"args": [
"pull",
"freepeak/db-mcp-server:latest"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"db": {
"command": "docker",
"args": [
"pull",
"freepeak/db-mcp-server:latest"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"db": {
"command": "docker",
"args": [
"pull",
"freepeak/db-mcp-server:latest"
]
}
}
}