



An open-source Model Context Protocol (MCP) server for PostgreSQL that provides database health checks, index tuning, query plan analysis, schema intelligence, and safe SQL execution to assist AI agents throughout the development lifecycle.
Loading more......
En esta página
Postgres MCP Pro
Postgres MCP Pro is an open-source Model Context Protocol (MCP) server built to support you and your AI agents throughout the entire development process—from initial coding, through testing and deployment, and to production tuning and maintenance.
docker pull crystaldba/postgres-mcp
pipx install postgres-mcp
uv pip install postgres-mcp
{
"mcpServers": {
"postgres": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI",
"crystaldba/postgres-mcp",
"--access-mode=unrestricted"
],
"env": {
"DATABASE_URI": "postgresql://username:password@localhost:5432/dbname"
}
}
}
}
docker run -p 8000:8000 \
-e DATABASE_URI=postgresql://username:password@localhost:5432/dbname \
crystaldba/postgres-mcp --access-mode=unrestricted --transport=sse
list_schemaslist_objectsget_object_detailsexecute_sqlexplain_queryget_top_queriesanalyze_workload_indexesanalyze_query_indexesanalyze_db_healthFor index tuning and comprehensive performance analysis, the pg_stat_statements and hypopg extensions are recommended.
Explora más elementos relacionados con este