moodle-study-mcp
v1.0.1Local, 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.
| Parameter | Type | Description |
|---|---|---|
query | string | Part of the course name. |
refresh | boolean | Skip the cache. |
site | string | Site alias; omit for the default. |
status | string |
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.
| Parameter | Type | Description |
|---|---|---|
course * | Course id, or part of its name (2+ characters). A name of digits only is read as an id. | |
include_files | boolean | |
refresh | boolean | Skip the cache. |
section | integer | Section number from the outline (0 = general). |
site | string | Site 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.
| Parameter | Type | Description |
|---|---|---|
cmid * | integer | Activity id (cmid). |
refresh | boolean | Skip the cache. |
site | string | Site 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.
| Parameter | Type | Description |
|---|---|---|
course | Only this course: id or part of its name. A name of digits only is read as an id. | |
days | integer | |
include_overdue | boolean | |
refresh | boolean | Skip the cache. |
site | string | Site 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).
| Parameter | Type | Description |
|---|---|---|
course | Only this course: id or part of its name. A name of digits only is read as an id. | |
refresh | boolean | Skip the cache. |
site | string | Site 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.
| Parameter | Type | Description |
|---|---|---|
assignment_id | integer | From list_assignments. |
cmid | integer | The assignment's cmid. |
refresh | boolean | Skip the cache. |
site | string | Site 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.
| Parameter | Type | Description |
|---|---|---|
course | Course id or part of its name; omit for all courses. A name of digits only is read as an id. | |
refresh | boolean | Skip the cache. |
site | string | Site 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.
| Parameter | Type | Description |
|---|---|---|
cmid * | integer | cmid of the activity that lists the file. |
file * | string | File name exactly as listed, folder path included. |
area | string | Where it is listed: content (resource/folder), intro (attached to the description), submission, feedback. |
max_chars | integer | |
offset | integer | Only as a previous call gave it. |
pages | string | Like "5" or "5-12" (pages, slides, parts or sections); default from the start. |
site | string | Site 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.
| Parameter | Type | Description |
|---|---|---|
files * | array | |
site | string | Site 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.
| Parameter | Type | Description |
|---|---|---|
alias | string | |
make_default | boolean | |
preset | string | |
url | string | e.g. https://moodle.example.edu |
year | string |
remove_site Remove a Moodle site
Removes a site and its stored token from this computer.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
site | string | Site alias; omit for the default. |
auth_status Check sign-in
Checks whether a site's stored sign-in still works.
| Parameter | Type | Description |
|---|---|---|
site | string | Site 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).
| Parameter | Type | Description |
|---|---|---|
site | string | Site alias; omit for the default. |