codegiveness/postgresql-sharp-mcp
Local MCP server for PostgreSQL written in C#/.NET that lets an agent discover accessible databases, inspect schemas and objects, run SQL (read-only by default; writes only when explicitly requested, refused entirely in restricted mode), explain query plans with optional HypoPG what-if indexes, analyze indexes, read `pg_stat_statements` workload and check database health. Tools: `list_databases`, `list_schemas`, `list_objects`, `get_object_details`, `execute_sql`, `explain_query`, `analyze_indexes`, `get_top_queries`, `analyze_db_health`. Install: `npx -y --allow-scripts=@codegiveness/postgresql-sharp-mcp @codegiveness/postgresql-sharp-mcp@0.4.0` or `dotnet tool install --global codegiveness.postgresql-sharp-mcp`. Transport: stdio; auth: a PostgreSQL connection string in `POSTGRES_CONNECTION_STRING`. MIT.
Project
Browse this MCP server in the TensorBlock MCP Index.