wpostgresql-mcp
wpostgresql-mcp
用于 WPostgreSQL 架构设计的 MCP 服务器——教 AI 代理如何使用 wpostgresql 库构建高性能的 PostgreSQL 后端系统。
功能特性
10 个架构工具:蓝图、手册、目录搜索、脚手架、连接验证、模式生成
20 个离线模式:所有核心 wpostgresql 功能均附带模块引用目录
脚手架生成器:部署完整的项目结构,包含配置、模型、仓库、迁移、main.py
实时连接验证:通过 psycopg 3 测试 PostgreSQL 连接并返回健康状态
基于模式的生成:从目录模式生成入门项目
Related MCP server: PostgreSQL MCP Server
安装
# Clone and install
cd wpostgresql-mcp
pip install -e .或使用安装程序:
chmod +x installer.sh
./installer.sh快速开始
# 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可用工具
工具 | 描述 |
| 完整的 CRUD、异步、批量、事务、连接池、同步、查询构建器示例 |
| 专家规则、模块映射、数据结构选择指南 |
| 在官方/社区目录中搜索 20+ 个 PostgreSQL 模式 |
| 生成包含配置/模型/仓库/迁移的完整项目结构 |
| 对正在运行的 PostgreSQL 实例进行实时健康检查 |
| 从特定目录模式生成项目 + 示例 |
代理集成
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
添加到 .opencode/config.json:
{
"mcpServers": {
"wpostgresql-mcp": {
"command": "python3",
"args": ["-m", "wpostgresql_mcp.server", "run"]
}
}
}命令
命令 | 描述 |
| 以 stdio 模式运行(默认) |
| 以 SSE 模式运行 |
| 作为后台 SSE 服务器启动 |
| 停止后台服务器 |
| 打印/保存 JSON 配置 |
| 显示帮助 |
由 wisrovi 的 WPostgreSQL MCP 生成
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.6 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.59 PyPIMIT