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
cd mcp-server && npm install && npm run startEnvironment 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
ha-mcp
Provides AI agents with complete control over Home Assistant via REST and WebSocket APIs, offering a comprehensive suite of tools for smart home management, automation, and debugging.
ddg_search
A Model Context Protocol server for web search using DuckDuckGo and AI-powered answers from IAsk AI, Monica, and Brave AI, designed for integration with AI assistants.
bluera-knowledge
Provides a semantic knowledge base and intelligent web crawling capabilities to power coding agents, enabling them to search internal project files, Git repositories, and crawled web documentation.
lyra-tool-discovery
This MCP server is designed to fetch, parse, and organize documentation from websites implementing the llms.txt standard. It transforms raw documentation into structured, agent-ready formats, exposing tools for AI agents, LLMs, and automation workflows to consume documentation programmatically.