MCP Database Server

v1.3.1
io.github.Souhar-dya/mcp-db-server Checked 4 hours ago Published 7 months ago

MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling.

Values you need

VariableWhat it is
DATABASE_URLoptional 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.1
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. 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, ….
  4. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json