About
PostgreSQL Database Query Server enables direct SQL query execution against PostgreSQL databases through an MCP-compliant interface. It provides secure database access with support for complex query operations and connection management. Key capabilities include: - Execute custom SQL queries with full PostgreSQL syntax support - Parameterized queries to prevent SQL injection and improve security - SSL/TLS encryption for secure database connections with certificate validation - Connection pooling for efficient resource management and performance - Configurable query timeouts for long-running operation control
README
PostgreSQL MCP Server
[](https://smithery.ai/server/@1Levick3/postgresql-mcp-server)
A Model Context Protocol (MCP) server that provides direct PostgreSQL database query execution capabilities. This server enables custom SQL query execution against PostgreSQL databases with support for parameterized queries and configurable timeouts. This project is designed specifically for use with the Cursor IDE.
Prerequisites
Installation
Installing via Smithery
To install PostgreSQL Database Query Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @1Levick3/postgresql-mcp-server --client claude
Manual Installation
1. Clone the repository 2. Install dependencies: npm install
3. Build the server:
npm run build
4. Add to MCP settings file:
{
"mcpServers": {
"postgresql-mcp": {
"command": "node",
"args": ["/Users/1Levick3/Desktop/postgresql-mcp-server/build/index.js"],
"disabled": false,
"alwaysAllow": [],
"env": {
"POSTGRES_CONNECTION_STRING": "postgresUrl",
"POSTGRES_SSL_CERT_PATH": "/Users/1levick3/Desktop/root.crt"
}
}
}
}
Development
npm run dev - Start development server with hot reloadnpm run lint - Run ESLintnpm test - Run testsSecurity Considerations
1. Connection Security - Uses connection pooling - Implements connection timeouts - Validates connection strings - Supports SSL/TLS connections
Contributing
1. Fork the repository 2. Create a feature branch 3. Commit your changes 4. Push to the branch 5. Create a Pull Request
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support
Saju Insights
hjsh200219
Saju Insights provides personalized Korean traditional Four Pillars of Destiny (Saju) fortune-telling based on birth data. It calculates destiny charts using the eight characters (four heavenly stems and four earthly branches) derived from birth year, month, day, and hour. Key capabilities include: - Birth chart calculation with automatic True Solar Time adjustment (Jintaeyangsi -30min correction) - Fortune analysis covering personality, career, wealth, health, and love prospects - Relationship compatibility analysis comparing two people's Saju charts - 10-year luck cycle (Daewon) predictions for long-term planning - Yongsin (favorable element) guidance on lucky colors, directions, and career paths - Lunar-solar calendar conversion supporting 1900-2200 with leap month handling - Daily fortune readings and seasonal power calculations - Multiple interpretation schools including Ziping, DTS, and modern methodologies