1. Conduid
  2. Data
  3. Postgres Rw
MCP server · Data

Postgres Rw

MCP server for PostgreSQL with both read and write support (INSERT, UPDATE, DELETE, DDL). Unlike the official server-postgres, this one allows write operations.

37Low

Scored 5 months ago · breakdown

About Postgres Rw

Postgres Rw is an MCP server in the Data category: mCP server for PostgreSQL with both read and write support (INSERT, UPDATE, DELETE, DDL). Unlike the official server-postgres, this one allows write operations. It has been installed 0 times through Conduid.

Install

Claude Code
claude mcp add postgres-rw -- npx -y mcp-postgres-rw
npx
npx -y mcp-postgres-rw

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Postgres Rw

Powered by Claude · Grounded in docs

I know everything about Postgres Rw. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • ·Scoped permissionsNot checked yet.

README

mcp-postgres-rw

EN | RU

npm version npm downloads license node

A Model Context Protocol (MCP) server for PostgreSQL with full read and write support.

Why this package? The official @modelcontextprotocol/server-postgres only allows SELECT queries. mcp-postgres-rw adds an execute tool so your AI assistant can also run INSERT, UPDATE, DELETE, and DDL statements.

Tools

Tool Description
query Run a read-only SQL query (SELECT) — wrapped in a read-only transaction
execute Execute a write SQL statement (INSERT, UPDATE, DELETE, CREATE, DROP, …)

Installation

Claude Code (CLI)

claude mcp add --transport stdio -- postgres npx -y mcp-postgres-rw postgresql://user:password@host:5432/dbname

Restart Claude Code — query and execute tools will be available.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "mcp-postgres-rw", "postgresql://user:password@host:5432/dbname"]
    }
  }
}

Cursor / Windsurf / other MCP clients

Add to your MCP config file:

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "mcp-postgres-rw", "postgresql://user:password@host:5432/dbname"]
    }
  }
}

Usage example

Once connected, you can ask your AI assistant things like:

  • "Show me all users registered in the last 7 days" → uses query
  • "Insert a new product with name 'Widget' and price 9.99" → uses execute
  • "Delete orders older than 2023" → uses execute

Security note

The execute tool runs statements directly against your database with the permissions of the provided connection string. Use a dedicated database user with only the privileges your workflow requires.

Requirements

  • Node.js 18+
  • PostgreSQL

RU

npm version npm downloads license

MCP-сервер для PostgreSQL с поддержкой чтения и записи.

Зачем этот пакет? Официальный @modelcontextprotocol/server-postgres разрешает только SELECT-запросы. mcp-postgres-rw добавляет инструмент execute, чтобы ИИ-ассистент мог также выполнять INSERT, UPDATE, DELETE и DDL-команды.

Инструменты

Инструмент Описание
query Выполнить SQL-запрос на чтение (SELECT) — в read-only транзакции
execute Выполнить SQL-запрос на запись (INSERT, UPDATE, DELETE, CREATE, DROP, …)

Установка

Claude Code (CLI)

claude mcp add --transport stdio -- postgres npx -y mcp-postgres-rw postgresql://user:password@host:5432/dbname

Перезапустить Claude Code — будут доступны инструменты query и execute.

Claude Desktop

Добавить в ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) или %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "mcp-postgres-rw", "postgresql://user:password@host:5432/dbname"]
    }
  }
}

Cursor / Windsurf / другие MCP-клиенты

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "mcp-postgres-rw", "postgresql://user:password@host:5432/dbname"]
    }
  }
}

Пример использования

После подключения можно попросить ИИ-ассистента:

  • «Покажи всех пользователей, зарегистрированных за последние 7 дней» → использует query
  • «Добавь новый товар с названием Widget и ценой 9.99» → использует execute
  • «Удали заказы старше 2023 года» → использует execute

Безопасность

Инструмент execute выполняет запросы напрямую с правами переданной строки подключения. Используйте отдельного пользователя БД с минимально необходимыми привилегиями.

Требования

  • Node.js 18+
  • PostgreSQL

README mirrored from the source repository 5 months ago. The original is authoritative.

Questions

About Postgres Rw

How do I install Postgres Rw?

Run claude mcp add postgres-rw -- npx -y mcp-postgres-rw, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Postgres Rw safe to use with an AI agent?

Its trust score is 37 out of 100 (low). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Postgres Rw still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.