Read-only PostgreSQL access that lets agents inspect schemas across multiple namespaces and run read-only queries.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add postgresql-multi-schema -- npx -y mcp-server-postgres-multi-schema postgresql://localhost/mydb public,audit~/.codex/config.toml
[mcp_servers.postgresql-multi-schema]
command = "npx"
args = ["-y", "mcp-server-postgres-multi-schema", "postgresql://localhost/mydb", "public,audit"]
# codex mcp add postgresql-multi-schema -- npx -y mcp-server-postgres-multi-schema postgresql://localhost/mydb public,audit~/.cursor/mcp.json
{
"mcpServers": {
"postgresql-multi-schema": {
"command": "npx",
"args": [
"-y",
"mcp-server-postgres-multi-schema",
"postgresql://localhost/mydb",
"public,audit"
]
}
}
}.vscode/mcp.json
{
"servers": {
"postgresql-multi-schema": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-server-postgres-multi-schema",
"postgresql://localhost/mydb",
"public,audit"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"postgresql-multi-schema": {
"command": "npx",
"args": [
"-y",
"mcp-server-postgres-multi-schema",
"postgresql://localhost/mydb",
"public,audit"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"postgresql-multi-schema": {
"command": "npx",
"args": [
"-y",
"mcp-server-postgres-multi-schema",
"postgresql://localhost/mydb",
"public,audit"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"postgresql-multi-schema": {
"command": "npx",
"args": [
"-y",
"mcp-server-postgres-multi-schema",
"postgresql://localhost/mydb",
"public,audit"
]
}
}
}