Back to Home
maldalur icon

moodle-mcp-server

by maldalur

Overview

Automate grading of Moodle submissions using AI, track student progress, and generate reports.

Installation

Run Command
python src\main.py

Environment Variables

  • MOODLE_URL
  • TOKEN_MOODLE
  • COURSE_LIST
  • OLLAMA_HOST
  • OLLAMA_MODEL

Security Notes

The `moodle_client.py`'s `download_file` and `_process_vpl_file_entry` functions are vulnerable to path traversal. If a malicious filename containing '..' (e.g., `../../etc/passwd`) is received from the Moodle API, it could lead to arbitrary file writes outside the intended 'downloads' directory. Additionally, while environment variables are used for sensitive API tokens, the `MOODLE_SERVICE_SETUP.md` document explicitly shows a token value, which is a common security risk if copied directly into production code. AI model output is parsed from JSON, which is generally safe, but if displayed on an unsanitized web interface, could lead to XSS (not directly applicable to this project's current output methods to Markdown files).

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassMedium
Avg Tokens1250
Stars0
Forks0
Last Update2025-11-27

Tags

MoodleAI gradingsubmission trackerstudent analyticsPython