Is PostgreSQL Performance MCP read-only?
Yes, by default all database connections use `SET TRANSACTION READ ONLY` to prevent accidental modifications. Query execution is strictly limited to SELECT, EXPLAIN, and SHOW commands.
@rameshv29
Basic information
PostgreSQL performance analysis and optimization MCP server
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"postgres-performance-mcp": {
"command": "python",
"args": [
"server.py",
"--host",
"0.0.0.0",
"--port",
"8000"
]
}
}
}Analyze database schema and provide optimization recommendations
Identify slow-running queries in the database
Analyze a SQL query and provide optimization recommendations
Recommend indexes for a given SQL query
Suggest optimized rewrites for a SQL query
Generate a comprehensive health dashboard for the database
Interactive wizard to optimize a SQL query step by step
Analyze index usage patterns and identify unused or inefficient indexes
Execute a read-only SQL query and return the results
Show PostgreSQL configuration settings with optional filtering
Check if the server is running and responsive
PostgreSQL Performance MCP is a Model Context Protocol (MCP) server for PostgreSQL database performance analysis and optimization. It uses AI to help database administrators and developers analyze database structure, query performance, index usage, and configuration, providing actionable recommendations. It runs as a remote MCP server using SSE transport and is designed for use with MCP-compatible clients like Amazon Q Developer CLI and Claude.
Install Python 3.12+, clone the repository, install dependencies, and configure database credentials (optionally via AWS Secrets Manager). Start the server with python server.py --host 0.0.0.0 --port 8000. Connect any MCP-compatible client using the server URL and SSE transport, then call the available tools (e.g., analyze_database_structure, get_slow_queries, recommend_indexes) with the required parameters.
Yes, by default all database connections use `SET TRANSACTION READ ONLY` to prevent accidental modifications. Query execution is strictly limited to SELECT, EXPLAIN, and SHOW commands.
Python 3.12+, an Amazon Aurora or RDS PostgreSQL database, and optionally an AWS account for Secrets Manager. Recommended PostgreSQL extensions are `pg_stat_statements` and `pg_buffercache`.
Credentials can be stored in AWS Secrets Manager (recommended) or provided directly when calling tools. The secret must contain host, port, dbname, username, and password.
It uses Server-Sent Events (SSE) transport, allowing it to be deployed centrally as a remote MCP server accessible by any MCP-compatible client.
No, this project is experimental and provided "as is" without warranty. All recommendations should be carefully reviewed before use in production environments.

nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi
Local MCP server for DuckDB and MotherDuck
An official Qdrant Model Context Protocol (MCP) server implementation

Verified golf club data for AI agents: holes, par, address, phone, booking links, facilities, visitor rules and green fees for golf clubs in Spain (Canary Islands and mainland), expanding across Europe. Every fact comes
Connect ClickHouse to your AI assistants.
Comments