PostgreSQL MCP Server
PostgreSQL MCP Server — 27 tools for queries, schema, CRUD, DBA, HA & server management
25 downloads/wk
Reviews
Write oneNobody has reviewed PostgreSQL MCP Server yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
PostgreSQL MCP Server tools (28, 6 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
pg_connectConnect to a PostgreSQL server profile. If multiple profiles are configured, specify which one. Otherwise connects to the default profile.
pg_connection_statusCheck connection pool health for the active profile or a specific named profile.
pg_constraint_listList constraints (primary key, foreign key, unique, check) for a table.
pg_database_sizeShow size of all databases.
pg_deletewrite actionDelete rows matching a WHERE clause. Requires confirm: true.
pg_disconnectDisconnect from a PostgreSQL server profile. Omit profile to disconnect all.
pg_enum_listList all enum types and their values.
pg_extension_listList installed PostgreSQL extensions with versions.
pg_function_listList functions and procedures with their signatures.
pg_index_listList indexes for a table with type, columns, uniqueness, and size.
pg_insertwrite actionInsert one or more rows into a table. Returns inserted rows.
pg_list_connectionsList all configured connection profiles and their status. Each profile represents a PostgreSQL server instance (not a database within a server).
pg_querywrite actionExecute a parameterized SQL query. Returns rows as JSON. Use $1, $2, ... for parameters.
pg_query_explainwrite actionRun EXPLAIN on a query. mode=plan (default, safe) shows the plan without executing. mode=analyze executes the statement and shows actual timing — ALWAYS requires confirm: true because EXPLAIN ANALYZE executes the statement.
pg_query_prepared[DEPRECATED] Manage named prepared statements: PREPARE, EXECUTE, DEALLOCATE. ⚠️ Prepared statements are session-local in PostgreSQL and unreliable with connection pools — each pool checkout may get a different backend. Use parameterized pg_query instead.
pg_reload_configReload server configuration files (postgresql.conf). Requires confirm: true.
pg_schema_listList all schemas in the database.
pg_settingsShow or search server configuration parameters.
pg_switch_databaseDeprecated — use pg_switch_profile instead. Switch the active connection profile.
pg_switch_profileSwitch the active connection profile. All subsequent queries will use this profile unless overridden. Each profile targets a specific PostgreSQL server instance.
pg_table_describeDescribe a table: columns, data types, defaults, nullability, and constraints.
pg_table_listList tables in the database. Optionally filter by schema name.
pg_table_sizesShow table sizes with index and toast breakdown, sorted by total size descending.
pg_updatewrite actionUpdate rows matching a WHERE clause. Requires confirm: true.
pg_upsertwrite actionInsert or update on conflict. Requires confirm: true.
pg_uptimeShow server uptime and start time.
pg_versionGet PostgreSQL version string and numeric version.
pg_view_listList views with their definitions. Optionally filter by schema.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan27 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancerepository not readable: repo not found3/15
- Maintainer identityno repository or website to verify2/10
Install PostgreSQL MCP Server in Claude Code, Cursor or VS Code
Runs npx -y @itunified.io/mcp-postgres on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add postgres -- npx -y @itunified.io/mcp-postgres
PostgreSQL MCP Server: common questions
- Is PostgreSQL MCP Server safe?
- With care: it is graded C, so read the findings first (65/100). Read the PostgreSQL MCP Server safety report
- How do I install PostgreSQL MCP Server?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does PostgreSQL MCP Server need an API key?
- No secret keys are declared. It reads 1 setting from the environment.
- Is PostgreSQL MCP Server maintained?
- The latest release is v2026.4.10.
- What can I use instead of PostgreSQL MCP Server?
- Servers from other publishers that do the same job: PostgreSQL MCP Server, PostgreSQL MCP server and PostgreSQL (hardened, read-only) MCP server. Compare all PostgreSQL MCP Server alternatives.
Alternatives to PostgreSQL MCP Server
Same job from other publishers: the closest match first, then the best rated.
- PostgreSQL MCP ServerPostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistantsnot reviewedGrowingB
- PostgreSQLMCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion.not reviewedEstablishedB
- PostgreSQL (hardened, read-only)Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.not reviewedGrowingC
- Database PostgresMCP server for PostgreSQL. Read-only by default, row caps, timeouts, secrets never logged.not reviewedGrowingB
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA