About pgtuner_mcp
pgtuner_mcp is an MCP server published by isdaniel in the Data category: provides AI-powered PostgreSQL performance tuning capabilities. Conduid read 16 tools from its source: analyze_disk_io_patterns, analyze_index_bloat, analyze_query, analyze_table_bloat, analyze_wait_events, check_database_health and 10 more. It is published to PyPI as pgtuner_mcp and runs with uvx.
The repository has 31 stars and 5 forks, is licensed Apache-2.0, and its last commit was on 2 Jun 2026. The latest release is v0.6.0 (2 Jun 2026): What's Changed add skills. It follows v0.5.0 (11 Dec 2025), and the 5 most recent releases go back to v0.2.0 (28 Nov 2025). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include data.
Install
uvx pgtuner_mcppip install pgtuner_mcpgit clone https://github.com/isdaniel/pgtuner_mcpTools (16)
analyze_disk_io_patternsAnalyze 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).analyze_index_bloatAnalyze B-tree index bloat using pgstatindex. Shows leaf density, fragmentation, and empty/deleted pages. Also supports GIN and Hash indexes.analyze_queryAnalyze a query's execution plan with EXPLAIN ANALYZE, including automated issue detectionanalyze_table_bloatAnalyze table bloat using pgstattuple extension. Shows dead tuple counts, free space, and wasted space percentage.analyze_wait_eventsAnalyze wait events to identify I/O, lock, or CPU bottlenecks. Focuses on client backend processes.check_database_healthComprehensive health check with scoring (connections, cache, locks, replication, wraparound, disk, checkpoints)explain_with_indexesRun EXPLAIN with hypothetical indexes to test improvements without creating real indexesfind_unused_indexesFind unused and duplicate indexes that can be safely droppedget_active_queriesMonitor active queries, find long-running transactions and blocked queries. By default excludes system processes.get_bloat_summaryGet a comprehensive overview of database bloat with top bloated tables/indexes, total reclaimable space, and priority maintenance actions.get_index_recommendationsAI-powered index recommendations based on query workload analysisget_slow_queriesRetrieve slow queries from pg_stat_statements with detailed stats (total time, mean time, calls, cache hit ratio). Excludes system catalog queries.get_table_statsGet detailed table statistics including size, row counts, dead tuples, and access patternsmanage_hypothetical_indexesCreate, list, drop, or reset HypoPG hypothetical indexes. Supports hide/unhide existing indexes.monitor_vacuum_progressTrack manual VACUUM, VACUUM FULL, and autovacuum operations. Monitor progress percentage, dead tuples collected, index vacuum rounds, and estimated time remaining. Includes autovacuum configuration review and tables needing maintenance.review_settingsReview PostgreSQL settings by category with optimization recommendationsSecurity checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.4K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 19 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEsrc/pgtuner_mcp/server.py:1802, src/pgtuner_mcp/server.py:1716, src/pgtuner_mcp/server.py:42
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- None in the repository
Pattern matches on the source text of 19 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README