MCP Database Server
v1.3.1MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling.
Values you need
| Variable | What it is | |
|---|---|---|
DATABASE_URL | optional | Database connection URL. Defaults to local SQLite in /data/default.db. |
Docker discovery passed
Requires Docker
Run in a terminal
claude mcp add mcp-db-server -- docker run -i --rm docker.io/souhardyak/mcp-db-server:1.3.1Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-db-server": {
"args": [
"run",
"-i",
"--rm",
"docker.io/souhardyak/mcp-db-server:1.3.1"
],
"command": "docker"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-db-server": {
"args": [
"run",
"-i",
"--rm",
"docker.io/souhardyak/mcp-db-server:1.3.1"
],
"command": "docker"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"mcp-db-server": {
"args": [
"run",
"-i",
"--rm",
"docker.io/souhardyak/mcp-db-server:1.3.1"
],
"command": "docker",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-db-server]
command = "docker"
args = ["run", "-i", "--rm", "docker.io/souhardyak/mcp-db-server:1.3.1"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: query_database, list_tables, describe_table, execute_sql, connect_to_database, get_connection_examples, get_current_database_info, execute_unsafe_sql, ….
- If it fails, check that the required runtime is installed (Docker) and that the values above are set.
Machine-readable: install.md · manifest.json