moodle-mcp

v0.3.0
moodle-mcp Checked 3 days ago Published 27 days ago

A Model Context Protocol (MCP) server implementation that provides capabilities to interact with Moodle LMS.

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

list_course_files

List downloadable course files with module IDs, names, paths and sizes, without tokens.

ParameterTypeDescription
courseid *integer

download_course_files

Download all course files exposed by Moodle's course contents API in one call. Use an absolute output_dir; default is ~/Downloads/moodle-mcp/<courseid>/course (or $MOODLE_MCP_DOWNLOAD_DIR/<courseid>/course when that is set). Files are grouped by module ID and file identity to avoid duplicate names. Repeat with the same directory to skip unchanged files verified by SHA-256. New versions are saved separately; existing/local files are preserved. A local manifest tracks progress for resuming after failures. Each file's status is returned; one failed download does not s…

ParameterTypeDescription
courseid *integer
output_dir

download_course_file

Download a Moodle course file to the local machine using token authentication. Use list_course_files to find moduleid and filename. Specify filepath when duplicate names exist in a folder resource. output_dir should be an absolute local directory; default is ~/Downloads/moodle-mcp/<courseid> (or $MOODLE_MCP_DOWNLOAD_DIR/<courseid> when that is set). Returns the local path, size and SHA-256. Existing files are never overwritten. Maximum download size is 250 MiB. External links are not downloaded.

ParameterTypeDescription
courseid *integer
moduleid *integer
filename
filepath
output_dir

search_courses

Search the visible Moodle course catalogue, including courses not enrolled in. Page is zero-based; perpage is 1-100. Returns total matches and enrolment types.

ParameterTypeDescription
query *string
pageinteger
perpageinteger

get_course_enrolment_methods

List enrolment methods and instance IDs. Status is true if available, otherwise a reason.

ParameterTypeDescription
courseid *integer

get_self_enrolment_info

Check a self-enrolment instance's availability and whether an enrolment key is required.

ParameterTypeDescription
instanceid *integer

self_enrol_course

Enrol the authenticated user in a course using Moodle self enrolment. Use when the user requests joining that course. Check enrolment methods first; specify instanceid if multiple self-enrolment options exist. Password is the optional enrolment key. Only status=true means success; inspect warnings on failure. Moodle restrictions still apply. After a network error, check get_my_courses before retrying because enrolment may already have succeeded.

ParameterTypeDescription
courseid *integer
instanceid
passwordstring

get_upcoming_events

Get upcoming events from moodle

get_my_courses

Get all courses the current user is enrolled in

get_course_content

Get sections and modules for a specific course by its ID

ParameterTypeDescription
courseid *integer

get_assignments

Get assignments for courses. Optionally filter by course IDs. Returns all enrolled courses' assignments if no course IDs are provided.

ParameterTypeDescription
courseids

get_assignment_status

Get submission and grading status for a specific assignment by its ID

ParameterTypeDescription
assignid *integer

get_upcoming_deadlines

Get upcoming assignment deadlines across all courses, sorted by due date

get_grades

Get grade overview for all courses, or detailed grades for a specific course if courseid is provided

ParameterTypeDescription
courseid

search_course_materials

Search across all course materials by query string

ParameterTypeDescription
query *string

semester_dashboard

Get an aggregated overview combining courses, upcoming deadlines, and grades

get_actionable_tasks

Returns prioritized list of tasks needing action, sorted by urgency (overdue first)

get_overdue_assignments

Returns assignments past due date that are unsubmitted, sorted by most overdue first

get_recent_activity

Returns recent activity/updates across courses. Optionally specify 'since' as Unix timestamp (defaults to 7 days ago)

ParameterTypeDescription
since

get_course_announcements

Gets announcements from course news forums. Optionally filter by course ID

ParameterTypeDescription
courseid

get_course_health

Overall health check for a course: progress, grades, unsubmitted/overdue counts

ParameterTypeDescription
courseid *integer

get_course_progress

Progress/completion for courses. Optionally specify a course ID, or get all courses

ParameterTypeDescription
courseid

get_study_load

Study load analysis showing assignment distribution by week, identifying heavy weeks

daily_briefing

Aggregated daily summary: overdue count, today's deadlines, recent grades, upcoming events, actionable tasks

weekly_review

Aggregated weekly summary: submitted/graded counts, upcoming deadlines, overdue count, progress

ask_moodle

Ask a natural language question about your Moodle data. Routes to the right data sources based on your question

ParameterTypeDescription
question *string

analyze_assignment

Comprehensive analysis of an assignment: status, requirements, materials count, course progress, and deadline info

ParameterTypeDescription
assignid *integer

extract_assignment_requirements

Extract and structure requirements, deliverables, constraints, and evaluation criteria from an assignment description

ParameterTypeDescription
assignid *integer

find_relevant_materials

Find course content and search results relevant to a specific assignment, ranked by relevance

ParameterTypeDescription
assignid *integer

decompose_task

Break down an assignment into subtasks with estimated effort, dependencies, and critical path

ParameterTypeDescription
assignid *integer

create_implementation_plan

Create a step-by-step implementation plan for completing an assignment, with timeline, resources, milestones, and risk factors

ParameterTypeDescription
assignid *integer