Back to Home
annmalavet icon

MCP-SERVER-DB

Verified Safe

by 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

Run Command
npm start

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens500
Stars0
Forks0
Last Update2026-01-11

Tags

MCPDatabasePostgreSQLAPITool