MCP server for interacting with PostgreSQL databases
Connect Runs on your machine
claude mcp add postgres -e POSTGRES_USER=<POSTGRES_USER> -e POSTGRES_PASSWORD=<POSTGRES_PASSWORD> -- npx -y @marcelo-ochoa/[email protected]
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@marcelo-ochoa/[email protected]"
],
"env": {
"POSTGRES_USER": "<POSTGRES_USER>",
"POSTGRES_PASSWORD": "<POSTGRES_PASSWORD>"
}
}
}
}
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@marcelo-ochoa/[email protected]"
],
"env": {
"POSTGRES_USER": "<POSTGRES_USER>",
"POSTGRES_PASSWORD": "<POSTGRES_PASSWORD>"
}
}
}
}
{
"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
| Name | Description |
|---|---|
POSTGRES_USEROptional | PostgreSQL user |
POSTGRES_PASSWORDOptional, secret | PostgreSQL password |
Details
| Package | @marcelo-ochoa/[email protected] (NPM, stdio) |
| First published | 11 Mar 2026 |
| Last updated | 11 Mar 2026 |
| Registry name | io.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.
