MCP server for Moodle LMS

MCP server for Moodle LMS

moodle-mcp•byloyaniu

A Model Context Protocol server that lets an AI client interact with Moodle, covering courses, course files, self-enrolment, assignments, grades, progress and aggregated dashboards.

License: Not specified•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Retrieves enrolled courses, course content, course materials, announcements and recent activity.
  • •Lists and downloads course files, with resumable batch downloads that skip verified unchanged files.
  • •Searches the course catalogue and supports self-enrolment with optional enrolment keys.
  • •Provides assignment, deadline, grade, progress and study-load analysis, plus aggregated dashboards and natural language questions.

BEST FOR

  • •Students who want an AI assistant to review upcoming deadlines, overdue assignments and grades across their Moodle courses.
  • •Learners who need to find relevant course materials or break an assignment into subtasks and a plan.
  • •Users who want to search the Moodle catalogue and self-enrol in courses from their AI client.

ABOUT MOODLE-MCP

MCP server for Moodle LMS is cataloged as an MCP server attributed to loyaniu. A Model Context Protocol server that lets an AI client interact with Moodle, covering courses, course files, self-enrolment, assignments, grades, progress and aggregated dashboards. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for Moodle LMS are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server authenticate with Moodle?

It uses a Moodle web service token, supplied along with the Moodle REST endpoint through configuration.

Are downloaded course files overwritten or can they be resumed?

Existing files are never overwritten, and repeating a batch download skips files whose source and local SHA-256 are unchanged while retrying failed ones.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 1b5c3b21becc · 采集于 2026-11-13 09:54:25 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MseeP.ai Security Assessment Badge

Moodle-MCP

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

Features

The server exposes the following tools.

Courses & content

ToolDescription
get_my_coursesGet all courses the current user is enrolled in
get_course_contentGet sections and modules for a specific course by its ID
search_course_materialsSearch across all course materials by query string
get_course_announcementsGet announcements from course news forums, optionally filtered by course ID
get_recent_activityGet recent activity and updates across courses since a given time

Course files

ToolDescription
list_course_filesList downloadable files with module IDs, filenames, paths and sizes
download_course_fileDownload one course file to a local directory; returns path, size and SHA-256
download_course_filesDownload all files of a course in one call; resumable, skips verified unchanged files

Course catalogue & enrolment

ToolDescription
search_coursesSearch the visible course catalogue, including courses you are not enrolled in
get_course_enrolment_methodsList a course's enrolment methods, availability and instance IDs
get_self_enrolment_infoCheck a self-enrolment instance and whether it requires a key
self_enrol_courseEnrol the current user in a course, with an optional enrolment key

Assignments & deadlines

ToolDescription
get_assignmentsGet assignments for courses, optionally filtered by course IDs
get_assignment_statusGet submission and grading status for a specific assignment
get_upcoming_deadlinesGet upcoming assignment deadlines across all courses, sorted by due date
get_overdue_assignmentsGet unsubmitted assignments past their due date, most overdue first
get_actionable_tasksGet a prioritized list of tasks needing action, sorted by urgency
analyze_assignmentAnalyze an assignment: status, requirements, materials, progress, deadline
extract_assignment_requirementsExtract requirements, deliverables, constraints, and evaluation criteria from an assignment
find_relevant_materialsFind course content relevant to an assignment, ranked by relevance
decompose_taskBreak an assignment into subtasks with effort, dependencies, and critical path
create_implementation_planBuild a step-by-step plan with timeline, resources, milestones, and risks

Grades & progress

ToolDescription
get_gradesGet a grade overview for all courses, or detailed grades for one course
get_course_progressGet progress and completion for one course or all courses
get_course_healthHealth check for a course: progress, grades, unsubmitted and overdue counts
get_study_loadAnalyze assignment distribution by week to identify heavy weeks

Aggregated overviews

ToolDescription
get_upcoming_eventsGet upcoming events from Moodle
semester_dashboardCombined overview of courses, upcoming deadlines, and grades
daily_briefingDaily summary of overdue count, today's deadlines, recent grades, events, and tasks
weekly_reviewWeekly summary of submitted/graded counts, deadlines, overdue count, and progress
ask_moodleAsk a natural language question and have it routed to the right data sources

Setup Instructions

Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following

{
  "mcpServers": {
    "moodle-mcp": {
      "command": "uvx",
      "args": ["moodle-mcp"],
      "env": {
        "MOODLE_URL": "https://{your-moodle-url}/webservice/rest/server.php",
        "MOODLE_TOKEN": "{your-moodle-token}"
      }
    }
  }
}

Restart Claude after changing the config or updating the server, so it picks up the new tools.

Method 2: From a local clone, using the mcp CLI

  1. Clone this repository and create your own .env file from .env.example
  2. Run uv sync to install the dependencies, including the MCP CLI tools
  3. Run uv run mcp install main.py -f .env to add the moodle-mcp server to the Claude app

Authentication

Getting your Moodle token

  1. Navigate to your Moodle token management page https://{your-moodle-url}/user/managetoken.php
  2. Use the token with Moodle mobile web service in the Service column
  3. Add this token to your .env file, or to the env block of your Claude config

Configuration

VariableRequiredDescription
MOODLE_URLyesYour Moodle REST endpoint, https://{your-moodle-url}/webservice/rest/server.php
MOODLE_TOKENyesYour Moodle web service token
MOODLE_MCP_DOWNLOAD_DIRnoDefault folder for course file downloads (default: ~/Downloads/moodle-mcp)
MOODLE_MCP_DEBUG_DIRnoSave the raw Moodle API responses there as JSON files, for debugging. Unset by default, so nothing is written to disk

Course file downloads

Downloads use Moodle's /webservice/pluginfile.php endpoint with token authentication, so the token's service must permit file downloads (the Moodle mobile web service does).

  • Call list_course_files(courseid), then download_course_file(courseid, moduleid, filename, output_dir). For duplicate filenames in folder resources, also pass filepath from the listing.
  • download_course_files(courseid, output_dir) downloads every file of a course in one call. A moodle-downloads.json manifest in the output folder records what was downloaded (without tokens), so repeating the call skips files whose source and local SHA-256 are unchanged and retries the ones that failed. Updated or locally edited files are kept, and the new version is saved next to them.
  • Without output_dir, files go to MOODLE_MCP_DOWNLOAD_DIR/<courseid> (default ~/Downloads/moodle-mcp/<courseid>).
  • Existing files are never overwritten. Downloads are streamed, limited to 250 MiB per file and checked against Moodle's file size. Redirects and external file hosts are rejected. Tokens are never returned by these tools.
  • Only files exposed by the course contents API are downloaded: not external links, embedded page/forum attachments or video streams. Files deleted on Moodle are not deleted locally.

Course catalogue & self enrolment

These tools need the token's service to allow core_course_search_courses, core_enrol_get_course_enrolment_methods, enrol_self_get_instance_info and enrol_self_enrol_user (all part of the Moodle mobile web service).

self_enrol_course changes your enrolments, so check get_course_enrolment_methods first and pass an instanceid when a course has several self-enrolment options. Moodle's course visibility, enrolment periods, capacity and key requirements still apply. Enrolment requests use POST, and keys are never logged or saved. If a request times out, check get_my_courses before retrying, because the enrolment may already have succeeded.

Development

Run the offline test suite (Moodle API calls and file transfers are mocked; no account is needed):

uv run pytest

For available Moodle API functions, please refer to the official documentation.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for Moodle LMS from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/moodle-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops