Lets agents connect to MySQL, PostgreSQL, SQLite and other databases to run queries, manage transactions and analyze performance.
Setup
Choose your client, copy the config, then fill in any required environment variables.
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"
]
}
}
}