L'Agora
MCPLocal

io.github.marcelo-ochoa/postgres

MCP server for interacting with PostgreSQL databases

Repository
github.com/marcelo-ochoa/servers
Version
1.0.8
Author
marcelo-ochoa (namespace verified by the registry)
Source
Official MCP registry (updated Mar 11, 2026)

How to install it

Variables to fill in: POSTGRES_USER, POSTGRES_PASSWORD.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add postgres -e POSTGRES_USER=YOUR_POSTGRES_USER -e POSTGRES_PASSWORD=YOUR_POSTGRES_PASSWORD -- npx -y @marcelo-ochoa/[email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/[email protected]"
      ],
      "env": {
        "POSTGRES_USER": "YOUR_POSTGRES_USER",
        "POSTGRES_PASSWORD": "YOUR_POSTGRES_PASSWORD"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/[email protected]"
      ],
      "env": {
        "POSTGRES_USER": "YOUR_POSTGRES_USER",
        "POSTGRES_PASSWORD": "YOUR_POSTGRES_PASSWORD"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "postgres": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/[email protected]"
      ],
      "env": {
        "POSTGRES_USER": "YOUR_POSTGRES_USER",
        "POSTGRES_PASSWORD": "YOUR_POSTGRES_PASSWORD"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.marcelo-ochoa/postgres on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.marcelo-ochoa/postgres on L’Agora](https://lagora.dev/badge/io.github.marcelo-ochoa/postgres.svg?lang=en)](https://lagora.dev/en/entry/io.github.marcelo-ochoa/postgres)

HTML

<a href="https://lagora.dev/en/entry/io.github.marcelo-ochoa/postgres"><img src="https://lagora.dev/badge/io.github.marcelo-ochoa/postgres.svg?lang=en" alt="io.github.marcelo-ochoa/postgres on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

io.github.marcelo-ochoa/qnap Local

io.github.marcelo-ochoa/oracle Local

io.github.marcelo-ochoa/mysql Local

io.github.marcelo-ochoa/mikrotik Local

Report this entry