In-depth architectural comparison of the Pgtuner MCP and MCPg MCP servers. Compare execution transports, security boundaries, tool capabilities, quality scores, and ready-to-paste client installation snippets for Claude, Cursor, Windsurf, and VS Code.
At a Glance & Executive Verdict
Pgtuner MCP
Databases · Local stdio
Quality: 52/100 (Good) | Auth: No auth required
MCPg
Databases · Local stdio
Quality: 76/100 (Great) | Auth: other
Verdict Summary: Choose Pgtuner MCP if you need specialized Databases tools running via a local process. Choose MCPg if your workspace requires Databases integration with local subprocess execution. Both servers can be configured concurrently in your client's mcpServers manifest.
Which MCP Server Should You Choose?
Choose Pgtuner MCP when:
You need dedicated capabilities in the Databases domain.
You prefer local stdio subprocess transport architecture.
Your security boundary fits: No auth required (Free / Open Source).
You have access to required keys: DATABASE_URI, PGTUNER_EXCLUDE_USERIDS, PGTUNER_STATEMENT_TIMEOUT_MS, PGTUNER_IDLE_TXN_TIMEOUT_MS, PGTUNER_LOCK_TIMEOUT_MS, PGTUNER_CORS_ALLOW_ORIGINS, PGTUNER_LINT_DISABLED_RULES.
Production-grade PostgreSQL MCP server with 100+ tools for catalog introspection, AST-validated safe query execution, index tuning, natural-language SQL, pgvector/TimescaleDB/AGE integrations, and HTTP/stdio transports.
Category & Scope
Tools & Capabilities Breakdown
Pgtuner MCP Tools (16)
get_slow_queries
Retrieve slow queries from pg_stat_statements with detailed stats (total time, mean time, calls, cache hit ratio). Excludes system catalog queries.
analyze_query
Analyze a query's execution plan with EXPLAIN ANALYZE, including automated issue detection
get_table_stats
Get detailed table statistics including size, row counts, dead tuples, and access patterns
analyze_disk_io_patterns
Analyze disk I/O read/write patterns, identify hot tables, buffer cache efficiency, and I/O bottlenecks. Supports filtering by analysis type (all, buffer_pool, tables, indexes, temp_files, checkpoints).
get_index_recommendations
AI-powered index recommendations based on query workload analysis
Ready-to-Paste Client Configurations
Paste either (or both) of these JSON server blocks into your client config file (e.g. claude_desktop_config.json or ~/.cursor/mcp.json).
Pgtuner MCP is categorized under Databases and uses a local stdio subprocess. In contrast, MCPg belongs to Databases using local stdio subprocess. Select Pgtuner MCP when you need capabilities focused on databases and MCPg when you require tools for databases.