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
基本信息
PostgreSQL performance analysis and optimization MCP server
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"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.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Universal MCP-Server for your Databases optimized for LLMs and AI-Agents.
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.

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
Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
评论