# moodle-student-mcp [Health: Active]

**Category:** 🎓 Education  
**Repository:** https://github.com/AnonymousOnyx22/moodle-student-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 2067  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/moodle-student-mcp

## Description
Moodle MCP server for students. A Model Context Protocol MCP server that gives AI apps like Claude, ChatGPT and Cursor read only access to Moodle courses: assignments, due dates, grades, announcements and course content.

## Tools
Capabilities this server exposes over MCP:

- **get_my_courses** — Answers 'what courses am I enrolled in?' Lists each current Moodle course with the ID other tools take as course_id. No input. Ask: 'Which courses do I have this term?'
- **get_upcoming_due_dates** — Answers 'what is due soon?' Lists up to 50 items due in the next 60 days across your courses that still need action, soonest first, with the course name and due date. Course events such as 'Course starts' and 'Course ends' are left out because there is nothing to do about them. Input: course_ids, an optional array of course IDs to limit the list; leave it out to cover all current courses. Ask: 'What's due in the next two weeks?'
- **get_overdue** — Answers 'is anything overdue?' Lists past due items from the last 45 days that still need action, with the course name and the date each was due. Input: course_ids, an optional array of course IDs to limit the list; leave it out to cover all current courses. Ask: 'Is anything overdue?'
- **get_todo** — Answers 'what should I do today?' One digest across your courses that opens with a Start here line naming the most urgent item (the oldest overdue work, else the next thing due), then lists overdue work, work due soon, assignments with no due date, and the latest announcement subjects, each with the course name and due date. Submission status comes from the assignment list and the calendar adds quizzes and other activities. Input: course_ids, an optional array of course IDs to limit the digest; days_ahead, how many days ahead to look, default 14; overdue_days, how many days back to look for overdue work, default 14. Ask: 'What should I do today?'
- **get_assignments** — Answers 'what do I still need to submit in this course?' Lists up to 25 assignments for one course with due dates and submission status: not submitted, draft, submitted or graded. Input: course_id, the ID from get_my_courses. Ask: 'Which assignments have I not submitted yet in Networking Basics?'
- **get_missing_work** — Answers 'what do I still owe?' Lists the assignments in your courses that you have not handed in yet, with the course name and the due date. Drafts that were never handed in are included, and work that was already handed in or graded is left out. Up to 25 assignments in each course are checked and the list holds up to 50 items. Input: course_ids, an optional array of course IDs to limit the list; leave it out to cover all current courses. Ask: 'What work am I still missing?'
- **get_my_grades** — Answers 'what's my grade in each course?' Shows the posted overall grade for every current course, or 'no grade posted yet'. No input. Ask: 'What's my grade in each course?'
- **get_course_grade_items** — Answers 'what's in the gradebook for this course?' Lists every graded item for one course with the mark and percentage, including the course total when there is one. Input: course_id, the ID from get_my_courses. Ask: 'Show me the gradebook for Networking Basics.'
- **get_course_content** — Answers 'what's in this course?' Lists the sections of one course, such as weeks or topics, with up to 40 activities in each, such as pages, quizzes and forums. Each activity shows its intro text when the course has one, such as assignment instructions, label text or a page summary. Each file shows its name and a link with your key removed, so the link is safe to show in a chat and get_file can still open it. Input: course_id, the ID from get_my_courses. Ask: 'What materials are posted in Networking Basics?'
- **get_course_page** — Answers 'what does this course page say?' Reads the Page activities of one course, the pages listed as page in get_course_content, and returns their text with the HTML removed. Up to 5 pages are shown, each up to 20000 characters, and a longer page ends with [truncated]. Images and embedded media are not shown. Input: course_id, the ID from get_my_courses, and page_name, an optional word or phrase from the page title to pick one page; leave it out to read the first pages of the course. Ask: 'Read the Week 2 reading page in Networking Basics.'
- **get_announcements** — Answers 'any new announcements?' Lists the latest news forum posts with subject, course name and text, up to 5 posts from each of up to 10 news forums. A course or forum the school server will not open is left out and the rest still shows. Input: course_ids, an optional array of course IDs to limit the search; leave it out to cover all current courses. Ask: 'Any new announcements from my teachers?'
- **get_file** — Answers 'what does this course file say?' Downloads one course file resource, such as a PDF, slide deck or handout, from its file_url. Supported types: plain text, HTML and PDF. Plain text and HTML files come back as readable text. A PDF with readable text comes back as text, and a PDF with no extractable text comes back with its file name, a link with your key removed and a note to open it in Moodle. Any other file type is not supported and comes back with its file name, a link with your key removed and a note that only plain text, HTML and PDF are supported, with a note to open it in Moodle. Only a link on your school's Moodle site is downloaded, so your key is never sent to another server. Input: file_url, the link from get_course_content. Ask: 'Read the Week 3 slides PDF.'

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "moodle-student-mcp": {
    "command": "npx",
    "args": ["-y","moodle-student-mcp"],
    "env": {
      "MOODLE_BASE_URL": "",
      "MOODLE_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `MOODLE_BASE_URL`, `MOODLE_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What moodle-student-mcp does

moodle-student-mcp exposes a student's Moodle data to compatible AI applications through MCP. Its read-only scope covers current course enrollment, assignment and quiz status, calendar events, grades, announcements, course activities, Moodle pages, downloadable course files, and forum discussions.

The server is suited to planning and reference tasks. An AI assistant can identify overdue or missing work, summarize the next items requiring action, find upcoming deadlines, check course grades, retrieve assignment instructions, and read discussion threads. It cannot submit assignments, edit course data, or delete anything.

## How it works

The server runs as a local stdio MCP process, normally launched with `npx -y moodle-student-mcp`. It connects to the school’s Moodle installation using the site address and a Moodle access key supplied through environment variables. The Moodle site must have its mobile web service enabled.

Many course-specific tools use the numeric course ID returned by `get_my_courses`. Other tools accept an optional list of course IDs so results can be limited to selected courses. Date-range calendar queries use `YYYY-MM-DD` dates and support ranges of up to 366 days.

## Setup and configuration

Install it by adding the following environment variables to the MCP configuration for Claude Desktop, Claude Code, Cursor, VS Code, or another local MCP client:

```json
{
  "MOODLE_BASE_URL": "https://moodle.yourschool.edu",
  "MOODLE_TOKEN": "your-key"
}
```

The package can be run with `npx -y moodle-student-mcp`. Claude Code, Cursor, and VS Code each have documented command-line configuration methods, while Claude Desktop uses its `claude_desktop_config.json` MCP configuration. Restart an already-running client after changing its configuration.

## Tools and capabilities

- List the student’s current Moodle courses and IDs.
- Find upcoming actionable items, overdue work, missing submissions, and a configurable to-do digest.
- Inspect assignments, due dates, submission states, assignment instructions, and attached files.
- View quizzes with availability dates, time limits, attempt information, and best grades.
- Read course totals, individual grade items, percentages, sections, activities, and Page content.
- Search calendar events and recent announcements, with optional course filtering.
- Browse forum discussions and read a selected discussion with its replies.
- Retrieve readable text from plain-text, HTML, and text-based PDF course files. PDFs without extractable text return a file name, Moodle link, and instruction to open the file in Moodle.

## Limitations and notes

Access is read-only. The server does not perform submissions or other Moodle changes. Course pages are returned as plain text; images and embedded media are not shown. Assignment details return up to five assignments at a time, and course pages return up to five pages with up to 20,000 characters each. Forum listings exclude announcement forums, while announcement results exclude courses that Moodle cannot open. Credentials are sent to the configured school Moodle site, and the project is not affiliated with Moodle Pty Ltd.

_Full upstream README: https://allmcps.com/mcp/moodle-student-mcp/readme_

