MCP-SERVER-DB
Verified Safeby annmalavet
Overview
This server provides a Model Context Protocol (MCP) endpoint that exposes a 'search_database' tool for querying a PostgreSQL database for people by email or major.
Installation
npm startEnvironment Variables
- PORT
- DB_USER
- DB_PASS
- DB_NAME
- DB_HOST
- DB_PORT
Security Notes
The server uses parameterized SQL queries to interact with the database, effectively preventing SQL injection vulnerabilities. However, it directly exposes raw database error messages to the client, which can be an information disclosure risk, potentially revealing internal database structure or query failures.
Similar Servers
pg-aiguide
Provides AI-optimized PostgreSQL expertise, including semantic search over documentation and curated best practices, to assist AI coding tools in generating better PostgreSQL code.
langgraph-dev-navigator
Provides a RAG and Knowledge Graph powered backend for grounding AI coding assistants in the LangGraph ecosystem, improving code generation accuracy and reducing hallucinations.
postgres-mcp
A PostgreSQL database management and optimization expert system, offering interactive workflows for query analysis, index tuning, health monitoring, backup strategies, and advanced functionalities like vector search and geospatial data management. It helps users understand and improve their PostgreSQL database performance and health.
polarbase
Extensible open-source data backend for PostgreSQL with a multi-view UI (spreadsheet), AI agent integration via MCP, and real-time capabilities.