Back to Home
Jevon-Zhong icon

Ai-doctor

by Jevon-Zhong

Overview

A medical AI chatbot system that provides health consultations, supports knowledge base queries (RAG), and can crawl web pages for medical articles to analyze and respond to user questions using the Model Context Protocol (MCP).

Installation

Run Command
cd mcp-server && npm install && npm run start

Environment Variables

  • MONGODB_URI
  • PASSWORD_KEY
  • JWT_SECRET
  • MILVUS_ADDRESS
  • QWEN_API_KEY
  • REDIS_HOST
  • REDIS_PORT
  • IP_ADDR
  • PORT

Security Notes

Critical security risks identified: The provided demo client (`mcp-client-demo`) has a hardcoded `QWEN_API_KEY`, which is a severe vulnerability for any deployment using that client. The `mcp-server` implements a `crawlWeb` tool that fetches content from a URL dynamically provided by the LLM. This introduces a risk of prompt injection, potentially leading the LLM to crawl malicious sites, exploit browser vulnerabilities in Playwright, or facilitate Server-Side Request Forgery (SSRF) if the Playwright instance is not properly isolated. Additionally, the `ai-doctor-server` uses `app.enableCors({ origin: '*' })` (allowing all origins), which is a security anti-pattern in production, potentially exposing the API to Cross-Site Request Forgery (CSRF) or other cross-origin attacks. While the `JSON.parse` calls are expected to handle LLM-generated tool arguments structured according to Zod schemas, a robust validation layer is crucial to prevent parsing arbitrary or malicious strings if schema bypasses were possible.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassHigh
Avg Tokens1500
Stars0
Forks0
Last Update2025-12-04

Tags

AIChatbotMedicalRAGWeb Scraping