Mcp Based Ai Doctor Assistant — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Based Ai Doctor Assistant (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Your Virtual Medical Advisor powered by Model Context Protocol (MCP)
This AI assistant is NOT a replacement for professional medical advice, diagnosis, or treatment.
>
- ❌ Cannot diagnose diseases - ❌ Cannot prescribe medications - ❌ Cannot replace a real doctor - ✅ CAN provide health information - ✅ CAN detect potential emergencies - ✅ CAN explain medical terms
>
Always consult a qualified healthcare provider for medical decisions.
| Tool | Description |
|---|---|
| 🔍 check_symptoms | Analyze symptoms, assess risk level, provide self-care tips |
| 🚨 detect_emergency | Detect life-threatening situations, provide immediate guidance |
| 🔬 explain_lab_report | Explain blood tests, lab values in simple language |
| 💪 health_advice | Exercise, sleep, stress management, lifestyle tips |
| 💊 medicine_info | Medicine information (NOT prescriptions) |
| 🧠 mental_health_support | Anxiety, stress, depression resources, crisis helplines |
| 🥗 diet_nutrition | Diet plans for diabetes, heart health, weight loss |
| 🆘 first_aid_guide | Step-by-step first aid for emergencies |
| 🤰 pregnancy_guide | Trimester-specific pregnancy information |
| 👶 child_health | Vaccination schedules, pediatric guidance |
| 🏥 chronic_disease_info | Diabetes, hypertension, heart disease management |
| 📍 find_hospital | Help finding nearby healthcare facilities |
git clone <repository-url>
cd "MCP-Based AI Doctor Assistant" python -m venv venv
# Windows
.\venv\Scripts\activate
# Mac/Linux
source venv/bin/activate pip install -r requirements.txt # Copy example env file
cp .env.example .env
# Edit .env and add your Gemini API key (optional, for enhanced AI responses)
# Get free key at: https://makersuite.google.com/app/apikey python -m src.server| Variable | Description | Required |
|---|---|---|
GEMINI_API_KEY | Google Gemini API key for AI responses | Optional |
SERVER_HOST | Server host (default: 0.0.0.0) | No |
SERVER_PORT | Server port (default: 8000) | No |
DEBUG_MODE | Enable debug mode (default: true) | No |
LOG_LEVEL | Logging level (default: INFO) | No |
The server can be configured in Claude Desktop or other MCP clients:
{
"mcpServers": {
"ai-doctor": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "/path/to/MCP-Based AI Doctor Assistant"
}
}
}# Using the MCP tool
{
"tool": "check_symptoms",
"arguments": {
"symptoms": ["headache", "fever", "fatigue"],
"age": 35,
"gender": "male",
"duration": "2 days"
}
}{
"tool": "explain_lab_report",
"arguments": {
"tests": {
"hemoglobin": 12.5,
"wbc": 7500,
"fasting_glucose": 110
},
"gender": "female"
}
}{
"tool": "health_advice",
"arguments": {
"topic": "sleep"
}
}{
"tool": "detect_emergency",
"arguments": {
"symptoms": ["chest pain", "shortness of breath"],
"context": "Started suddenly while walking"
}
}MCP-Based AI Doctor Assistant/
├── src/
│ ├── __init__.py
│ ├── server.py # Main MCP server
│ ├── config.py # Configuration
│ │
│ ├── core/
│ │ ├── safety_engine.py # Emergency detection, disclaimers
│ │ ├── llm_client.py # Gemini API client
│ │ └── memory.py # Conversation memory
│ │
│ └── tools/
│ ├── symptom_checker.py
│ ├── emergency_detector.py
│ ├── lab_report.py
│ ├── health_advisor.py
│ ├── medicine_info.py
│ ├── mental_health.py
│ ├── diet_nutrition.py
│ ├── first_aid.py
│ ├── pregnancy.py
│ ├── child_health.py
│ ├── chronic_disease.py
│ └── hospital_finder.py
│
├── requirements.txt
├── mcp_config.json
├── .env.example
└── README.mdThe system automatically detects critical symptoms like:
When detected: AI reasoning stops immediately, emergency instructions are provided.
Every response includes:
# Run tests
pytest tests/ -v
# Run with coverage
pytest tests/ --cov=src --cov-report=html| Country | Service | Number |
|---|---|---|
| 🇮🇳 India | National Emergency | 112 |
| 🇮🇳 India | Ambulance | 108 |
| 🇺🇸 USA | Emergency | 911 |
| 🇬🇧 UK | Emergency | 999 |
| 🇪🇺 EU | Emergency | 112 |
| 🌍 International | Varies | IASP Directory |
Contributions are welcome! Please:
This project is licensed under the MIT License - see the LICENSE file for details.
This AI assistant provides INFORMATION, not MEDICAL ADVICE.
>
For any health concerns: 1. 🏥 Consult a qualified healthcare provider 2. 📞 Call emergency services for urgent situations 3. 🚑 Visit the nearest hospital for serious symptoms
>
Your health matters. Trust professionals, not AI.
Made with ❤️ for better health awareness
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.