postgresql-mcp
v1.2.2MCP server for PostgreSQL database operations - query, explore schemas, and analyze tables
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add postgresql-mcp -- uvx postgresql-mcp==1.2.2Add to
claude_desktop_config.json{
"mcpServers": {
"postgresql-mcp": {
"args": [
"postgresql-mcp==1.2.2"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"postgresql-mcp": {
"args": [
"postgresql-mcp==1.2.2"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"postgresql-mcp": {
"args": [
"postgresql-mcp==1.2.2"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.postgresql-mcp]
command = "uvx"
args = ["postgresql-mcp==1.2.2"]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: list_databases, query, execute, explain_query, list_schemas, list_tables, describe_table, table_stats, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json