About
An MCP server that grants LLMs safe, transactional read-write and DDL access to PostgreSQL databases, providing rich schema info and advanced safety controls.
Capabilities

Overview
The Mcp Postgres Full Access Extended server is a robust Model Context Protocol (MCP) implementation that grants large‑language models (LLMs) complete read‑write control over PostgreSQL databases. Unlike the official MCP server, which is limited to safe, read‑only queries, this fork adds a full suite of data manipulation and schema‑management capabilities while retaining rigorous safety controls. It is designed for developers who need an AI assistant to interact with a database in real time—whether that means inserting new records, updating existing ones, or even redefining the database schema—all within a secure and auditable environment.
Why It Matters
Developers building AI‑powered applications often face the challenge of letting an assistant perform data operations without exposing the database to accidental corruption or security breaches. This server solves that problem by wrapping every operation in an isolated transaction, automatically enforcing timeouts, and requiring explicit commit or rollback actions. The result is a system that lets an LLM explore the data, generate insights, and then hand over control to a human for final approval before any changes become permanent. This workflow preserves the flexibility of AI-driven data manipulation while safeguarding against unintended side effects.
Key Features
- Full Read‑Write Access – Execute INSERT, UPDATE, DELETE, and all DDL commands (CREATE, ALTER, DROP) with the same ease as SELECT queries.
- Rich Schema Metadata – Retrieve comprehensive column information, primary and foreign key relationships, index details, and estimated row counts to help the model understand the database structure before acting.
- Advanced Safety Controls – Automatic classification of SQL statements (DQL, DML, DDL, DCL, TCL), read‑only execution for safe queries, isolated transactions with configurable timeouts, and a two‑step commit process that requires explicit user confirmation.
- Explicit Transaction Management – Tools such as , , and give developers fine‑grained control over when changes are finalized.
- Maintenance Operations – Dedicated support for VACUUM, ANALYZE, and CREATE DATABASE commands outside transactional contexts.
Real‑World Use Cases
- Data‑Driven Decision Support – An AI assistant can propose new records or updates based on user prompts, allowing stakeholders to review and commit changes in a single conversation.
- Dynamic Schema Evolution – When business requirements shift, the model can suggest and execute schema changes (e.g., adding a new column) while ensuring that all dependent objects remain consistent.
- Automated Reporting – Generate ad‑hoc reports, then let the model store aggregated results back into the database for future analysis.
- Educational Platforms – Students can interact with a live PostgreSQL instance through an AI tutor that can both query and modify data, providing instant feedback.
Integration with AI Workflows
The server exposes a set of well‑defined tools that any MCP‑compatible client (such as Claude Desktop) can call. By mapping conversational intents to these tools, developers create seamless interactions: the assistant can ask clarifying questions about a table’s schema, execute a SELECT to fetch relevant rows, propose an UPDATE statement, and finally commit or rollback based on user confirmation. The explicit transaction IDs returned by write operations enable the model to maintain state across multiple turns, ensuring that partial changes are not inadvertently persisted.
Standout Advantages
- Safety‑First Design – The combination of automatic timeouts, transaction isolation, and a mandatory two‑step commit process makes this server one of the safest full‑access MCP solutions available.
- Extensibility – Built on top of an open fork, developers can further customize safety thresholds, add new tools, or integrate additional database engines with minimal effort.
- Developer‑Friendly – Detailed schema metadata and clear tool interfaces reduce the learning curve, allowing teams to adopt AI‑driven database interactions quickly without compromising security or stability.
Related Servers
n8n
Self‑hosted, code‑first workflow automation platform
FastMCP
TypeScript framework for rapid MCP server development
Activepieces
Open-source AI automation platform for building and deploying extensible workflows
MaxKB
Enterprise‑grade AI agent platform with RAG and workflow orchestration.
Filestash
Web‑based file manager for any storage backend
MCP for Beginners
Learn Model Context Protocol with hands‑on examples
Weekly Views
Server Health
Information
Tags
Explore More Servers
Vercel AI SDK Documentation MCP Agent
AI-powered search for Vercel AI SDK docs
UML-MCP Diagram Generation Server
Generate UML, Mermaid, D2 diagrams via MCP protocol
PIF Self‑Modifying MCP Server
Dynamic tool creation and formal reasoning on the fly
Better Auth MCP Server
Enterprise‑grade authentication management for modern apps
MCP-OS
Orchestrate MCPs like OS processes—load on demand, prune idle
Prometheus MCP
Proof‑of‑concept Prometheus context server