MCP Postgres Full Access MCP Server

Full-access PostgreSQL server for Model Context Protocol with read/write capabilities and enhanced schema metadata

Local serverstdio

What is the MCP Postgres Full Access MCP server?

Most database access work still happens through a UI a human drives. MCP Postgres Full Access MCP server moves it into the conversation instead. Full-access PostgreSQL server for Model Context Protocol with read/write capabilities and enhanced schema metadata.

The short version

A powerful Model Context Protocol server providing full read-write access to PostgreSQL databases. Unlike the read-only official MCP PostgreSQL server, this enhanced implementation allows Large Language Models (LLMs) to both query and modify database content with proper transaction management and safety controls.

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

The tools it exposes

The server publishes 8 tools. What each one is for:

  • execute_query — Execute read-only SQL queries (SELECT statements)
  • Input — sql (string): The SQL query to execute
  • execute_dml_ddl_dcl_tcl — Execute data modification operations (INSERT, UPDATE, DELETE) or schema changes (CREATE, ALTER, DROP)
  • execute_maintenance — Execute maintenance commands like VACUUM, ANALYZE, or CREATE DATABASE outside of transactions
  • execute_commit — Explicitly commit a transaction by its ID
  • execute_rollback — Explicitly rollback a transaction by its ID
  • list_tables — Get a comprehensive list of all tables in the database
  • describe_table — Get detailed information about a specific table structure

What it needs from you

Configuration is passed through the environment: TRANSACTION_TIMEOUT_MS, MAX_CONCURRENT_TRANSACTIONS, PG_STATEMENT_TIMEOUT_MS. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCP Postgres Full Access's toolset — execute_query, Input, execute_dml_ddl_dcl_tcl and 5 more — is a fair guide to whether it matches your workflow. It is maintained by syahiidkamil; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCP Postgres Full Access's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
execute_queryExecute read-only SQL queries (SELECT statements)
Inputsql (string): The SQL query to execute
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

How to install the MCP Postgres Full Access MCP server

{
  "mcpServers": {
    "postgres-full": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-postgres-full-access",
        "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 MCP Postgres Full Access to execute query.
  • Use MCP Postgres Full Access to Input.
  • Use MCP Postgres Full Access to execute dml ddl dcl tcl.

Frequently asked questions

It connects MCP Postgres Full Access to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (execute_query, Input, execute_dml_ddl_dcl_tcl, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Postgres Full Access directly.