MCP PostgreSQL Ops
MCP server by call518 Verified · gh:call518
MCP PostgreSQL Ops is an MCP server for PostgreSQL database operations, monitoring and management. It supports PostgreSQL 12 to 18 and is aimed at developers and database administrators who want to check database health through natural language.
Install MCP PostgreSQL Ops
Built from the published package, never by AI.
claude mcp add mcp-postgresql-ops -- uvx mcp-postgresql-opsRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-postgresql-ops": {
"args": [
"mcp-postgresql-ops"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-postgresql-ops": {
"args": [
"mcp-postgresql-ops"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-postgresql-ops": {
"args": [
"mcp-postgresql-ops"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-postgresql-ops -- uvx mcp-postgresql-ops{
"mcpServers": {
"mcp-postgresql-ops": {
"args": [
"mcp-postgresql-ops"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-postgresql-ops uvx mcp-postgresql-opsGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-postgresql-ops block.
About
MCP PostgreSQL Ops is an MCP server for PostgreSQL database operations, monitoring and management. It lets an AI assistant answer natural language questions, such as showing slow queries or analyzing table bloat. The source lists tools for connections, locks, autovacuum, bloat, schema discovery, replication and WAL status.
Most tools work without extensions, and the server detects the PostgreSQL version automatically across versions 12 to 18. Advanced query analysis improves when pg_stat_statements and pg_stat_monitor are installed. The project is aimed at database administrators and developers who want to monitor and maintain PostgreSQL. The source describes its operations as read-only and compatible with RDS and Aurora using regular user permissions.
Written from the project's README and checked against it.
Tools it gives your assistant
get_active_connectionsShows current connections from pg_stat_activity.get_lock_monitoringMonitors locks using pg_locks and pg_stat_activity.get_table_bloat_analysisAnalyzes table bloat in a database.get_database_bloat_overviewGives an overview of bloat across a database.get_autovacuum_statusReports autovacuum status for user tables.get_vacuum_effectiveness_analysisAnalyzes how effective vacuum operations are.get_index_usage_statsShows index usage from pg_stat_user_indexes.get_table_relationshipsMaps relationships between tables using constraints.get_database_size_infoReports database sizes using pg_database_size().get_replication_statusShows replication status across supported versions.
What you need
- PostgreSQL 12 to 18 database
- Docker and docker-compose for the quickstart setup
- Optional pg_stat_statements extension for advanced query analysis
- Optional pg_stat_monitor extension for advanced query analysis
Try asking
- Show me the current active connections
- What are the slowest queries in the system?
- Analyze table bloat across all databases
Good to know
- Operations are described as read-only.
- Advanced query analysis is enhanced by pg_stat_statements and pg_stat_monitor.
- Some features are version-specific, such as wait event catalog on PG 17+ and async I/O on PG 18+.
- The built-in postgresql container is intended for quickstart testing only.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to MCP PostgreSQL Ops
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
MCP PostgreSQL Ops: common questions
Which PostgreSQL versions does MCP PostgreSQL Ops support?
The source says it supports PostgreSQL 12 to 18, with automatic version detection.
Does MCP PostgreSQL Ops require any PostgreSQL extensions?
No. The source says most features work independently, while pg_stat_statements and pg_stat_monitor enhance advanced query analysis.
Can MCP PostgreSQL Ops change data in my database?
The source describes its operations as read-only and says it works with RDS and Aurora using regular user permissions.
How do I install MCP PostgreSQL Ops?
In Claude Code run claude mcp add mcp-postgresql-ops -- uvx mcp-postgresql-ops. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is MCP PostgreSQL Ops the official server?
MCP PostgreSQL Ops is published by gh:call518 from its verified domain in the official MCP Registry.
Is MCP PostgreSQL Ops free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is MCP PostgreSQL Ops safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to MCP PostgreSQL Ops?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does MCP PostgreSQL Ops work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
