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.
Connect ClickHouse to your AI assistants.
A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.

Model Context Protocol Servers
MCP server for interacting with Neon Management API and databases

Model Context Protocol Servers
コメント