From postgres
Connects Claude to a PostgreSQL database to explore schemas, run queries, and generate code from natural language. Needs database credentials.
Ships in postgres. Installing the plugin adds it to Claude Code.
Copy this JSON into your .mcp.json to enable this server
Add to your .mcp.json:
{
"mcpServers": {
"postgresql": {
"command": "npx",
"args": [
"-y",
"@toolbox-sdk/[email protected]",
"--prebuilt",
"postgres",
"--stdio"
],
"env": {
"POSTGRES_HOST": "${user_config.postgres_host}",
"POSTGRES_PORT": "${user_config.postgres_port}",
"POSTGRES_USER": "${user_config.postgres_user}",
"POSTGRES_DATABASE": "${user_config.postgres_database}",
"POSTGRES_PASSWORD": "${user_config.postgres_password}",
"POSTGRES_QUERY_PARAMS": "${user_config.postgres_query_params}"
}
}
}
}Declared capabilities of this MCP server
Environment variables set when the server starts
POSTGRES_HOST=${user_config.postgres_host}POSTGRES_PORT=${user_config.postgres_port}POSTGRES_USER=${user_config.postgres_user}POSTGRES_DATABASE=${user_config.postgres_database}POSTGRES_PASSWORD=${user_config.postgres_password}POSTGRES_QUERY_PARAMS=${user_config.postgres_query_params}Command-line arguments passed to the server process
Server configuration and connection parameters
npxFirst indexed Mar 28, 2026
npx claudepluginhub googlecloudplatform/postgres-plugin --plugin postgres