PostgreSQL administration and observability with a sandboxed code mode, schema introspection, migration tracking and support for extensions such as pgvector and PostGIS.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add postgresql -- npx -y @neverinfamous/postgres-mcp~/.codex/config.toml
[mcp_servers.postgresql]
command = "npx"
args = ["-y", "@neverinfamous/postgres-mcp"]
# codex mcp add postgresql -- npx -y @neverinfamous/postgres-mcp~/.cursor/mcp.json
{
"mcpServers": {
"postgresql": {
"command": "npx",
"args": [
"-y",
"@neverinfamous/postgres-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"postgresql": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@neverinfamous/postgres-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"postgresql": {
"command": "npx",
"args": [
"-y",
"@neverinfamous/postgres-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"postgresql": {
"command": "npx",
"args": [
"-y",
"@neverinfamous/postgres-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"postgresql": {
"command": "npx",
"args": [
"-y",
"@neverinfamous/postgres-mcp"
]
}
}
}