Back to Home
annmalavet icon

MCP-SERVER-PATIENT-INFO

by annmalavet

Overview

This server provides a RESTful API with tools to manage patient information, including searching, creating, and updating patient records in a PostgreSQL database.

Installation

Run Command
npm run dev

Environment Variables

  • PORT
  • DB_USER
  • DB_PASS
  • DB_NAME
  • DB_HOST
  • DB_PORT

Security Notes

CRITICAL SECURITY RISKS IDENTIFIED: 1. CORS Misconfiguration: The server uses `cors({ origin: '*' })`, which allows requests from any origin. For a system handling sensitive patient information, this is a severe vulnerability that bypasses same-origin policy, making it susceptible to cross-site request forgery (CSRF) and potential data exfiltration from any malicious website if not protected by other strong authentication mechanisms (which are not present in the provided code). 2. PostgreSQL SSL/TLS Insecurity: The database connection is configured with `ssl: { rejectUnauthorized: false }`. This disables SSL/TLS certificate validation, meaning the server will connect to any PostgreSQL instance without verifying its identity. This makes the database connection vulnerable to man-in-the-middle (MITM) attacks, allowing attackers to intercept or alter sensitive patient data in transit. While the application correctly uses parameterized queries (e.g., `$1`, `$2`) to prevent common SQL injection vulnerabilities in its data access layer, the critical network and database connection security flaws outweigh this positive aspect for a system dealing with sensitive personal information.

Similar Servers

Stats

Interest Score0
Security Score1
Cost ClassLow
Avg Tokens75
Stars0
Forks0
Last Update2026-01-19

Tags

Patient ManagementDatabase APIMedical RecordsMCPData Storage