Requires Node 18+ on your system so npx can fetch the package on first run. Claude Code persists MCP servers via its CLI — no config file to edit, just run the command below once. Paste the config below, then follow the reload step to register @edelciomolina/postgres-mcp.
Run the command below in your terminal — Claude Code persists it for you.claude mcp add Postgres Tools --env MCP_KEY_HOST=DB_HOST --env MCP_KEY_PORT=DB_PORT --env MCP_KEY_NAME=DB_NAME --env MCP_KEY_SSLMODE=DB_SSLMODE --env MCP_KEY_USER=DB_USER --env MCP_KEY_PASS=DB_PASS -- npx @edelciomolina/postgres-mcp