crystaldba/postgres-mcp
by Various
Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.
MCP
crystaldba/postgres-mcp
Added 1 June 2026
Overview
crystaldba/postgres-mcp is a Model Context Protocol server that provides configurable read and write access to PostgreSQL databases for AI agents. It also includes performance analysis capabilities, allowing agents to monitor and optimize query execution. Built in Python, it integrates with any MCP-compatible client.
Best for
Best for
Developers who want to give AI agents structured and safe access to PostgreSQL databases
Use cases
- Give an AI agent direct SQL query access to a Postgres database
- Automate database performance monitoring and slow query analysis
- Allow natural language database interaction through an MCP client like Claude
How to use
Install
uv pip install postgres-mcp Tools exposed
list_schemaslist_objectsget_object_detailsexecute_sqlexplain_queryget_top_queriesanalyze_workload_indexesanalyze_query_indexesanalyze_db_health
Tested with
Claude Desktop, Cursor, Windsurf, Cline, ChatGPT
Notes
crystaldba/postgres-mcp is a Model Context Protocol server that provides configurable read and write access to PostgreSQL databases for AI agents. It also includes performance analysis capabilities, allowing agents to monitor and optimize query execution. Built in Python, it integrates with any MCP-compatible client.
2,831 stars on GitHub. Last updated 2026-01-22. Licensed MIT.
Use cases
- Give an AI agent direct SQL query access to a Postgres database
- Automate database performance monitoring and slow query analysis
- Allow natural language database interaction through an MCP client like Claude
Pros
- Configurable read/write access levels give granular control
- Built-in performance analysis helps identify slow queries
- Open source with strong community adoption (over 2800 stars)
Cons
- Requires an MCP-compatible client to interact with the database
- Write access carries risk of accidental data modification or deletion
- Setup involves configuring a Python server and credentials
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Configurable read/write access levels give granular control
- Built-in performance analysis helps identify slow queries
- Open source with strong community adoption (over 2800 stars)
Cons
- Requires an MCP-compatible client to interact with the database
- Write access carries risk of accidental data modification or deletion
- Setup involves configuring a Python server and credentials
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.