Schoolware MCP Server
by OLIDEPOLLI
README.md
# Schoolware MCP Server
Let Claude Desktop read your Schoolware agenda (tests, tasks, cancelled lessons), grades and open tasks.
Optional: a tracker that logs your grades and shows a Windows notification when a new grade appears.
*Nederlandse handleiding: [README.nl.md](README.nl.md)*
## Tools exposed to Claude
`get_agenda_today`, `get_agenda_week`, `get_agenda_date`, `get_agenda_range`, `get_punten` (grades), `get_todo`.
## Requirements
- Windows and Claude Desktop
- Node.js and Python 3 (tick **Add python.exe to PATH** during install)
## Install
```
npm install
copy config.example.json config.json
notepad config.json
```
Put your school domain and session cookie in `config.json`:
```json
{ "domain": "yourschool.schoolware.be", "cookie": "paste-the-value-here" }
```
**Getting the cookie:** log in to Schoolware, press F12, open *Application* > *Cookies* > your Schoolware domain >
`FPWebSession`, and copy the **Value**. Quotes, spaces or a leading `FPWebSession=` are stripped automatically.
**Test it:**
```
python src\schoolware_bridge.py agenda
```
You should see JSON with your lessons. If you get `{"error": ...}`, the message says what is wrong.
## Connect to Claude Desktop
1. Fully quit Claude Desktop (also from the system tray).
2. `python src\installeer_claude.py`
3. Start Claude Desktop again.
The script finds the right config (Microsoft Store or regular install), makes a backup and keeps your other settings.
If the config is broken, it changes nothing.
## Grade tracker (optional)
```
pip install matplotlib
python src\punten_tracker.py # first run: stores current grades, no notifications
python src\installeer_claude.py --taak # runs the tracker hourly via Task Scheduler
python src\punten_tracker.py --grafiek # chart + average per subject
```
You get a notification for a new grade, a late-filled grade or a changed score.
Errors (e.g. expired cookie) go to `tracker.log`, with at most one notification per day.
## Troubleshooting
| Message | Fix |
|---|---|
| Cookie invalid or expired | Get a fresh `FPWebSession` cookie. It can also expire server-side. |
| Python not found | Install Python with "Add to PATH", or set `SCHOOLWARE_PYTHON` to the path of python.exe. |
| Schoolware timed out | Retry, or raise `SCHOOLWARE_TIMEOUT_MS`. |
| Server shows "failed" in Claude | Run `npm install`, then run `installeer_claude.py` again. |
## Security
Your cookie gives access to your Schoolware account. Never share or commit `config.json`, `punten_log.json`
or `tracker.log` (they are in `.gitignore`). Treat the cookie like a password and log out to invalidate it.
## Tests
`npm test` runs the Python tests (bridge, tracker, installer) against mocked Schoolware data.
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues