Add MCP-PostgreSQL-Ops in Community Servers #2584
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add MCP-PostgreSQL-Ops: a professional, read-only MCP server for PostgreSQL operations, monitoring, and performance analysis. It surfaces server info, active connections, configuration search, capacity metrics, and pg_stat_statements / pg_stat_monitor–based insights via safe, predefined tools.
Server Details
Motivation and Context
Many PostgreSQL MCP servers focus on general SQL access. MCP-PostgreSQL-Ops is purpose-built for operations and observability in production: it provides slow-query analysis, index-usage insights, config discovery, and size/capacity views—all read-only to minimize risk. This fills a gap for teams that want actionable diagnostics without enabling write access from LLM clients.
How Has This Been Tested?
Tested locally with:
Claude Desktop using the provided mcpServers configuration; verified tool calls and end-to-end responses.
MCP Inspector via the included script for interactive tool validation.
Scenarios exercised:
get_server_info, get_active_connections, get_postgresql_config
get_pg_stat_statements_top_queries, get_pg_stat_monitor_recent_queries, get_index_usage_stats
get_database_size_info, get_table_size_info, get_vacuum_analyze_stats
Both stdio and streamable-http modes were run as documented.
Breaking Changes
None. This is an additive server entry; no existing MCP clients need to change unless they opt in by adding the server to their mcpServers configuration.
Types of changes
Checklist
Additional context