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.4.0.tar.gz
(37.3 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.4.0.tar.gz.
File metadata
- Download URL: wpostgresql_mcp-0.4.0.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d748be20aa8eaa377955a59f35a7db84e0b4c3cb651df403fb4b4b2802c1eb6
|
|
| MD5 |
13651ff8f9fa514122430ba53d3089a2
|
|
| BLAKE2b-256 |
7e21c5cc3fd4dc6686ad26ab7f61945cd4c0e7515428022997832c41b4bf515a
|
File details
Details for the file wpostgresql_mcp-0.4.0-py3-none-any.whl.
File metadata
- Download URL: wpostgresql_mcp-0.4.0-py3-none-any.whl
- Upload date:
- Size: 32.8 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 |
38d0e3afe52df7a1374e054a1eddb61097e7abd7894fddc724807f0cc5297ff4
|
|
| MD5 |
a3d01629f698e18ff4a2917ab08c749a
|
|
| BLAKE2b-256 |
82cf318dfbfb2ea6cb80bcc2a8e1de4818c8502e17b4e7a53c625bd21a77c975
|