Back to Home
MagedDevOps icon

mcp-server

by MagedDevOps

Overview

Provides a Model Context Protocol (MCP) server for AlSalam Hospital management operations, including appointment booking, patient services, and WhatsApp integration.

Installation

Run Command
docker run -p 3000:3000 alsalam-hospital-mcp

Environment Variables

  • PORT
  • REQUEST_TIMEOUT
  • WHATSAPP_API_TOKEN
  • ALSALAM_HOSPITAL_API_URL

Security Notes

CRITICAL: The WhatsApp API bearer token is hardcoded directly in the `send_whatsapp_message` tool's source code (`server.js`). This is a severe security vulnerability as it grants full access to send messages from the linked WhatsApp Business Account to anyone with access to the codebase. It should be stored as an environment variable and loaded securely. CORS is set to `Access-Control-Allow-Origin: *`, which is overly permissive. While the README mentions 'CORS support for browser compatibility', this 'allow all' setting is generally not recommended for APIs handling sensitive patient data unless strict IP-based access controls or other authentication mechanisms are in place upstream. The `REQUEST_TIMEOUT` is defined as an environment variable in the README but is hardcoded as a constant (`50000`ms) within `server.js`, meaning it cannot be configured via environment variables as advertised. Input validation is implemented using Zod schemas for tool arguments, which is a good practice.

Similar Servers

Stats

Interest Score0
Security Score1
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-12-18

Tags

Hospital ManagementAPI GatewaySSENode.jsMCP Framework