MoodleSAFE
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
An MCP (Model Context Protocol) server that enables LLMs to interact with the Moodle platform to manage courses, students, assignments, and quizzes.
Features
Course Management Tools
get_courses- Retrieves information about courses in Moodle- Supports pagination (
page,limit) to safely fetch all available courses. - Optionally allows fetching a specific course by providing a
courseId.
Student Management Tools
list_students- Retrieves the list of students enrolled in the course- Displays ID, name, email, and last access time for each student
Assignment Management Tools
get_assignments- Retrieves all available assignments in the course- Includes information such as ID, name, description, due date, and maximum grade
get_student_submissions- Examines a student's submissions for a specific assignment- Requires the assignment ID and optionally the student ID
provide_assignment_feedback- Provides grades and comments for a student's submission- Requires student ID, assignment ID, grade, and feedback comment
Quiz Management Tools
get_quizzes- Retrieves all available quizzes in the course- Includes information such as ID, name, description, opening/closing dates, and maximum grade
get_quiz_attempts- Examines a student's attempts on a specific quiz- Requires the quiz ID and optionally the student ID
provide_quiz_feedback- Provides comments for a quiz attempt- Requires the attempt ID and feedback comment
Requirements
- Node.js (v14 or higher)
- Moodle API token with appropriate permissions
- Moodle course ID
Installation
- Clone this repository:
git clone https://github.com/your-username/moodle-mcp-server.git cd moodle-mcp-server
- Install dependencies:
npm install
- Create a
.envfile with the following configuration:
MOODLE_API_URL=https://your-moodle.com/webservice/rest/server.php MOODLE_API_TOKEN=your_api_token MOOD
911782a2cb14OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add moodle-mcp-server --env MOODLE_API_TOKEN=${MOODLE_API_TOKEN} -- npx -y [email protected]{
"mcpServers": {
"moodle-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"MOODLE_API_TOKEN": "${MOODLE_API_TOKEN}"
}
}
}
}Exposed tools (8)
8 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_assignments | read | Obtiene la lista de tareas asignadas en el curso configurado |
get_courses | read | Obtiene información de cursos en Moodle. Soporta paginación o búsqueda por ID. |
get_quiz_grade | read | Obtiene la calificación de un estudiante en un quiz específico |
get_quizzes | read | Obtiene la lista de quizzes en el curso configurado |
get_students | read | Obtiene la lista de estudiantes inscritos en el curso configurado |
get_submission_content | read | Obtiene el contenido detallado de una entrega específica, incluyendo texto y archivos adjuntos |
get_submissions | read | Obtiene las entregas de tareas en el curso configurado |
provide_feedback | read | Proporciona feedback sobre una tarea entregada por un estudiante |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (4 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
axios, @types/node, typescript
Gates applied: no_behavioural_pass.
911782a2cb14full audit observations/trust-audit/mcp-server/peancor__moodle.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 911782a2cb14 | SAFE | B | 89 | first audit |
Questions
What tools does Moodle expose?
8 in total: 8 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Moodle safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Moodle need?
It reads MOODLE_API_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Moodle run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as moodle-mcp-server at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (911782a2cb14), read on 2026-10-08. The repository is watched and re-audited when it changes.