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
npm run devEnvironment 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
aibolit-mcp-server
Provides static code analysis feedback (most critical design issue) to AI agents for Java code refactoring via the Model Context Protocol (MCP).
enhanced-postgres-mcp-server
This server acts as a Model Context Protocol interface for PostgreSQL, enabling LLMs to query data, modify records, and manage database schema objects with read and write capabilities.
mcp-openehr-assistant
The openEHR Assistant MCP Server helps end-users, especially openEHR modelers and developers, with various openEHR-related tasks and APIs, including archetype exploration, semantic explanation, language translation, syntax correction, and design reviews, by connecting AI assistants to external data sources and tools.
postgrest-mcp
A PostgREST MCP (Model Context Protocol) server that uses OAuth2 for authentication and integrates with PostgREST APIs.