Back to Apps

PostgreSQL MCP Server
Supports UIby helloworld-zy
Production-grade MCP server that converts natural language to secure SQL queries for PostgreSQL databases.
0 stars
Works in:claude
Exposes:ToolsResources
What it does
Provides a secure interface for AI agents to interact with PostgreSQL databases using natural language, featuring automatic SQL generation, safety validation, and result verification.
Tools
- NL-to-SQL: Translates natural language questions into optimized PostgreSQL queries.
- Schema Inspector: Automatically caches and manages database schema for LLM context.
- Result Validator: AI-powered validation of query results with confidence scoring.
Installation
{
"mcpServers": {
"postgres": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/pg-mcp",
"run",
"python",
"main.py"
],
"env": {
"DATABASE_HOST": "localhost",
"DATABASE_NAME": "your_database",
"DATABASE_USER": "your_user",
"DATABASE_PASSWORD": "your_password",
"OPENAI_API_KEY": "sk-your-api-key-here"
}
}
}
}
Supported hosts
- Claude Desktop
Quick install
git clone https://github.com/helloWorld-zy/pg-mcp-rev && cd pg-mcp-rev && uv syncInformation
- Pricing
- free
- Published
- 6/13/2026
- stars
- 0
Categories
Choose your AI client and follow the steps below.
Claude Desktop
Add the configuration to claude_desktop_config.json with your DB credentials and OpenAI API key.





