wpostgresql-mcp
Provides tools for architecting, scaffolding, and validating PostgreSQL-backed systems using the wpostgresql library.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wpostgresql-mcpscaffold a new postgres project with async support"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: PostgreSQL MCP Server
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
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.
AI agent toolkit: live social media data, lead enrichment + email finder, Postgres DB, webhooks.
Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.
Related MCP Servers
- 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-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with PostgreSQL databases through natural language queries, schema inspection, and safe SQL execution.8 npm1-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query and explore PostgreSQL databases with tools for executing SQL queries, listing tables, and describing table structures.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to safely and audibly operate PostgreSQL databases and their Docker environments, offering schema inspection, guarded queries, migrations, performance diagnosis, and container management tools.51 PyPIMIT