Meducate MCP
by JoshNuku
README.md
# π₯ Meducate MCP - Africa's AI Medical Education Assistant
> **"Your AI-powered Jarvis(let's call him Ananse) for medical education in Africa"**
**Empowering African medical students and young doctors with intelligent, context-aware assistance through natural language AI and Model Context Protocol.**
## Link to [Video Demo](https://drive.google.com/file/d/1YebO82slnzAH009dngcboatyMPnqMsd9/view?usp=sharing)
## Link to [Presentation Slides](https://docs.google.com/presentation/d/1vP2X1cLW-f1cqzeK7IMJs11FMKfN0qgmc-WkOLknOy4/edit?usp=sharing)
---
## π The African Medical Education Challenge
**Meet Serwaa**, a second-year medical student in Accra, Ghana:
- π Overwhelmed with lectures, labs, and clinical rotations
- πΈ Limited budget for textbooks and study resources
- π± Struggles to afford consistent internet for research
- β° Needs constant reminders but finds rigid apps frustrating
- π Often searches for medical information in broken English or local languages
**Serwaa's reality mirrors millions of medical students across Africa** - brilliant minds facing systemic barriers that technology should solve, not complicate.
---
## β¨ Enter Meducate MCP
**Meducate is a self-aware, AI-powered Model Context Protocol (MCP) server** that acts like a personal medical education assistant - understanding natural language, working autonomously in the background, and bridging critical gaps in African healthcare education.
### π― What Makes Meducate Revolutionary
1. **π§ Self-Aware & Autonomous**
- Constantly monitors your schedule and study needs
- Understands natural language: "remind me every 5 minutes" or "quiz me tomorrow morning"
- Works in the background - no constant manual input needed
2. **π African-First Design**
- **First MCP integration with African telecoms** (MTN, Airteltigo)
- Buy data bundles at cheap prices directly through AI in natural language.
- Track balances, send usage stats to guardians
- **First Hubnets MCP** for SMS/OTP in Africa
3. **π Medical Knowledge at Your Fingertips**
- Scrapes trusted sources: WHO Africa, CDC, PubMed, BMJ
- Focuses on diseases relevant to African contexts (Malaria, TB, etc.)
- Generates quizzes tailored to your curriculum
- Finds cheapest textbook prices across platforms
4. **π£οΈ Natural Language Understanding**
- Write in English, Twi, Pidgin, or local languages
- AI interprets context, not just keywords
- Accessible to non-native speakers
---
## π Key Features
### π€ AI-Powered Intelligence
- **Natural Language Processing** via Groq AI (Llama 3.3 70B)
- **Dynamic tool selection** - AI decides which action to take
- **Context-aware suggestions** based on your study patterns
- **Tools are automatically discovered and integrated into the AI's capabilities** - no hardcoding required!
### π
Smart Scheduling System
```
"Quiz me about pharmacology tomorrow morning"
"Remind me every hour to drink water"
"Send my study stats to mom every Sunday"
"buy 5gb for my data bundle when my balance is low"
"send 1gb to my sister tomorrow afternoon to thank her for helping me study`"
```
**The AI understands and executes - no rigid formats!**
### π Medical Knowledge Base
- Disease information scraping (WHO, CDC, PubMed)
### π Medical Knowledge Base
- Disease information scraping (WHO, CDC, PubMed)
- Quiz generation for active recall
- Study resource aggregation (videos, articles)
- Textbook price comparison
### π± Africa-Specific Integrations
- **Data bundle purchases** (Airteltigo, MTN)
- **SMS notifications** via Hubnets
- **Gmail notifications for reminders and updates**
### π Productivity Tools
- Google Sheets integration for timetables
- Gmail notifications
- Autonomous/self-conscious reminder system
---
## π Why Meducate Wins
### β
Technical Excellence
- JSON-based MCP protocol implementation
- Multi-service architecture (Python + Node.js Puppeteer)
- AI-powered natural language parsing
- Dynamic tool execution system
- Robust error handling
### β
Innovation
- **First African telcom MCP integration**
- **First Hubnets SMS MCP**
- Natural language scheduler (vs rigid cron jobs)
- Self-aware autonomous operation
- Multi-domain integration (healthcare + telecom + education)
### β
African Relevance
- Solves real problems facing African medical students
- Focus on African disease contexts
- Affordable data management built-in
- Accessible natural language interface
---
## π¬ Quick Start
### Prerequisites
- Python 3.10+
- Node.js 18+
- Google Cloud account (for Sheets/Gmail)
- Groq API key(This is free, you can get it via https://console.groq.com/keys)
### Installation
1. **Clone the repository**
```bash
git clone https://github.com/JoshNuku/meducate-mcp.git
cd meducate-mcp
```
2. **Set up Python environment**
```bash
# Install UV package manager
pip install uv
# Install dependencies
uv sync
```
3. **Set up Puppeteer server**
```bash
cd puppeteer-server
npm install
```
4. **Configure environment**
```bash
# Copy example environment file
cp .env.example .env
# Edit .env with your credentials
# Add GROQ_API_KEY, Gmail credentials, etc.
```
5. **Set up Google Sheets API**
- Create a project in [Google Cloud Console](https://console.cloud.google.com/)
- Enable Google Sheets API
- Create service account and download `credentials.json`
- Place `credentials.json` in the root directory
6. **Run the servers**
```bash
# Terminal 1: Start Puppeteer server
cd puppeteer-server
npm start
# Terminal 2: Start MCP server
cd ..
python main.py
```
---
## π Usage Examples
### Natural Language Reminders
```
"Remind me to review anatomy every morning at 8am"
"Quiz me about cardiology tomorrow afternoon"
"Send my study hours to dad every Sunday"
"Drink water every 30 minutes"
```
### Medical Information
```
"Get latest WHO guidelines on malaria treatment"
"Find recent research on tuberculosis in Africa"
"What are common symptoms of typhoid fever?"
```
### Data Management
```
"Buy 5GB data bundle for my MTN number"
"Check my data balance"
```
### Study Resources
```
"Find YouTube videos about pharmacology"
"Compare prices for Gray's Anatomy textbook"
"Generate 10 quiz questions on neurology"
```
---
## π African Language Support
Meducate understands context in multiple languages:
**English (Standard)**
```
"Remind me to study at 6pm everyday"
```
**Pidgin (Nigeria)**
```
"Make you remind me say make I read book for evening time"
```
**Twi (Ghana)**
```
"kai me s3 mefa "(Remind)
```
**Swahili (East Africa)**
```
"Nikumbushe kusoma saa kumi na mbili usiku"
```
The AI interprets intent, not just exact phrasing!
---
## ποΈ Architecture
```
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β User (AI Assistant/LLM) β
ββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ
β MCP Protocol (JSON-RPC)
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Meducate MCP Server (Python) β
β ββββββββββββββββββββββββββββββββββββββββββββ β
β β AI Decision Engine (Groq/Llama 3.3) β β
β β - Natural language parsing β β
β β - Dynamic tool selection β β
β β - Context-aware reasoning β β
β ββββββββββββββββββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββββββββββββββββββ β
β β Tools Layer β β
β β β’ Medical scraping β’ Reminders β β
β β β’ Telecom APIs β’ Payments β β
β β β’ Notifications β’ Scheduling β β
β ββββββββββββββββββββββββββββββββββββββββββββ β
ββββ¬βββββββββββββββ¬βββββββββββββββ¬ββββββββββββββββ
β β β
βΌ βΌ βΌ
ββββββββββββ ββββββββββββ ββββββββββββββββ
βPuppeteer β β Google β β African β
β Server β β Services β β Telecom β
β(Node.js) β β(Sheets, β β APIs β
β β β Gmail) β β (MTN, etc.) β
ββββββββββββ ββββββββββββ ββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β Medical Websites β
β β’ WHO Africa β’ CDC β’ PubMed β
β β’ BMJ β’ UpToDate β’ Book Stores β
βββββββββββββββββββββββββββββββββββββββ
```
---
## π Project Structure
```
meducate_mcp/
βββ main.py # Entry point & MCP server
βββ .env.example # Environment template
βββ credentials.json # Google API credentials
βββ pyproject.toml # Python dependencies
β
βββ Tools/ # MCP tool implementations
β βββ disease_tools.py # Medical info scraping
β βββ quiz_tools.py # Quiz generation
β βββ study_tools.py # Study resources
β βββ notification_tools.py # Email/SMS alerts
β βββ reminder.py # Reminder system
β βββ buy_internet_bundle.py # Data bundle purchases
β
βββ utils/ # Core utilities
β βββ ai_decision_engine.py # Groq AI integration
β βββ scheduler.py # Background scheduler
β βββ tool_extractor.py # Dynamic tool discovery
β βββ message_formatter.py # AI message formatting
β
βββ Helpers/ # Business logic(functions for tools)
β βββ scheduler_helper.py # Scheduling functions
β βββ notification_helpers.py # Notification logic
β βββ reminder_helpers.py # Reminder helpers
β
βββ puppeteer-server/ # Web scraping service
β βββ src/
β β βββ controllers/ # Scraping controllers
β β βββ services/ # Browser service
β β βββ utils/ # Page utilities
β βββ package.json
β
βββ at root/ # Documentation
βββ NOTIFICATION_DOCS.md
βββ PUPPETEER_TOOLS_README.md
βββ REMINDER_DOCS.md
```
---
## π― MCP Hackathon Africa 2025
### Tracks Covered
- π₯ **Healthcare Systems** (Primary)
- π **Education & Learning** (Primary)
- π‘ **Telecommunications** (Secondary)
### Unique Value Propositions
1. **Only MCP with African telecom integration**
- Direct data bundle purchases- no stress of dialing ussd codes
- Balance tracking and alerts
- Guardian notifications
- email sending- the course rep who has to announce to the class about rescheduled lectures can do so via gmail notification tool integrated into the mcp
2. **First Unofficial MCP with Hubnets SMS**
- OTP verification
- SMS reminders for no-internet scenarios
- Wider accessibility
3. **Natural Language AI Scheduler**
- Not just keyword matching
- True context understanding
- Works in multiple languages
4. **Self-Aware Operation**
- Autonomous background monitoring
- Proactive suggestions
- Contextual awareness
5. **Medical Education Focus**
- African disease contexts
- Affordable resource discovery
- Quiz generation for active learning
---
## π Documentation
- [π§ Notification System](./NOTIFICATION_DOCS.md) - Email and SMS integration
- [π€ Puppeteer Scraping](./PUPPETEER_TOOLS_README.md) - Web scraping architecture
- [β° AI Reminder System](./REMINDER_DOCS.md) - Self-aware scheduling system
- [π¨βπ» Contributing Guide](./CONTRIBUTING.md) - Developer documentation
---
## π Impact & Vision
### Current Impact
β
**Reduces study costs** by aggregating free medical resources
β
**Saves data expenses** through affordable bundle integration
β
**Increases efficiency** with AI-powered autonomous reminders
β
**Improves accessibility** via natural language understanding
β
**Bridges telecom gap** with first-of-its-kind African MCP integrations
### Future Vision
π Expand to more African countries and telecom providers
ποΈ Add voice interface for hands-free, low-literacy operation
π₯ Integrate with hospital systems for clinical rotation management
π Build community knowledge base of African medical cases
π€ Partner with medical schools across Africa
π Support more local languages (Yoruba, Igbo, Amharic, etc.)
π‘ AI-powered study group matching and collaboration
---
## π€ Contributing
We welcome contributions! This is an open-source project for African impact.
**See [CONTRIBUTING.md](./CONTRIBUTING.md) for detailed developer guidelines.**
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues