Skip to main content

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.3.0.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wpostgresql_mcp-0.3.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file wpostgresql_mcp-0.3.0.tar.gz.

File metadata

  • Download URL: wpostgresql_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for wpostgresql_mcp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 eae0f2f12fb71a99fef5f9701f04b2cfb634eaf15a85e87d8f38fc9d3deb7f04
MD5 3397b1bb0aea61a0c1127db00e0311dd
BLAKE2b-256 007359f27dfdcb051611f218d287b1b1426c8f94fcee6e7c583d3207ab4b9336

See more details on using hashes here.

File details

Details for the file wpostgresql_mcp-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wpostgresql_mcp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffa3a26eb5ddf2e3c4fb944ead68c5790e74103157175f89a222adf663a2ebda
MD5 330dbb5bd9312ac1d05204e8c9a6b54b
BLAKE2b-256 bb698b43ab6cd44e709c4fc92ba216791ee8e49a9ec1b26b73fc71447f85ae27

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.0

2 files

This release

0.3.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page