L'Agora
MCPLocal

io.github.arifulislamat/database-mcp-postgres

MCP server for PostgreSQL. Read-only by default, row caps, timeouts, secrets never logged.

Repository
github.com/arifulislamat/database-mcp
Version
0.5.0
Author
arifulislamat (namespace verified by the registry)
Source
Official MCP registry (updated Oct 17, 2026)

How to install it

Variables to fill in: POSTGRES_HOST, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DATABASE.

On your machine

Claude Code

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

claude mcp add database-mcp-postgres -e POSTGRES_HOST=YOUR_POSTGRES_HOST -e POSTGRES_USER=YOUR_POSTGRES_USER -e POSTGRES_PASSWORD=YOUR_POSTGRES_PASSWORD -e POSTGRES_DATABASE=YOUR_POSTGRES_DATABASE -- npx -y @database-mcp/[email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

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

In ~/.cursor/mcp.json:

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

In .vscode/mcp.json:

{
  "servers": {
    "database-mcp-postgres": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@database-mcp/[email protected]"
      ],
      "env": {
        "POSTGRES_HOST": "YOUR_POSTGRES_HOST",
        "POSTGRES_USER": "YOUR_POSTGRES_USER",
        "POSTGRES_PASSWORD": "YOUR_POSTGRES_PASSWORD",
        "POSTGRES_DATABASE": "YOUR_POSTGRES_DATABASE"
      }
    }
  }
}
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.arifulislamat/database-mcp-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.arifulislamat/database-mcp-postgres on L’Agora](https://lagora.dev/badge/io.github.arifulislamat/database-mcp-postgres.svg?lang=en)](https://lagora.dev/en/entry/io.github.arifulislamat/database-mcp-postgres)

HTML

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

Promote

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

By the same author

io.github.arifulislamat/database-mcp-mariadb Local

io.github.arifulislamat/database-mcp-mysql Local

io.github.arifulislamat/database-mcp-libsql Local

io.github.arifulislamat/database-mcp-sqlite Local

Report this entry