moodle-study-mcp

v1.0.1
moodle-study-mcp Checked 3 days ago Published 3 days ago

Local, read-only MCP server for the Moodle™ LMS — courses, deadlines, assignments, grades and course files for students.

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

list_sites List Moodle sites

Configured sites, the default one, and whether each is signed in. Only needed to switch site.

list_courses List my courses

The student's courses. status: current (default), past, future or all; query filters by name. For browsing only: tools that take course accept its name.

ParameterTypeDescription
querystringPart of the course name.
refreshbooleanSkip the cache.
sitestringSite alias; omit for the default.
statusstring

get_course_contents Course contents

One course. Without section: an outline of every section and its activities (cmid, type, name, dates, done or not). With section: that section in full, with descriptions. include_files adds the files of resources and folders.

ParameterTypeDescription
course *Course id, or part of its name (2+ characters). A name of digits only is read as an id.
include_filesboolean
refreshbooleanSkip the cache.
sectionintegerSection number from the outline (0 = general).
sitestringSite alias; omit for the default.

get_course_item One course activity

One activity in full by cmid: description, dates, completion, files, a page's text, a link's URL, quiz or assignment settings.

ParameterTypeDescription
cmid *integerActivity id (cmid).
refreshbooleanSkip the cache.
sitestringSite alias; omit for the default.

get_upcoming_deadlines Upcoming deadlines

Work still to do, soonest first (assignments due, quizzes closing, other deadlines): the next `days` days plus overdue items from the last 30 days. Submitted or completed items drop off.

ParameterTypeDescription
courseOnly this course: id or part of its name. A name of digits only is read as an id.
daysinteger
include_overdueboolean
refreshbooleanSkip the cache.
sitestringSite alias; omit for the default.

list_assignments List assignments

Assignments by due date (id, cmid, dates, max grade, start of the instructions) in the student's current courses, or in one course (also one hidden on the Dashboard).

ParameterTypeDescription
courseOnly this course: id or part of its name. A name of digits only is read as an id.
refreshbooleanSkip the cache.
sitestringSite alias; omit for the default.

get_submission_status Submission status

The student's own submission for one assignment (assignment_id or cmid): status, files and text handed in, grade and feedback once released.

ParameterTypeDescription
assignment_idintegerFrom list_assignments.
cmidintegerThe assignment's cmid.
refreshbooleanSkip the cache.
sitestringSite alias; omit for the default.

get_grades Grades

The student's own grades. Without course: every course's total in one call, enough for how the student is doing overall. With course: that course's grade items with range, weight and feedback; only when the student asks about one course or its items.

ParameterTypeDescription
courseCourse id or part of its name; omit for all courses. A name of digits only is read as an id.
refreshbooleanSkip the cache.
sitestringSite alias; omit for the default.

read_file Read a course file

Text of one course file a window at a time: PDF pages, slides with notes, Excel sheets as tables, Word/text/code sections; a ZIP lists its files. The first line names the units returned and the exact calls for the rest, to make in one turn. Pages or slides that are only pictures come back as images. Files are listed (with cmid and area) by get_course_item, get_course_contents with include_files, and get_submission_status. Old Office formats and images: download_file.

ParameterTypeDescription
cmid *integercmid of the activity that lists the file.
file *stringFile name exactly as listed, folder path included.
areastringWhere it is listed: content (resource/folder), intro (attached to the description), submission, feedback.
max_charsinteger
offsetintegerOnly as a previous call gave it.
pagesstringLike "5" or "5-12" (pages, slides, parts or sections); default from the start.
sitestringSite alias; omit for the default.

download_file Download course files

Saves 1-10 course files to the student's computer (Downloads/Moodle Study/<course>/ or the configured folder) and says where; one result line per file. Never overwrites; a repeat reports the existing copy.

ParameterTypeDescription
files *array
sitestringSite alias; omit for the default.

add_site Add a Moodle site

Adds a Moodle site by the address the student opens it at, or by a preset (e.g. "uab", with year like "2026-27", default the current one). Stores no secret.

ParameterTypeDescription
aliasstring
make_defaultboolean
presetstring
urlstringe.g. https://moodle.example.edu
yearstring

remove_site Remove a Moodle site

Removes a site and its stored token from this computer.

ParameterTypeDescription
site *string

login Sign in to Moodle

Opens a browser at the Moodle sign-in page and waits up to 5 minutes while the student signs in (MFA included). The token goes to the OS keychain, never to the chat.

ParameterTypeDescription
sitestringSite alias; omit for the default.

auth_status Check sign-in

Checks whether a site's stored sign-in still works.

ParameterTypeDescription
sitestringSite alias; omit for the default.

logout Sign out

Deletes a site's stored token from this computer (it stays valid on Moodle until it expires).

ParameterTypeDescription
sitestringSite alias; omit for the default.