NestDaddy

Postgres

io.github.marcelo-ochoa/postgres · v1.0.8

MCP server for interacting with PostgreSQL databases

Connect Runs on your machine

Terminal
claude mcp add postgres -e POSTGRES_USER=<POSTGRES_USER> -e POSTGRES_PASSWORD=<POSTGRES_PASSWORD> -- npx -y @marcelo-ochoa/[email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/[email protected]"
      ],
      "env": {
        "POSTGRES_USER": "<POSTGRES_USER>",
        "POSTGRES_PASSWORD": "<POSTGRES_PASSWORD>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/[email protected]"
      ],
      "env": {
        "POSTGRES_USER": "<POSTGRES_USER>",
        "POSTGRES_PASSWORD": "<POSTGRES_PASSWORD>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "postgres": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/[email protected]"
      ],
      "env": {
        "POSTGRES_USER": "<POSTGRES_USER>",
        "POSTGRES_PASSWORD": "<POSTGRES_PASSWORD>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
POSTGRES_USER
Optional
PostgreSQL user
POSTGRES_PASSWORD
Optional, secret
PostgreSQL password

Details

Package@marcelo-ochoa/[email protected] (NPM, stdio)
First published11 Mar 2026
Last updated11 Mar 2026
Registry nameio.github.marcelo-ochoa/postgres

More databases servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.