wpostgresql-mcp
Provides tools for architecting, scaffolding, and validating PostgreSQL-backed systems using the wpostgresql library.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
wpostgresql-mcp
MCP Server for WPostgreSQL Architecting β teaches AI agents how to build high-performance PostgreSQL-backed systems with the wpostgresql library.
Features
10 Architect Tools: Blueprints, manual, catalog search, scaffolding, connection validation, pattern generation
Multi-Table Architecting: Teaches
WPostgreSQL([User, Product, Order])multi-table management, dictionary indexingdb[User], attribute accessdb.product, and auto-routing24 Offline Patterns: Core CRUD, async, multi-table, batch, transaction, pooling, schema sync, wsqlite backup, and Forensic Audit (
ForensicModelsoft delete & status=99)Scaffolding Generator: Deploys full project structure with config, models, repositories, migrations, main.py
Live Connection Validation: Tests PostgreSQL connectivity via psycopg 3 and returns health status
Pattern-based Generation: Generates starter projects from catalog patterns
Related MCP server: query-executor
Relevant Technologies & Key Libraries
Model Context Protocol (MCP):
mcp[cli]>=1.0.0for AI agent interactionPython 3.10+: Type hints and async I/O
wpostgresql: Type-safe PostgreSQL ORM with Pydantic integration and
ForensicModelsupportPydantic v2: Data model validation and schema generation
Installation
# Clone and install
cd wpostgresql-mcp
pip install -e .Or use the installer:
chmod +x installer.sh
./installer.shQuick Start
# Run the MCP server in stdio mode (for agent integration)
wpostgresql-mcp run
# Get configuration for your AI agent
wpostgresql-mcp config
# Start as background SSE server
wpostgresql-mcp startAvailable Tools
Tool | Description |
| Complete CRUD, async, batch, transaction, pool, sync, query builder, SQLite backup, and Forensic Audit ( |
| Expert rules, module map, data structure selection guide |
| Search 22+ PostgreSQL patterns in official/community catalogs |
| Generate full project structure with config/models/repos/migrations |
| Live health check against a running PostgreSQL instance |
| Generate project + example from a specific catalog pattern |
Agent Integration
Gemini CLI
gemini mcp add wpostgresql-mcp python3 -m wpostgresql_mcp.server runClaude Desktop / Cursor
{
"mcpServers": {
"wpostgresql-mcp": {
"command": "python3",
"args": ["-m", "wpostgresql_mcp.server", "run"]
}
}
}OpenCode
Add to .opencode/config.json:
{
"mcpServers": {
"wpostgresql-mcp": {
"command": "python3",
"args": ["-m", "wpostgresql_mcp.server", "run"]
}
}
}Commands
Command | Description |
| Run in stdio mode (default) |
| Run in SSE mode |
| Start as background SSE server |
| Stop background server |
| Print/save JSON configuration |
| Show help |
Generated by WPostgreSQL MCP by wisrovi
π€ Autor & AfiliaciΓ³n Oficial
William Steve Rodriguez Villamizar (Wisrovi)
Cargo: Principal AI Engineer & Applied AI Solutions Architect | Scientific Researcher
π§ Email: wisrovi.rodriguez@gmail.com
π Portal Oficial: wisrovi.dev
πΌ LinkedIn: wisrovi-rodriguez
π ORCID: 0009-0005-0710-1861
π¦ PyPI: pypi.org/user/wisrovi/
π GitHub: @wisrovi
This server cannot be deployed
Maintenance
Related MCP Connectors
Supabase-compatible Postgres for agents: projects, branches, SQL, auth, storage, email.
PostgreSQL, MySQL, OpenAPI/Swagger, and shared Agent Memory with scoped access.
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with PostgreSQL databases through schema intelligence, query execution, and DBA tooling including index analysis and health monitoring. Features configurable access levels and audit logging for secure database operations.861 npmMIT
- FlicenseAqualityDmaintenanceEnables AI agents to read and optionally write to PostgreSQL databases through a multi-project setup with schema inspection, query execution, and performance analysis tools.5-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with PostgreSQL databases through natural language queries, schema inspection, and safe SQL execution.1 npm1ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query and explore PostgreSQL databases with tools for executing SQL queries, listing tables, and describing table structures.MIT