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.

moodle-study-mcp is a local MCP server for students who use the Moodle™ LMS. It lets an AI assistant, for example Claude, read your Moodle site. The assistant can read your courses, deadlines, assignments, submissions, and grades. It can also read course files and download them to your computer. The releases are on GitHub and on npm. CHANGELOG.md gives the changes in each version. You can use moodle-study-mcp on macOS and Windows. We tested it on a Windows 11 computer with Node.js 22, 24, and 26. You cannot use it on Linux at this time.

Summary extracted from the README.

moodle-study-mcp

npm ci License: MIT

moodle-study-mcp is a local MCP server for students who use the Moodle™ LMS. It lets an AI assistant, for example Claude, read your Moodle site. The assistant can read your courses, deadlines, assignments, submissions, and grades. It can also read course files and download them to your computer.

The releases are on GitHub and on npm. CHANGELOG.md gives the changes in each version.

You can use moodle-study-mcp on macOS and Windows. We tested it on a Windows 11 computer with Node.js 22, 24, and 26. You cannot use it on Linux at this time.

  • Read-only. The server has a specified list of Moodle functions that only read data (an allow-list). It does not use a function that is not on this list. Thus, it cannot send your assignments, write forum posts, or change or delete data in Moodle.
  • The server does not see your password. You sign in on the usual sign-in page of your university or school, in a browser window. The server keeps the token from Moodle in the credential store of your computer (macOS Keychain or Windows Credential Manager). The assistant does not see the token.
  • Local. The server operates on your computer. It sends data only to your Moodle site and to your assistant. It has no account and no telemetry.
  • All Moodle sites. You can use it with all Moodle sites that have the Moodle mobile web service on. Most sites have this service on, because the Moodle app uses it.

Examples

Tell your assistant, for example:

  • "What is due this week?"
  • "Summarize the instructions for the lab 3 assignment. Tell me which files I sent."
  • "Show all my grades in Linear Algebra, with the feedback from the teacher."
  • "Read the slides for topic 4 and make a summary of one page."
  • "Save the formula sheet for the exam to my computer."

Install

Your assistant How to install
Claude Desktop Download moodle-study-mcp-<version>.mcpb from the last release. Open the file. Claude Desktop shows an install dialog.
Claude Code Run claude mcp add moodle -- npx -y moodle-study-mcp. On Windows, run claude mcp add moodle -- cmd /c npx -y moodle-study-mcp.
Other MCP clients Run npx -y moodle-study-mcp as a stdio server. Refer to docs/install.md.

Claude Desktop includes Node.js. To use npx, you must have Node.js 22.13 or newer. For the browser sign-in, you must have Google Chrome or Microsoft Edge on your computer.

Make sure that a download is correct

The .mcpb file has no code signature. To make sure that the file is correct, use one of these two methods:

  • Compare its SHA-256 checksum with the SHA256SUMS file in the same release.
  • Run gh attestation verify moodle-study-mcp-<version>.mcpb --repo Sevthered/moodle-study-mcp. The release workflow makes an attestation for each bundle that it builds.

The npm package has npm provenance.

Get started

  1. Find the address of your Moodle site. Your browser shows this address when you open Moodle.
  2. Tell your assistant: "Add my Moodle site https://moodle.example.edu".
  3. Tell your assistant: "Sign me in to Moodle".
  4. If the browser shows the correct address of your Moodle site, click Yes, continue.
  5. Sign in on the sign-in page of your university or school.
  6. Do all the steps that the sign-in page shows, for example two-factor authentication.
  7. Tell your assistant: "List my courses".

After step 6, the browser window closes automatically. Step 4 occurs only for the first sign-in to a site. Refer to Sign in.

You can also add a site from the command line: npx moodle-study-mcp add-site https://moodle.example.edu.

To try the server first, use the demo site of Moodle: https://school.moodledemo.net (Mount Orange School). Its sign-in page shows demo student accounts. Moodle sets this site back to its initial condition at the start of each hour.

Documentation

  • Install: Claude Desktop, Claude Code, other MCP clients, and the command line.
  • Sign in: the three sign-in methods, the site check page, where the token is kept, and how to sign out.
  • Tools: all tools, their parameters, and the files that read_file can read.
  • Privacy and security: the data that the assistant sees, and the data that it does not see.
  • Configuration: more than one site, optional values, environment variables, and files.
  • Troubleshooting: problems and how to correct them.

The data that the assistant sees

The tools give only a specified set of data fields about you and your courses. The tools do not get records of other persons from Moodle. For example, they do not get participant lists, email addresses, or user IDs.

The tools send text and files from teachers without changes. This includes course descriptions, pages, feedback, and the files that read_file reads. The assistant and its AI provider get this text as you see it in Moodle. The text can contain names or student IDs, for example in a list of grades. Refer to Privacy and security.

Your responsibility

This tool is not from Moodle or from your university or school. You make the decision to use it. You also select the Moodle site and the assistant. When you use it, you agree to these conditions:

  • You must obey the rules of your university or school. Universities and schools have rules about third-party software that connects to their systems. They also have rules about how you send course material and data about other persons to external services, for example AI assistants. Some also have rules about AI in coursework. Before you use this tool, read these rules and the AI rules of your subjects. If these rules do not let you use the tool, do not use it.
  • You select the data that goes to your AI provider. The tools send all their results to the MCP client and the AI provider that you selected. The terms and the privacy policy of that provider apply to this data.
  • The authors of course material keep their rights. When you read a file with this tool, you get no right to copy it, give it to other persons, or use it again. Only your university or school can give you these rights.
  • Academic integrity is your responsibility. You make the decisions about how you use an AI assistant for your courses.
  • Your university or school can see the operations of the tool. The tool signs in as you, as the Moodle app does. Moodle records the operations of the tool in its logs, with the name of your account.
  • No warranty, no liability. The software is provided "as is", without warranty of any kind (refer to the MIT License). The authors and contributors are not liable for any claim, damages or other liability arising from your use of it. This includes academic, disciplinary, and account results that come from the rules of your university or school.

For contributors

  • To build, test, or change the project, refer to CONTRIBUTING.md.
  • To report a security problem, refer to SECURITY.md. Do not report it in an issue.

License and trademarks

The license is MIT. Refer to LICENSE. The bundle includes PDFium and other third-party components. These components have different licenses. Refer to THIRD_PARTY_NOTICES.md.

The word Moodle and associated Moodle logos are trademarks or registered trademarks of Moodle Pty Ltd or its related affiliates. This project is not affiliated with, endorsed by or supported by Moodle Pty Ltd, the Moodle project, or any university or school, including those that have a preset.