moodle-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MOODLE_URL | No | Moodle site URL to use instead of what `moodle-mcp setup` saved. | |
| MOODLE_TOKEN | No | Moodle token to use instead of what `moodle-mcp setup` saved. | |
| MOODLE_DOWNLOADS | No | Where `moodle_open` saves files. Default is `~/Downloads/moodle`. | |
| MOODLE_TOKEN_FILE | No | File containing the Moodle token, or a `MOODLE_TOKEN=` line. | |
| MOODLE_INLINE_TEXT | No | Set to `0` to avoid returning the text of PDFs, only saving them. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only access to the user's Moodle. Start with moodle_courses; a course can be given by id or part of its name. moodle_course lists sections and materials with [module ids]; moodle_open(module_id) returns the text of pages and PDFs and saves files locally. moodle_updates, moodle_deadlines and moodle_notifications show what is new. Nothing can be submitted, posted, changed or marked as read.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| moodle_coursesA | List the Moodle courses you are enrolled in, with their ids. |
| moodle_courseA | Show a course's sections and materials (files, pages, forums, assignments, links) with their [module ids].
|
| moodle_openA | Open one item from moodle_course by its [module id]: returns the text of pages, labels, links and PDFs,
and saves attached files under ~/Downloads/moodle//. Long PDFs come back in parts (about 40,000
characters each); call again with start_page to read the rest. Give |
| moodle_updatesA | What changed in your courses in the last |
| moodle_deadlinesB | Upcoming deadlines and calendar events (assignments, quizzes, course events) for the next |
| moodle_notificationsB | Your latest Moodle notifications (announcements, forum posts, feedback, grades), newest first. |
| moodle_forumA | List a course's forums (no forum_id), or the latest discussions in one forum (forum_id from that list). |
| moodle_discussionA | Read all posts of one forum discussion (discussion_id from moodle_forum). |
| moodle_assignmentsB | Assignments with due dates and your submission and grading status. Leave |
| moodle_gradesA | Your grades in one course (id or part of its name). |
| moodle_messagesA | Your Moodle private chats and group conversations (newest first): who, unread count and the last message. Open one with moodle_conversation(conversation_id). Nothing is marked as read. |
| moodle_conversationA | Read the latest messages of one Moodle conversation (conversation_id from moodle_messages), oldest first. Nothing is marked as read. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
moodle_courses (list enrolled courses) vs moodle_course (show one course's contents) differ only by an 's', which is a real misselection hazard despite the descriptions. There is also partial overlap among moodle_updates, moodle_notifications, and moodle_deadlines, and moodle_assignments partially duplicates due-date info found in moodle_deadlines.
Every tool uses a uniform moodle_<resource> snake_case pattern, which is predictable and readable. The only blemish is the singular/plural pair moodle_courses/moodle_course, which is technically consistent but semantically fragile.
Twelve tools is well within the healthy range and each maps to a distinct Moodle entity or activity stream. Nothing feels padded or redundant at the count level.
Read coverage is broad (courses, materials, forums, discussions, assignments, grades, messages, deadlines), but the surface is entirely read-only: no submitting assignments, uploading files, replying to forums, or sending messages. Agents asked to act on Moodle rather than summarize it will hit dead ends, even though assignment submission status is exposed.