PostgreSQL Full Access MCP Server

A fully featured PostgreSQL server adapter for the Model Context Protocol (MCP), providing robust read/write access and enhanced schema metadata for

Local serverstdio

What is the PostgreSQL Full Access MCP Server?

A fully featured PostgreSQL server adapter for the Model Context Protocol (MCP), providing robust read/write access and enhanced schema metadata for LLM and

The short version

This project is an independently maintained and extended fork of the original mcp-postgres-full-access by Syahiid Kamil.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
execute_queryExecute read-only SQL queries (SELECT statements)
execute_dml_ddl_dcl_tclExecute data modification operations (INSERT, UPDATE, DELETE) or schema changes (CREATE, ALTER, DROP)
execute_maintenanceExecute maintenance commands like VACUUM, ANALYZE, or CREATE DATABASE outside of transactions
execute_commitExplicitly commit a transaction by its ID
execute_rollbackExplicitly rollback a transaction by its ID
list_tablesGet a comprehensive list of all tables in the database
describe_tableGet detailed information about a specific table structure
list_schemasGet a list of all schemas in the database

How to install the PostgreSQL Full Access MCP Server

{
  "mcpServers": {
    "postgres-full": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-postgres-full-access-extended",
        "postgresql://username:password@localhost:5432/database"
      ],
      "env": {
        "TRANSACTION_TIMEOUT_MS": "60000",
        "MAX_CONCURRENT_TRANSACTIONS": "5",
        "PG_STATEMENT_TIMEOUT_MS": "30000"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
TRANSACTION_TIMEOUT_MSConfiguration value read at startup.Optional
MAX_CONCURRENT_TRANSACTIONSConfiguration value read at startup.Optional
PG_STATEMENT_TIMEOUT_MSConfiguration value read at startup.Optional

Example prompts to try

  • “Use PostgreSQL Full Access to execute query.”
  • “Use PostgreSQL Full Access to Input.”
  • “Use PostgreSQL Full Access to execute dml ddl dcl tcl.”

Frequently asked questions

The official server is read-only; this server provides full read-write access with transaction management and safety controls.