# PostgreSQL Database Query Server

Enable direct execution of custom SQL queries against PostgreSQL databases with support for parameterized queries and configurable timeouts. Securely manage database connections with SSL/TLS and conn…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add 1Levick3/postgresql-mcp-server

# Browse available tools
npx -y @smithery/cli@latest tool list 1Levick3/postgresql-mcp-server

# Get full schema for a tool
npx -y @smithery/cli@latest tool get 1Levick3/postgresql-mcp-server execute_custom_query

# Call a tool
npx -y @smithery/cli@latest tool call 1Levick3/postgresql-mcp-server execute_custom_query '{}'
```

## Tools (1)

- `execute_custom_query` — Execute a custom SQL query against the database. WARNING: Use with care. Do not expose to untrusted input.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get 1Levick3/postgresql-mcp-server <tool-name>
```

---

Source: https://github.com/1Levick3/postgresql-mcp-server
