Student Study Planner MCP
README.md
# Student Study Planner MCP
An AI-powered academic management system built with **Python 3.11+**, **MCP (`MCPServer`)**, **SQLite**, **Pydantic**, **ReportLab**, and **Pytest**.
It allows an AI assistant (such as Claude Desktop) to manage your subjects, chapters/topics, assignments, exams, daily/weekly study schedules, progress tracking, smart reminders, and PDF reports through natural-language instructions—stored locally in SQLite with no paid external APIs required.
---
## Features
- **Dynamic Subject Management**: Add as many subjects as you want (no fixed/hardcoded subjects), update details, or archive/delete safely.
- **Topic & Chapter Tracking**: Organize chapters per subject, estimate study time, and track status (`Not Started`, `In Progress`, `Completed`).
- **Assignment Management**: Track deadlines, priorities (`Low`, `Medium`, `High`, `Urgent`), and automatically detect overdue work.
- **Examination Management**: Track upcoming and past exams with automatic `days_remaining` calculation.
- **Daily & Weekly Study Schedule**: Schedule study sessions with automatic **conflict/overlap prevention**.
- **Study Progress Tracking**: Calculates subject-wise and overall completion percentages and planned vs. actual study minutes from real database records.
- **Deterministic Study Plan Generator**: Generates realistic, conflict-free study plans before exams/deadlines and only saves after you confirm.
- **Smart Reminders**: Surfaces overdue/upcoming assignments, approaching exams, and scheduled sessions.
- **PDF Report Generation**: Exports weekly study reports to PDF using ReportLab.
---
## Architecture
```text
AI Assistant (Claude Desktop)
│ STDIO (JSON-RPC)
▼
MCP Server (server.py)
├── Tools (25 tools across 7 modules)
├── Resources (planner://overview, subjects, today, upcoming-exams, pending-assignments)
└── Prompts (weekly plan, progress review, exam prep, assignments)
│
▼
Services (study_planner.py, scheduling.py, report_generator.py)
│
▼
SQLite Database (database/study_planner.db)
```
---
## Setup & Installation
### macOS / Linux
```bash
cd student-study-planner-mcp
python3.11 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
```
### Windows (PowerShell)
```powershell
cd student-study-planner-mcp
py -3.11 -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
copy .env.example .env
```
---
## Running Tests
**macOS / Linux:**
```bash
.venv/bin/python -m pytest -v
```
**Windows (PowerShell):**
```powershell
.venv\Scripts\python.exe -m pytest -v
```
---
## Connecting to Claude Desktop (Local STDIO)
This MCP server runs locally on **macOS**, **Windows**, and **Linux**.
1. Open your Claude Desktop config file (create it if it doesn't exist):
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
- **Linux**: `~/.config/Claude/claude_desktop_config.json`
2. Add the configuration for your OS (using absolute paths):
**macOS / Linux:**
```json
{
"mcpServers": {
"student-study-planner": {
"command": "/absolute/path/to/student-study-planner-mcp/.venv/bin/python",
"args": [
"/absolute/path/to/student-study-planner-mcp/server.py"
]
}
}
}
```
**Windows:**
```json
{
"mcpServers": {
"student-study-planner": {
"command": "C:\\absolute\\path\\to\\student-study-planner-mcp\\.venv\\Scripts\\python.exe",
"args": [
"C:\\absolute\\path\\to\\student-study-planner-mcp\\server.py"
]
}
}
}
```
3. Completely quit and restart Claude Desktop (`Cmd + Q`).
4. Test by asking Claude: *"Run health_check on my Student Study Planner."*
### Note on ChatGPT Integration
Local STDIO servers cannot connect directly to web/cloud ChatGPT clients. To connect to ChatGPT, the MCP server must be deployed over **remote HTTPS** using Streamable HTTP / SSE transport.
---
## Example Conversations
- *"Add a new subject: Financial Accounting (ACC101)."*
- *"Add 3 chapters to ACC101: Balance Sheet (60 min), Ledger (90 min), Cash Flow (60 min)."*
- *"I have an ACC101 exam on 2026-12-15 and can study 2 hours a day. Generate a study plan."*
- *"Save the proposed study plan."*
- *"What is on my schedule today? Also check my smart reminders and generate a weekly PDF report."*
---
## Troubleshooting
- **Server not showing up in Claude Desktop**: Verify both the `.venv/bin/python` path and `server.py` path are absolute paths, and restart Claude Desktop completely (`Cmd + Q`).
- **JSON-RPC / stdout errors**: Never add `print()` statements to `server.py` or tool files; use `logging` (which writes to `stderr`).
- **`ModuleNotFoundError` when running pytest**: Run `.venv/bin/python -m pytest -v` from inside `student-study-planner-mcp/`.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues