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-routing - 24 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
Relevant Technologies & Key Libraries
- Model Context Protocol (MCP):
mcp[cli]>=1.0.0for AI agent interaction - Python 3.10+: Type hints and async I/O
- wpostgresql: Type-safe PostgreSQL ORM with Pydantic integration and
ForensicModelsupport - Pydantic 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.sh
Quick 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 start
Available Tools
| Tool | Description |
|---|---|
get_wpostgresql_architect_blueprints |
Complete CRUD, async, batch, transaction, pool, sync, query builder, SQLite backup, and Forensic Audit (ForensicModel) examples |
get_wpostgresql_architect_manual |
Expert rules, module map, data structure selection guide |
search_wpostgresql_pattern |
Search 22+ PostgreSQL patterns in official/community catalogs |
deploy_wpostgresql_scaffolding |
Generate full project structure with config/models/repos/migrations |
validate_postgresql_connection |
Live health check against a running PostgreSQL instance |
generate_from_pattern |
Generate project + example from a specific catalog pattern |
Agent Integration
Gemini CLI
gemini mcp add wpostgresql-mcp python3 -m wpostgresql_mcp.server run
Claude 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 |
|---|---|
wpostgresql-mcp run |
Run in stdio mode (default) |
wpostgresql-mcp run-sse |
Run in SSE mode |
wpostgresql-mcp start |
Start as background SSE server |
wpostgresql-mcp stop |
Stop background server |
wpostgresql-mcp config |
Print/save JSON configuration |
wpostgresql-mcp help |
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
Metadata
Release files for wpostgresql-mcp 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wpostgresql_mcp-0.9.0.tar.gz | 40.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wpostgresql_mcp-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.6 kB
Release files / wpostgresql_mcp-0.9.0.tar.gz
| Download URL | wpostgresql_mcp-0.9.0.tar.gz |
|---|---|
| Size | 40.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55521a1af896a343a0fb2f3b547aab6051eb2ca630f4328b10597d402c165486
|
|
BLAKE2b-256 checksum How to use checksums |
e38696e36a5fb4af80b8de4f99dca0bb4b19344195c55a09c8da43993e73ec34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / wpostgresql_mcp-0.9.0-py3-none-any.whl
| Download URL | wpostgresql_mcp-0.9.0-py3-none-any.whl |
|---|---|
| Size | 35.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4946824e81b4b238c72b4500340174e7f0cd579827a260e61bdefb35cc70cd1c
|
|
BLAKE2b-256 checksum How to use checksums |
4c6dda2a1d81687af79c28e6dc2630b2e4173b5fd0739a3b6a904c44a8762d6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for wpostgresql-mcp 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.