1. Conduid
  2. Data
  3. pgtuner_mcp
MCP server · Data

pgtuner_mcp

provides AI-powered PostgreSQL performance tuning capabilities.

Unclaimed Apache-2.0 last commit 6 months ago data
52Fair

Scored 21 hours ago · breakdown

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
uvx pgtuner_mcp
pip
pip install pgtuner_mcp
From source
git clone https://github.com/isdaniel/pgtuner_mcp

Tools (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 detection
analyze_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 indexes
find_unused_indexesFind unused and duplicate indexes that can be safely dropped
get_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 analysis
get_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 patterns
manage_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 recommendations

Security 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

v0.6.0v0.6.0 · 2 Jun 2026What's Changed add skills. by @isdaniel in https://github.com/isdaniel/pgtuner_mcp/pull/9 fix(replication): include source database in ROLLBACK PREPARED hint by @isdaniel in https://github.com/isdaniel/pgtuner_mcp/pull/13 Full Changelog:…
v0.5.0v0.5.0 · 11 Dec 2025What's Changed feat: Add Vacuum Monitoring, and Disk IO tools by @isdaniel in https://github.com/isdaniel/pgtuner_mcp/pull/8 fix: comprehensive security and code quality improvements by @isdaniel in…
v0.4.0v0.4.0 · 4 Dec 2025What's Changed feat: add user exclusion filter for monitoring queries by @isdaniel in https://github.com/isdaniel/pgtuner_mcp/pull/5 Full Changelog: https://github.com/isdaniel/pgtuner_mcp/compare/v0.3.0...v0.4.0
v0.3.0v0.3.0 · 1 Dec 2025What's Changed feat: Add pgstattuple-based bloat detection tools by @isdaniel in https://github.com/isdaniel/pgtuner_mcp/pull/4 Full Changelog: https://github.com/isdaniel/pgtuner_mcp/compare/v0.2.0...v0.3.0
v0.2.0v0.2.0 · 28 Nov 2025What's Changed feat(tools): expose additional HypoPG service methods as MCP tool actions by @isdaniel in https://github.com/isdaniel/pgtuner_mcp/pull/3 New Contributors @isdaniel made their first contribution in…

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
Questions

About pgtuner_mcp

How do I install pgtuner_mcp?

Run uvx pgtuner_mcp, then add the server to your MCP client's configuration.

Is pgtuner_mcp safe to use with an AI agent?

Its trust score is 52 out of 100 (fair). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Conduid's scan of 19 source files found that it serves MCP over stdio, Streamable HTTP and HTTP with SSE. It has no ConduID identity yet, so agent calls to it are not receipted.

Is pgtuner_mcp still maintained?

The last commit was 6 months ago and 1 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does pgtuner_mcp provide?

Conduid read 16 tools from the source: analyze_disk_io_patterns, analyze_index_bloat, analyze_query, analyze_table_bloat, analyze_wait_events, check_database_health, explain_with_indexes, find_unused_indexes and 8 more.

What license is pgtuner_mcp released under?

The repository declares the Apache-2.0 license. That applies to the latest release, v0.6.0, as well.