pgtuner_mcp
by Various
provides AI-powered PostgreSQL performance tuning capabilities.
MCP
pgtuner_mcp
Added 1 June 2026
Overview
pgtuner_mcp is a Python-based MCP server that analyzes PostgreSQL query plans and configuration to suggest performance improvements. It connects to a PostgreSQL database, retrieves slow queries and configuration settings, and returns tuning recommendations.
Best for
Best for
Developers and DBAs who want automated PostgreSQL tuning suggestions via MCP
Use cases
- Identify and optimize slow PostgreSQL queries
- Get configuration tuning suggestions for PostgreSQL
- Automate performance review in CI/CD pipelines
How to use
Install
pip install pgtuner_mcp Tools exposed
min_callsmin_mean_time_msorder_byDATABASE_URIPGTUNER_EXCLUDE_USERIDSPGTUNER_STATEMENT_TIMEOUT_MSPGTUNER_IDLE_TXN_TIMEOUT_MSPGTUNER_LOCK_TIMEOUT_MSPGTUNER_CORS_ALLOW_ORIGINSPGTUNER_LINT_DISABLED_RULESget_slow_queriesanalyze_queryget_table_statsanalyze_disk_io_patternsget_index_recommendationsexplain_with_indexesmanage_hypothetical_indexesfind_unused_indexescheck_database_healthget_active_queries
Tested with
Claude Desktop
Notes
pgtuner_mcp is a Python-based MCP server that analyzes PostgreSQL query plans and configuration to suggest performance improvements. It connects to a PostgreSQL database, retrieves slow queries and configuration settings, and returns tuning recommendations.
24 stars on GitHub. Last updated 2026-05-31. Licensed Apache-2.0.
Use cases
- Identify and optimize slow PostgreSQL queries
- Get configuration tuning suggestions for PostgreSQL
- Automate performance review in CI/CD pipelines
Pros
- Directly integrates with PostgreSQL for real-time analysis
- Lightweight Python implementation with MCP protocol
- Open source with active community contributions
Cons
- Limited to PostgreSQL databases only
- Requires database credentials and network access
- Small user base may mean fewer tested scenarios
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Directly integrates with PostgreSQL for real-time analysis
- Lightweight Python implementation with MCP protocol
- Open source with active community contributions
Cons
- Limited to PostgreSQL databases only
- Requires database credentials and network access
- Small user base may mean fewer tested scenarios
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.