MCP-PostgreSQL-Ops
by call518·★ 149·Score 50
Comprehensive MCP server providing PostgreSQL DBA superpowers with 30+ tools for performance analysis, bloat detection, and monitoring.
Overview
MCP-PostgreSQL-Ops is a professional MCP server offering PostgreSQL database operations, monitoring, and management capabilities. It provides comprehensive database analysis, performance monitoring, and intelligent maintenance recommendations through natural language queries. The server supports PostgreSQL versions 12-18 with automatic version detection and works with regular user permissions while offering enhanced functionality when using optional extensions like pg_stat_statements and pg_stat_monitor.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this for PostgreSQL DBA operations when you need comprehensive monitoring, performance analysis, and maintenance recommendations through natural language queries, especially with production constraints requiring read-only access.
When NOT to choose this
Don't choose this if you need write access to PostgreSQL databases, as this server is read-only only. Also consider alternatives if you require monitoring for non-PostgreSQL databases.
Tools this server exposes
12 tools extracted from the READMEget_server_infoGet PostgreSQL server information and version details
get_active_connectionsMonitor current database connections and their status
get_table_bloat_analysisAnalyze table bloat across all databases
get_slow_queriesIdentify slow queries in the system
get_database_size_infoGet database size information and storage usage
get_vacuum_analyze_statsGet statistics about VACUUM and ANALYZE operations
get_lock_monitoringMonitor database locks and potential deadlocks
get_table_schema_infoGet detailed table schema information
get_autovacuum_statusCheck autovacuum configuration and status
get_replication_statusCheck PostgreSQL replication status and health
get_index_usage_statsGet index usage statistics and effectiveness
get_wait_eventsCheck database wait events for performance analysis
Comparable tools
Installation
Installation
- Install via PyPI:
pip install mcp-postgresql-ops- Start the server:
mcp-server-postgresql-ops- Configure in Claude Desktop (add to claude_desktop_config.json):
{
"mcpServers": {
"postgresql-ops": {
"command": "mcp-server-postgresql-ops",
"args": []
}
}
}- Or using Docker Compose:
git clone https://github.com/call518/MCP-PostgreSQL-Ops.git
cd MCP-PostgreSQL-ops
docker-compose up -dFAQ
- What permissions are required to use this MCP server?
- The server works with regular user permissions for basic monitoring tasks. Superuser privileges provide access to all databases and system information, but are not required for most operations.
- Can this be used with cloud databases like Amazon RDS?
- Yes, the MCP server is compatible with RDS and Aurora and designed for production-safe read-only operations with regular user permissions.
- What PostgreSQL versions are supported?
- The server supports PostgreSQL versions 12-18 with automatic version detection and version-aware features.
On Hacker News
Recent discussion from the developer community.
- Story by call518 · 2025-08-20
Compare MCP-PostgreSQL-Ops with
Last updated · Auto-generated from public README + GitHub signals.