What database operations does Postgresql MCP support?
It supports SELECT, INSERT, UPDATE, DELETE, DDL statements, and multi-statement transactions with automatic rollback.
@sarmadparvez
基本信息
A general-purpose PostgreSQL MCP server with full read-write support, atomic transactions, and schema inspection. Connect Claude, Cursor, Windsurf, or any MCP-compatible AI client to any PostgreSQL database — local, Supabase, AWS RDS, or self-hosted. No cloud lock-in, no Azure de
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@sarmadparvez/postgresql-mcp",
"postgresql://user:pass@localhost:5432/mydb"
]
}
}
}Execute a read-only SQL SELECT query and return results as JSON
Execute a write SQL statement (INSERT, UPDATE, DELETE, TRUNCATE, CREATE, DROP). Returns rows affected.
List all tables with their columns, types, and constraints for a given schema (default: public)
List all tables in the database with row counts
Execute multiple SQL statements as a single atomic transaction. Rolls back all on any error.
Postgresql MCP is a general-purpose MCP server for PostgreSQL databases that provides full read-write support, atomic transactions, and schema inspection. It connects MCP-compatible AI clients such as Claude, Cursor, and Windsurf to any PostgreSQL database—local, Supabase, AWS RDS, or self-hosted—without cloud lock-in or Azure dependency.
Configure the server by providing a connection string to your PostgreSQL database. An optional read-only mode can be enabled via a flag in the connection string. Once connected, you can execute SELECT, INSERT, UPDATE, DELETE, DDL statements, and multi-statement transactions with automatic rollback on failure.
It supports SELECT, INSERT, UPDATE, DELETE, DDL statements, and multi-statement transactions with automatic rollback.
Yes, an optional read-only mode can be enabled via the connection string flag.
Any PostgreSQL database—local instances, Supabase, AWS RDS, or self-hosted setups.
No. It has no cloud lock-in and no dependency on Azure or any other provider.
It works with any MCP-compatible AI client, including Claude, Cursor, and Windsurf.
An official Qdrant Model Context Protocol (MCP) server implementation
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases

Local database MCP server: your agent sees a migration's impact before it runs, for PostgreSQL, MySQL, SQL Server and SQLite, with no database credentials.
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
评论