swiss-moodle-mcp

v0.5.0
swiss-moodle-mcp Checked 2 days ago Published 2 months ago

MCP server for the Moodle of Swiss universities (ZHAW, FHNW, ETH, EPFL, ...): courses, learning materials, downloads and sync via browser login (SWITCH edu-ID)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

moodle_set_university

Choose which university's Moodle to use, or switch to another one. Call it only when the user names their university or asks to switch; the choice is saved for later sessions. Afterwards the next Moodle request opens the login for that university. Args: university: short name (zhaw, fhnw, bfh, ost, ethz, epfl, unil, unige, usi, ...) or the web address of the user's Moodle

ParameterTypeDescription
university *string

moodle_auth_status

Check whether a valid Moodle session exists. Never returns credentials.

moodle_login

Log in to Moodle. Opens a browser window where the USER signs in with SWITCH edu-ID or their university login (incl. MFA) themselves; returns once login is detected. Never ask the user for their password. Other tools log in automatically when needed. Args: force: open the login browser even if the current session is still valid

ParameterTypeDescription
forceboolean

moodle_logout

Log out: end the Moodle session and delete the locally stored browser session and cookies. The next Moodle request will require a new login.

moodle_list_courses

List the user's Moodle courses. Args: status: "active" (current semester, default), "past", "future" or "all"

ParameterTypeDescription
statusstring

moodle_get_course

Get the structure of a course: sections, nested subsections and all activities/materials (files, folders, links, pages, quizzes, assignments, ...). Text blocks (labels) include their text. Args: course_id: course id from moodle_list_courses

ParameterTypeDescription
course_id *integer

moodle_get_content

Read the text of a Moodle page ("Textseite") or text block ("Textfeld"/label) as Markdown, with the links it contains. Such texts often hold instructions, rules for assignments and exams, or reading lists. Opening a page counts as a view in Moodle. Args: activity_id: id (cmid) of a page or label from moodle_get_course or moodle_search

ParameterTypeDescription
activity_id *integer

moodle_list_resources

List learning materials of a course: files (pdf, powerpoint, word, excel, zip, ...), folders, external links and Moodle pages, with their section. Args: course_id: course id from moodle_list_courses include_folder_contents: also list the individual files inside folders (one extra request per folder)

ParameterTypeDescription
course_id *integer
include_folder_contentsboolean

moodle_download_resource

Download a file, all files of a folder, or files linked in a page/text block, and return the local paths. By default files go to the managed directory <download_directory>/<course>/<section>/, which moodle_sync_course also uses. Args: resource_id: id from moodle_list_resources ("<cmid>" or "<folder cmid>/<path>"), or a file link's resource_id from moodle_get_content ("<page/label id>/<file>"); the id of a page or text block downloads all files linked in it destination: optional target directory; relative…

ParameterTypeDescription
resource_id *string
destination
overwriteboolean

moodle_read_file

Read the text of a course file (PDF, PowerPoint .pptx, Word .docx, HTML, text). Downloads the file first if needed. Use this to summarise or explain lecture slides, scripts and exercise sheets. Long files come in parts: continue with `next_pages`. Args: resource_id: id of a single file from moodle_list_resources, moodle_search or moodle_get_content (folder files: "<folder id>/<path>") pages: page/slide range for PDF and PowerPoint, e.g. "1-10", "5" or "11-" max_chars: maximum characters to return (1000-100000)…

ParameterTypeDescription
resource_id *string
max_charsinteger
pages

moodle_sync_course

Synchronise all files of a course into the local download directory. Downloads new files, re-downloads changed ones and reports what changed. Files removed from Moodle are reported but never deleted locally. Args: course_id: course id from moodle_list_courses dry_run: only report what would change, download nothing update_changed: re-download files that changed on Moodle

ParameterTypeDescription
course_id *integer
dry_runboolean
update_changedboolean

moodle_sync_all

Synchronise all active (current semester) courses into the local download directory and return a per-course summary. Same rules as moodle_sync_course. Args: dry_run: only report what would change, download nothing update_changed: re-download files that changed on Moodle

ParameterTypeDescription
dry_runboolean
update_changedboolean

moodle_get_deadlines

Open to-dos with deadlines across all courses (assignment due dates, quiz closing times, ...), sorted by date. Answers "What do I need to submit this week?". Activities already completed are not listed. Args: days_ahead: how far to look ahead (days) course_id: restrict to one course include_overdue: also list overdue to-dos from the last 30 days

ParameterTypeDescription
course_id
days_aheadinteger
include_overdueboolean

moodle_list_assignments

Assignments with opening date, deadline, submission and grading status and description. Without course_id all current courses are included (one request per assignment). Args: course_id: restrict to one course

ParameterTypeDescription
course_id

moodle_get_announcements

Recent announcements ("Ankündigungen") posted by lecturers, newest first, with the message text of the most recent ones. Args: course_id: restrict to one course (default: all current courses) since: only announcements newer than this: ISO date/datetime (2026-09-14) or relative (7d, 12h, 2w) limit: maximum number of announcements

ParameterTypeDescription
course_id
limitinteger
since

moodle_get_recent_changes

What changed in Moodle since a point in time: new or updated materials and activities, new announcements, and new or changed deadlines, grouped by course. Answers "What is new in Moodle since Monday?". Args: since: ISO date/datetime (2026-09-14, 2026-09-14T08:00) or relative (7d, 12h, 2w) course_id: restrict to one course (default: all current courses)

ParameterTypeDescription
course_id
sincestring