1- # PostgreSQL MCP Server - Version 1.0.5
1+ # PostgreSQL MCP Server - Version 1.1.0
22
3- * Last Updated October 3 , 2025 7:58 PM EST **
3+ * Last Updated October 4 , 2025 **
44
5- Enterprise-grade PostgreSQL MCP server with enhanced security, comprehensive testing, AI-native database operations, and advanced analytics .
5+ Enterprise-grade PostgreSQL MCP server with enhanced security, comprehensive testing, AI-native database operations, intelligent meta-awareness, and guided workflows .
66
77[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( https://opensource.org/licenses/MIT )
88[ ![ Security] ( https://img.shields.io/badge/Security-Enhanced-green.svg )] ( SECURITY.md )
@@ -38,7 +38,9 @@ For detailed documentation, examples, and guides, visit our comprehensive wiki:
3838
3939## 🚀 ** Quick Overview**
4040
41- ** 63 specialized MCP tools** for PostgreSQL operations:
41+ ** 63 specialized MCP tools** + ** 10 intelligent resources** + ** 10 guided prompts** for PostgreSQL operations:
42+
43+ ### MCP Tools (63)
4244- ** Core Database (9)** : Schema management, SQL execution, health monitoring
4345- ** JSON Operations (11)** : JSONB operations, validation, security scanning
4446- ** Text Processing (5)** : Similarity search, full-text search, fuzzy matching
@@ -49,6 +51,31 @@ For detailed documentation, examples, and guides, visit our comprehensive wiki:
4951- ** Backup & Recovery (4)** : Backup planning, restore validation, scheduling
5052- ** Monitoring & Alerting (5)** : Real-time monitoring, capacity planning, alerting
5153
54+ ### MCP Resources (10) - Database Meta-Awareness
55+ - ** database://schema** : Complete schema with tables, columns, indexes
56+ - ** database://capabilities** : Server capabilities and installed extensions
57+ - ** database://performance** : Query performance metrics from pg_stat_statements
58+ - ** database://health** : Comprehensive health status
59+ - ** database://extensions** : Installed extensions with versions
60+ - ** database://indexes** : Index usage statistics and recommendations
61+ - ** database://connections** : Active connections and pool status
62+ - ** database://replication** : Replication status and lag
63+ - ** database://vacuum** : Vacuum status and transaction ID wraparound
64+ - ** database://locks** : Current lock information
65+ - ** database://statistics** : Table statistics quality
66+
67+ ### MCP Prompts (10) - Guided Workflows
68+ - ** optimize_query** : Step-by-step query optimization
69+ - ** index_tuning** : Comprehensive index analysis
70+ - ** database_health_check** : Full health assessment
71+ - ** setup_pgvector** : Complete pgvector setup guide
72+ - ** json_operations** : JSONB best practices
73+ - ** performance_baseline** : Establish performance baselines
74+ - ** backup_strategy** : Design backup strategy
75+ - ** setup_postgis** : PostGIS setup and usage
76+ - ** explain_analyze_workflow** : Deep dive into EXPLAIN plans
77+ - ** extension_setup** : Extension installation guide
78+
5279Enhanced with ** pg_stat_statements** , ** hypopg** , ** pgvector** , and ** PostGIS** extensions.
5380
5481---
@@ -101,6 +128,7 @@ uv run pytest -v
101128- ✅ Dual security modes (restricted/unrestricted)
102129- ✅ Advanced query validation
103130- ✅ CodeQL security scanning passing
131+ - ✅ ** Pyright strict mode** - 2,000+ type issues resolved, 100% type-safe codebase
104132
105133** Security Modes:**
106134- ** Restricted (Production)** : Read-only, query validation, resource limits
@@ -134,7 +162,9 @@ uv run pytest -v
134162
135163---
136164
137- ## 📊 ** Tool Categories (63 Tools)**
165+ ## 📊 ** Features Overview**
166+
167+ ### MCP Tools (63)
138168
139169Explore comprehensive documentation for each category:
140170
@@ -150,7 +180,46 @@ Explore comprehensive documentation for each category:
150180| ** Backup & Recovery** | 4 | [ Backup Tools →] ( https://github.com/neverinfamous/postgres-mcp/wiki/Backup-Recovery ) |
151181| ** Monitoring & Alerting** | 5 | [ Monitoring →] ( https://github.com/neverinfamous/postgres-mcp/wiki/Monitoring-Alerting ) |
152182
153- ** 📖 [ View All Tools →] ( https://github.com/neverinfamous/postgres-mcp/wiki/Home ) **
183+ ### MCP Resources (10) - NEW in v1.1.0! 🎉
184+
185+ Resources provide real-time database meta-awareness - AI can access these automatically without explicit tool calls:
186+
187+ | Resource | Purpose | When to Use |
188+ | ----------| ---------| -------------|
189+ | ** database://schema** | Complete database structure | Understanding database layout before queries |
190+ | ** database://capabilities** | Server features and extensions | Checking what operations are available |
191+ | ** database://performance** | Query performance metrics | Identifying slow queries proactively |
192+ | ** database://health** | Database health status | Proactive monitoring and issue detection |
193+ | ** database://extensions** | Extension inventory | Verifying required features are installed |
194+ | ** database://indexes** | Index usage statistics | Finding unused or missing indexes |
195+ | ** database://connections** | Connection pool status | Monitoring connection utilization |
196+ | ** database://replication** | Replication lag and status | Ensuring replica consistency |
197+ | ** database://vacuum** | Vacuum and wraparound status | Preventing transaction ID exhaustion |
198+ | ** database://locks** | Lock contention information | Diagnosing deadlocks and blocking |
199+ | ** database://statistics** | Statistics quality | Ensuring accurate query planning |
200+
201+ ** 💡 Key Benefit:** Resources reduce token usage by providing cached context vs. repeated queries!
202+
203+ ### MCP Prompts (10) - NEW in v1.1.0! 🎉
204+
205+ Prompts provide guided workflows for complex operations - step-by-step instructions with examples:
206+
207+ | Prompt | Purpose | Use Case |
208+ | --------| ---------| ----------|
209+ | ** optimize_query** | Query optimization workflow | Analyzing and improving slow queries |
210+ | ** index_tuning** | Index analysis and recommendations | Finding unused/missing/duplicate indexes |
211+ | ** database_health_check** | Comprehensive health assessment | Regular maintenance and monitoring |
212+ | ** setup_pgvector** | pgvector installation and setup | Implementing semantic search |
213+ | ** json_operations** | JSONB best practices | Optimizing JSON queries and indexes |
214+ | ** performance_baseline** | Baseline establishment | Setting up performance monitoring |
215+ | ** backup_strategy** | Backup planning and design | Designing enterprise backup strategy |
216+ | ** setup_postgis** | PostGIS installation and usage | Implementing geospatial features |
217+ | ** explain_analyze_workflow** | Deep plan analysis | Understanding query execution |
218+ | ** extension_setup** | Extension installation guide | Installing and configuring extensions |
219+
220+ ** 💡 Key Benefit:** Prompts guide users through complex multi-step operations with PostgreSQL best practices!
221+
222+ ** 📖 [ View Complete Documentation →] ( https://github.com/neverinfamous/postgres-mcp/wiki/Home ) **
154223
155224---
156225
@@ -176,10 +245,31 @@ CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;
176245
177246## 🆕 ** Recent Updates**
178247
248+ ### ** Version 1.1.0 Release** 🎉 (October 4, 2025)
249+ - ** 🌟 NEW: MCP Resources (10)** : Real-time database meta-awareness
250+ - Instant access to schema, capabilities, performance, health
251+ - Reduces token usage by providing cached context
252+ - AI can access database state without explicit queries
253+ - ** 🌟 NEW: MCP Prompts (10)** : Guided workflows for complex operations
254+ - Step-by-step query optimization workflow
255+ - Comprehensive index tuning guide
256+ - Complete database health assessment
257+ - pgvector and PostGIS setup guides
258+ - JSONB best practices and optimization
259+ - ** ✨ Intelligent Assistant** : Transforms from tool collection to database expert
260+ - Proactive optimization suggestions
261+ - Context-aware recommendations
262+ - PostgreSQL-specific best practices
263+ - ** 🔒 Code Quality** : Pyright strict mode compliance
264+ - Resolved 2,000+ type issues
265+ - 100% type-safe codebase
266+ - Enhanced reliability and maintainability
267+ - ** 📦 Zero Breaking Changes** : All existing tools work unchanged
268+
179269### ** Version 1.0.0 Release** 🎉 (October 3, 2025)
180270- ** Production Ready** : Enterprise-grade PostgreSQL MCP server
181271- ** 63 Specialized Tools** : Complete feature set across 9 categories
182- - ** Zero Known Vulnerbilities ** : Comprehensive security audit passed
272+ - ** Zero Known Vulnerabilities ** : Comprehensive security audit passed
183273- ** Type Safety** : Pyright strict mode compliance
184274- ** Multi-Platform** : Windows, Linux, macOS (amd64, arm64)
185275
@@ -265,6 +355,7 @@ uv run pytest --cov=src tests/
265355- ✅ Security: 20/20 passed (100% protection)
266356- ✅ SQL Injection: All vectors blocked
267357- ✅ Integration: All operations validated
358+ - ✅ Type Safety: Pyright strict mode (2,000+ issues resolved)
268359- ✅ Compatibility: PostgreSQL 13-17 supported
269360
270361
@@ -273,13 +364,19 @@ uv run pytest --cov=src tests/
273364## 🏆 ** Why Choose This Server?**
274365
275366- ✅ ** Zero Known Vulnerabilities** - Comprehensive security audit passed
367+ - ✅ ** Pyright Strict Mode** - 2,000+ type issues resolved, 100% type-safe codebase
276368- ✅ ** Enterprise-Grade** - Production-ready with advanced features
277369- ✅ ** 63 Specialized Tools** - Complete database operation coverage
370+ - ✅ ** 10 Intelligent Resources** - Real-time database meta-awareness (NEW in v1.1.0!)
371+ - ✅ ** 10 Guided Prompts** - Step-by-step workflows for complex operations (NEW in v1.1.0!)
372+ - ✅ ** AI Assistant Capabilities** - Proactive optimization and recommendations
278373- ✅ ** Real-Time Analytics** - pg_stat_statements integration
279374- ✅ ** AI-Native** - Vector search, semantic operations, ML-ready
280375- ✅ ** Active Maintenance** - Regular updates and security patches
281376- ✅ ** Comprehensive Documentation** - 16-page wiki with examples
282377
378+ ** 🌟 v1.1.0 Differentiation:** Only PostgreSQL MCP server with intelligent meta-awareness and guided workflows!
379+
283380---
284381
285382## 🔗 ** Links**
@@ -304,14 +401,16 @@ uv run pytest --cov=src tests/
304401
305402## 📈 ** Project Stats**
306403
307- - ** Version 1.0.5 ** - Production ready release (October 3 , 2025)
404+ - ** Version 1.1.0 ** - Intelligent assistant release (October 4 , 2025)
308405- ** 63 MCP Tools** across 9 categories
309- - ** Phase 5 Complete** ✅ - All enterprise features implemented
310- - ** Type Safe** - Pyright strict mode
406+ - ** 10 MCP Resources** - Database meta-awareness (NEW!)
407+ - ** 10 MCP Prompts** - Guided workflows (NEW!)
408+ - ** 100% Type Safe** - Pyright strict mode (2,000+ issues resolved)
311409- ** Zero Known Vulnerabilities** - Security audit passed
410+ - ** Zero Linter Errors** - Clean codebase with comprehensive type checking
312411- ** PostgreSQL 13-17** - Full compatibility
313412- ** Multi-platform** - Windows, Linux, macOS (amd64, arm64)
314- - ** 6,900 + lines** - 12 modules, comprehensive implementation
413+ - ** 7,500 + lines** - 14 modules, comprehensive implementation
315414
316415---
317416
0 commit comments