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
- 20 Offline Patterns: All core wpostgresql features cataloged with module references
- 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
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 examples |
get_wpostgresql_architect_manual |
Expert rules, module map, data structure selection guide |
search_wpostgresql_pattern |
Search 20+ 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wpostgresql_mcp-0.1.0.tar.gz
(21.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wpostgresql_mcp-0.1.0.tar.gz.
File metadata
- Download URL: wpostgresql_mcp-0.1.0.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ea593e218b11b94b601c447c824676f1e341598b1714b111389aba0d08a18c2
|
|
| MD5 |
28f694a17eb6c87d38e527a7638c7419
|
|
| BLAKE2b-256 |
af54c0311f70fde8a0e339708216cad947d3bc70a781208cc57dd2a986a35907
|
File details
Details for the file wpostgresql_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wpostgresql_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d77ffb89bda3d126d603ff8744552824d0575c47998f09fb6286360da548509e
|
|
| MD5 |
f61c06efe081e2a96af1a3dcff1d395d
|
|
| BLAKE2b-256 |
35fe775c2803edb904e925020164d0a1a40a1c8ddc1d0ad4602d752a7be8be38
|